hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea88189f2ba932d216f47da6cf4086329f3ec422 | 1,003 | js | JavaScript | src/datastructures/__test__/bloomfilter.test.js | ngantxnguyen/Algorithms | d57698db24b0c415b383924da01df58eefca2e9f | [
"MIT"
] | null | null | null | src/datastructures/__test__/bloomfilter.test.js | ngantxnguyen/Algorithms | d57698db24b0c415b383924da01df58eefca2e9f | [
"MIT"
] | null | null | null | src/datastructures/__test__/bloomfilter.test.js | ngantxnguyen/Algorithms | d57698db24b0c415b383924da01df58eefca2e9f | [
"MIT"
] | null | null | null | import { BloomFilter } from '../bloomfilter';
describe('Test BloomFilter DS', () => {
const bitArraySizes2 = [10009, 100003];
const bitArraySizes3 = [10009, 100003, 1000003];
const arr = ['John', 'Alexandra', 'Trump', 'Biden', 'William'];
const arr2 = ['Rose', 'Daisy', 'Lavender']
test('Illegal creations should throw errors', () => {
expect(() => new BloomFilter()).toThrow('Invalid bitArraySizes');
expect(() => new BloomFilter('hello')).toThrow('Invalid bitArraySizes');
expect(() => new BloomFilter(bitArraySizes2, true, 'hi')).toThrow('Invalid hashFns input. Expected an array.');
expect(() => new BloomFilter(bitArraySizes3, true)).toThrow('Inconsistent arrays length');
});
test('BloomFilter uses default hash functions', () => {
const bf = new BloomFilter(bitArraySizes2);
for (let elem of arr) bf.add(elem);
for (let elem of arr) expect(bf.contains(elem)).toBeTruthy();
for (let elem of arr2) expect(bf.contains(elem)).toBeFalsy();
});
});
| 40.12 | 115 | 0.66002 |
ea8c80b4c4fc145ce83b5defb7e1a27df19cd667 | 1,033 | js | JavaScript | src/browser/module/file/File.js | phongnhat19/kintone-js-sdk | 43ec0e39b88b58b5ac7833f6ddb1dae9ce36d06a | [
"Apache-2.0"
] | null | null | null | src/browser/module/file/File.js | phongnhat19/kintone-js-sdk | 43ec0e39b88b58b5ac7833f6ddb1dae9ce36d06a | [
"Apache-2.0"
] | null | null | null | src/browser/module/file/File.js | phongnhat19/kintone-js-sdk | 43ec0e39b88b58b5ac7833f6ddb1dae9ce36d06a | [
"Apache-2.0"
] | null | null | null | /**
* kintone api - js client
*/
import {Connection} from '../connection/Connection';
/**
* File module
*/
import {File as FileModule} from '../../../base/main';
export class File extends FileModule {
/**
* The constructor for this module
* @param {Connection} connection
*/
constructor(connection) {
if (!(connection instanceof Connection)) {
throw new Error(`${connection}` +
`not an instance of kintoneConnection`);
}
super(connection);
}
/**
* Download file from kintone
* @param {String} fileKey
* @return {Promise}
*/
download(fileKey) {
if (window.kintone !== undefined) {
this.connection.setHeader('X-Requested-With', 'XMLHttpRequest');
}
return super.download(fileKey);
}
/**
* Upload file from local to kintone environment
* @param {String} fileName
* @param {Blob} fileBlob
* @return {Promise}
*/
upload(fileName, fileBlob) {
return this.connection.upload(fileName, fileBlob);
}
}
| 24.023256 | 70 | 0.610842 |
ea8ca50a736a4277ca4ea75fd74c327df87ebb76 | 349 | js | JavaScript | src/redux-advanced/containers/FetchContainer.js | christiandbf/learning-redux | 876d609c4941d9c95706fa318c7fd1406e9d8056 | [
"MIT"
] | null | null | null | src/redux-advanced/containers/FetchContainer.js | christiandbf/learning-redux | 876d609c4941d9c95706fa318c7fd1406e9d8056 | [
"MIT"
] | 9 | 2020-09-05T11:39:09.000Z | 2022-02-12T13:25:29.000Z | src/redux-advanced/containers/FetchContainer.js | christiandbf/learning-redux | 876d609c4941d9c95706fa318c7fd1406e9d8056 | [
"MIT"
] | null | null | null | import { connect } from 'react-redux';
import fetchData from '../actions/fetchData';
import Fetch from '../components/Fetch';
const mapStateToProps = state => ({
id: state.id
});
const mapDispatchToProps = dispatch => ({
fetchData: id => dispatch(fetchData(id))
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(Fetch); | 19.388889 | 45 | 0.702006 |
ea8d525236a268852063811babb8afb4f8953862 | 94 | js | JavaScript | src/components/SwatchPaletteWidget/index.js | Kiekerti/NewCarbon | 57bea77703a3b3cc0b088d4ceb2d3e0e12fea04a | [
"Apache-2.0"
] | null | null | null | src/components/SwatchPaletteWidget/index.js | Kiekerti/NewCarbon | 57bea77703a3b3cc0b088d4ceb2d3e0e12fea04a | [
"Apache-2.0"
] | null | null | null | src/components/SwatchPaletteWidget/index.js | Kiekerti/NewCarbon | 57bea77703a3b3cc0b088d4ceb2d3e0e12fea04a | [
"Apache-2.0"
] | null | null | null | import SwatchPaletteWidget from './SwatchPaletteWidget';
export default SwatchPaletteWidget;
| 23.5 | 56 | 0.851064 |
ea8dc8a248b486d9529fd5667fba90298519cd35 | 1,114 | js | JavaScript | public/ember/routes/application_route.js | kematzy/Full-Stack-JS-Nodember | c3dda4241047ccf52ac437d6c09c6c423a4287cf | [
"MIT",
"Unlicense"
] | 1 | 2019-06-29T14:18:59.000Z | 2019-06-29T14:18:59.000Z | public/ember/routes/application_route.js | kematzy/Full-Stack-JS-Nodember | c3dda4241047ccf52ac437d6c09c6c423a4287cf | [
"MIT",
"Unlicense"
] | null | null | null | public/ember/routes/application_route.js | kematzy/Full-Stack-JS-Nodember | c3dda4241047ccf52ac437d6c09c6c423a4287cf | [
"MIT",
"Unlicense"
] | null | null | null | App.ApplicationRoute = Ember.Route.extend({
model: function() {
// return this.store.find('admin', '53694c9ecd2fdd72457e95c3');
},
activate: function() {
if (window.flash) {
this.woof.danger(window.flash);
}
},
actions: {
openModal: function(modalName, model) {
this.controllerFor(modalName).set('model', model);
this.render(modalName, {
into: 'application',
outlet: 'modal'
});
},
closeModal: function() {
this.disconnectOutlet({
outlet: 'modal',
parentView: 'application'
});
},
addDanger: function() {
this.woof.danger('This is a danger alert!');
},
addWarning: function() {
this.woof.warning('This is a warning alert!');
},
addInfo: function() {
this.woof.info('This is an info alert!');
},
addSuccess: function() {
this.woof.success('This is a success alert!');
}
}
}); | 30.108108 | 71 | 0.483842 |
ea8dfefbaeed6c4ffc8d0d85ad90e54f99354228 | 1,298 | js | JavaScript | js/authorize.js | lechinoix/card-template | 2f335f97af1eff6c79f5dc8e798437faae70e1ca | [
"MIT"
] | null | null | null | js/authorize.js | lechinoix/card-template | 2f335f97af1eff6c79f5dc8e798437faae70e1ca | [
"MIT"
] | null | null | null | js/authorize.js | lechinoix/card-template | 2f335f97af1eff6c79f5dc8e798437faae70e1ca | [
"MIT"
] | null | null | null | var Promise = TrelloPowerUp.Promise;
var t = TrelloPowerUp.iframe();
var apiKey = t.arg("apiKey"); // Passed in as an argument to our iframe
// var trelloAuthUrl = `https://trello.com/1/authorize?expiration=1hour&name=Example%20Trello%20Power-Up&scope=read,write&key=${apiKey}&callback_method=fragment&return_url=${window.location.origin}%2Fauth-success.html`;
var trelloAuthUrl = `https://trello.com/1/authorize?expiration=never&name=Example%20Trello%20Power-Up&scope=read,write&key=${apiKey}&callback_method=fragment&return_url=${
window.location.origin
}${process.env.PUBLIC_URL ? process.env.PUBLIC_URL : ""}%2Fauth-success.html`;
var tokenLooksValid = function(token) {
// If this returns false, the Promise won't resolve.
return /^[0-9a-f]{64}$/.test(token);
};
document.getElementById("auth-btn").addEventListener("click", function() {
t
.authorize(trelloAuthUrl, {
height: 680,
width: 580,
validToken: tokenLooksValid
})
.then(function(token) {
// store the token in Trello private Power-Up storage
return t.set("member", "private", "token", token);
})
.then(function() {
// now that we have the token we needed lets go on to letting
// the user do whatever they need to do.
return t.closePopup();
});
});
| 39.333333 | 219 | 0.697227 |
ea8e0e32f17f7e9be2dfe7a02f469f4b2e09270f | 10,648 | js | JavaScript | public/assets/index.7072893d.js | Eronbello/module-federation-template | 21a1db767178de9f918fd6ab20dcafae17a7636c | [
"MIT"
] | null | null | null | public/assets/index.7072893d.js | Eronbello/module-federation-template | 21a1db767178de9f918fd6ab20dcafae17a7636c | [
"MIT"
] | null | null | null | public/assets/index.7072893d.js | Eronbello/module-federation-template | 21a1db767178de9f918fd6ab20dcafae17a7636c | [
"MIT"
] | null | null | null | import { defineComponent, ref, openBlock, createElementBlock, createElementVNode as createBaseVNode, toDisplayString, createTextVNode, unref, createVNode, Fragment, pushScopeId, popScopeId, createStaticVNode, watch, withDirectives, vModelSelect, renderList, isRef, createApp } from './__federation_shared_vue.js';
import { useI18n, createI18n } from './vendor.f7dd2192.js';
import BasicButton, { _export_sfc } from './__federation_expose_BasicButton.js';
var messages = {
"en": {
"welcome": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Welcome to Vite + Vue 3 + Storybook + Typescript"])},
"setup": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Recommended IDE setup:"])},
"see-readme": {
"see": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["see"])},
"more-info": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["for more information."])}
},
"docs": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Docs"])},
"check-reactivity": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Check reactivity"])},
"count": (ctx) => {const { normalize: _normalize, interpolate: _interpolate, named: _named, plural: _plural } = ctx;return _plural([_normalize(["no clicks"]), _normalize([_interpolate(_named("count")), " click"]), _normalize([_interpolate(_named("count")), " clicks"])])},
"hmr": {
"edit": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Edit"])},
"test": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["to test hot module replacement"])}
},
"select-locale": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Select locale"])}
},
"pt": {
"welcome": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Bem vindo a Vite + Vue 3 + Storybook + Typescript"])},
"setup": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Configuração de IDE recomendada:"])},
"check-reactivity": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Verifique a reatividade"])},
"count": (ctx) => {const { normalize: _normalize, interpolate: _interpolate, named: _named, plural: _plural } = ctx;return _plural([_normalize(["sem cliques"]), _normalize([_interpolate(_named("count")), " clique"]), _normalize([_interpolate(_named("count")), " cliques"])])},
"docs": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Documentos"])},
"hmr.edit": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Editar"])},
"hmr.test": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["para testar a HMR"])},
"see-readme.more-info": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Para mais informações."])},
"see-readme.see": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Veja"])}
},
"zh": {
"check-reactivity": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["检查反应性"])},
"count": (ctx) => {const { normalize: _normalize, interpolate: _interpolate, named: _named, plural: _plural } = ctx;return _plural([_normalize(["没有点击"]), _normalize(["点击 ", _interpolate(_named("count"))]), _normalize(["点击 ", _interpolate(_named("count")), " 次 "])])},
"docs": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["文档"])},
"hmr.edit": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["编辑"])},
"hmr.test": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["测试热模块更换"])},
"see-readme.more-info": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["了解更多信息。"])},
"see-readme.see": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["看"])},
"setup": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["推荐的 IDE 设置:"])},
"welcome": (ctx) => {const { normalize: _normalize } = ctx;return _normalize(["欢迎使用 Vite + Vue 3 + Storybook + Typescript"])}
}
};
var __glob_6_0 = "./assets/eslint.485cf619.svg";
var __glob_6_1 = "./assets/prettier.023fa512.svg";
var __glob_6_2 = "./assets/storybook.3c33c7f8.svg";
var __glob_6_3 = "./assets/ts.b487cbba.svg";
var __glob_6_4 = "./assets/vite.17e50649.svg";
var __glob_6_5 = "./assets/vue.606c4449.svg";
var HelloWorld_vue_vue_type_style_index_0_scoped_true_lang = '';
const _withScopeId = (n) => (pushScopeId("data-v-6cb38e84"), n = n(), popScopeId(), n);
const _hoisted_1$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("a", { href: "https://code.visualstudio.com/" }, "VSCode", -1));
const _hoisted_2$2 = /* @__PURE__ */ createTextVNode(" + ");
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("a", { href: "https://github.com/johnsoncodehk/volar" }, "Volar", -1));
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" + ");
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("a", { href: "https://github.com/lokalise/i18n-ally" }, "i18n-ally", -1));
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("code", null, "README.md", -1));
const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<p data-v-6cb38e84><a href="https://vitejs.dev/guide/features.html" data-v-6cb38e84> Vite </a> | <a href="https://v3.vuejs.org/" data-v-6cb38e84>Vue 3</a> | <a href="https://storybook.js.org/docs/vue/get-started/introduction" data-v-6cb38e84> Storybook </a> | <a href="https://www.typescriptlang.org/docs/" data-v-6cb38e84> Typescript </a> | <a href="https://eslint.org/docs/user-guide/" data-v-6cb38e84> ESLint </a> | <a href="https://prettier.io/docs/en/index.html" data-v-6cb38e84> Prettier </a></p>', 1);
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("code", null, "components/HelloWorld.vue", -1));
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
props: {
msg: null
},
setup(__props) {
const count = ref(0);
const { t } = useI18n();
return (_ctx, _cache) => {
return openBlock(), createElementBlock(Fragment, null, [
createBaseVNode("h1", null, toDisplayString(__props.msg), 1),
createBaseVNode("p", null, [
createTextVNode(toDisplayString(unref(t)("setup")) + " ", 1),
_hoisted_1$2,
_hoisted_2$2,
_hoisted_3,
_hoisted_4,
_hoisted_5
]),
createBaseVNode("p", null, [
createTextVNode(toDisplayString(unref(t)("see-readme.see")) + " ", 1),
_hoisted_6,
createTextVNode(" " + toDisplayString(unref(t)("see-readme.more-info")), 1)
]),
createBaseVNode("h2", null, toDisplayString(unref(t)("docs")), 1),
_hoisted_7,
createBaseVNode("h3", null, toDisplayString(unref(t)("check-reactivity")), 1),
createVNode(BasicButton, {
size: "small",
type: "button",
onClick: _cache[0] || (_cache[0] = ($event) => count.value++),
label: unref(t)("count", { count: count.value })
}, null, 8, ["label"]),
createBaseVNode("p", null, [
createTextVNode(toDisplayString(unref(t)("hmr.edit")) + " ", 1),
_hoisted_8,
createTextVNode(" " + toDisplayString(unref(t)("hmr.test")), 1)
])
], 64);
};
}
});
var HelloWorld = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6cb38e84"]]);
var LocaleSelect_vue_vue_type_style_index_0_scoped_true_lang = '';
const _hoisted_1$1 = { class: "locales" };
const _hoisted_2$1 = ["value"];
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
setup(__props) {
const { availableLocales, locale } = useI18n();
watch(locale, (newLocale) => {
if (newLocale)
localStorage.locale = newLocale;
});
return (_ctx, _cache) => {
return openBlock(), createElementBlock("div", _hoisted_1$1, [
withDirectives(createBaseVNode("select", {
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(locale) ? locale.value = $event : null)
}, [
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(availableLocales), (locale2) => {
return openBlock(), createElementBlock("option", {
value: locale2,
class: "locale",
key: locale2
}, toDisplayString(locale2), 9, _hoisted_2$1);
}), 128))
], 512), [
[vModelSelect, unref(locale)]
])
]);
};
}
});
var LocaleSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4349012a"]]);
var links = [
{
href: "https://vitejs.dev/",
alt: "Vite logo",
src: "vite"
},
{
href: "https://v3.vuejs.org/",
alt: "Vue 3 logo",
src: "vue"
},
{
href: "https://storybook.js.org/",
alt: "Storybook logo",
src: "storybook"
},
{
href: "https://www.typescriptlang.org/",
alt: "TS logo",
src: "ts"
},
{
href: "https://eslint.org//",
alt: "ESLint logo",
src: "eslint"
},
{
href: "https://prettier.io/",
alt: "Prettier logo",
src: "prettier"
}
];
var App_vue_vue_type_style_index_0_lang = '';
var App_vue_vue_type_style_index_1_scoped_true_lang = '';
const _hoisted_1 = ["href"];
const _hoisted_2 = ["alt", "src"];
const _sfc_main = /* @__PURE__ */ defineComponent({
setup(__props) {
const { t } = useI18n();
const getImgURL = (src) => {
return new URL({ "./assets/svg/eslint.svg": __glob_6_0, "./assets/svg/prettier.svg": __glob_6_1, "./assets/svg/storybook.svg": __glob_6_2, "./assets/svg/ts.svg": __glob_6_3, "./assets/svg/vite.svg": __glob_6_4, "./assets/svg/vue.svg": __glob_6_5,}[`./assets/svg/${src}.svg`], self.location).href;
};
return (_ctx, _cache) => {
return openBlock(), createElementBlock(Fragment, null, [
createVNode(LocaleSelect),
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(links), ({ alt, src, href }) => {
return openBlock(), createElementBlock("a", {
key: alt,
class: "logo-link",
href
}, [
createBaseVNode("img", {
class: "logo",
alt,
src: getImgURL(src)
}, null, 8, _hoisted_2)
], 8, _hoisted_1);
}), 128)),
createVNode(HelloWorld, {
msg: unref(t)("welcome")
}, null, 8, ["msg"])
], 64);
};
}
});
var App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2233e658"]]);
const i18n = createI18n({
locale: localStorage.locale || "en",
messages
});
createApp(App).use(i18n).mount("#app");
| 48.621005 | 562 | 0.621525 |
ea8e155652f78739cc64a19e0936dca0565b9e3b | 874 | js | JavaScript | zucchini-ui-frontend/src/search/redux.js | arnaudlimouzin/zucchini-ui | 905fcd396f2e3fb47a782cdad0f2cf33c0216931 | [
"MIT"
] | 6 | 2016-07-06T13:29:54.000Z | 2022-02-01T14:00:13.000Z | zucchini-ui-frontend/src/search/redux.js | arnaudlimouzin/zucchini-ui | 905fcd396f2e3fb47a782cdad0f2cf33c0216931 | [
"MIT"
] | 66 | 2016-06-22T21:16:48.000Z | 2022-03-31T07:24:59.000Z | zucchini-ui-frontend/src/search/redux.js | arnaudlimouzin/zucchini-ui | 905fcd396f2e3fb47a782cdad0f2cf33c0216931 | [
"MIT"
] | 12 | 2016-08-02T15:47:53.000Z | 2020-09-22T03:24:23.000Z | import { handleActions } from "redux-actions";
import { getTestRun } from "../testRun/redux";
import * as model from "./model";
// Actions
const PREFIX = "SEARCH";
const SEARCH = `${PREFIX}/SEARCH`;
const SEARCH_FULFILLED = `${SEARCH}_FULFILLED`;
// Action creators
export function loadTestRunSearchPage({ testRunId }) {
return getTestRun({ testRunId });
}
export function search({ search, testRunId }) {
return searchScenarios({ search, testRunId });
}
function searchScenarios({ search, testRunId }) {
return {
type: SEARCH,
payload: model.search({ search, testRunId }),
meta: {
testRunId
}
};
}
// Reducer
const initialState = {
foundScenarios: []
};
export const searchResults = handleActions(
{
[SEARCH_FULFILLED]: (state, action) => ({
...state,
foundScenarios: action.payload
})
},
initialState
);
| 18.208333 | 54 | 0.655606 |
ea8f57d34527832d4969d416c63bc2d653bc7238 | 3,515 | js | JavaScript | src/controllers/followController.js | uriel343/twitter_API | d5075a20abb9015c609cbb79e667df4a4317b73d | [
"MIT"
] | 1 | 2020-10-22T23:22:28.000Z | 2020-10-22T23:22:28.000Z | src/controllers/followController.js | uriel343/twitter_API | d5075a20abb9015c609cbb79e667df4a4317b73d | [
"MIT"
] | null | null | null | src/controllers/followController.js | uriel343/twitter_API | d5075a20abb9015c609cbb79e667df4a4317b73d | [
"MIT"
] | null | null | null | "use strict";
const Follow = require("../models/follow");
const User = require("../models/user");
function follow(req, res) {
var parametr = req.body.command;
parametr = parametr.toLowerCase();
parametr = parametr.trim();
parametr = parametr.split(" ");
var accountToFollow = parametr[1];
var myIdAccount = req.user.sub;
var follows = new Follow();
if (accountToFollow) {
if(accountToFollow === req.user.user) return res.status(403).send({message: 'You cannot follow to yourself'})
User.findOne({ user: accountToFollow }, (err, userFound) => {
if (err)
return res.status(500).send({
message: "Server error, please try again",
});
if (!userFound)
return res.status(404).send({
message: "User not found",
});
var userToFollow = userFound._id;
Follow.find(
{ $and: [{ user: myIdAccount }, { following: userToFollow }] },
(err, documentFound) => {
if (err)
return res
.status(500)
.send({ message: "Server error, please try again" });
if (documentFound && documentFound.length >= 1) {
return res
.status(400)
.send({ message: "You already follow this account" });
} else {
follows.user = myIdAccount;
follows.following = userToFollow;
follows.save((err, followCorrect) => {
if (err)
return res
.status(500)
.send({ message: "Server error, please try again" });
if (followCorrect) {
return res
.status(200)
.send({ message: "success", data: followCorrect });
} else {
return res
.status(404)
.send({ message: "You cannot follow this account" });
}
});
}
}
);
});
} else {
return res.status(400).send({
message: "Missing data, make sure that you are sending all the data",
});
}
}
function unfollow(req, res) {
var parametr = req.body.command;
parametr = parametr.toLowerCase();
parametr = parametr.trim();
parametr = parametr.split(" ");
var accountToUnfollow = parametr[1];
var myIdAccount = req.user.sub;
if (accountToUnfollow) {
User.findOne({ user: accountToUnfollow }, (err, userFound) => {
if (err)
return res.status(500).send({
message: "Server error, please try again",
});
if (!userFound)
return res.status(404).send({
message: "User not found",
});
var userToUnfollow = userFound._id;
Follow.findOneAndDelete(
{ $and: [{ user: myIdAccount }, { following: userToUnfollow }] },
(err, documentFound) => {
if (err)
return res
.status(500)
.send({ message: "Server error, please try again" });
if (!documentFound) return res.status(404).send({
message: 'You do not follow this account'
})
return res.status(200).send({
message: 'Success',
unfollowedAccount: documentFound
})
}
);
});
} else {
return res.status(400).send({
message: "Missing data, make sure that you are sending all the data",
});
}
}
module.exports = {
follow,
unfollow,
};
| 30.833333 | 113 | 0.522902 |
ea911a17a9905da85f9511b0b265ceb81db331b2 | 1,705 | js | JavaScript | src/scraping-maps.js | suportepedropachecodev/bot_googlemaps | bd311e14133d0d46a455668a209644ad8ee5c142 | [
"Apache-2.0"
] | null | null | null | src/scraping-maps.js | suportepedropachecodev/bot_googlemaps | bd311e14133d0d46a455668a209644ad8ee5c142 | [
"Apache-2.0"
] | null | null | null | src/scraping-maps.js | suportepedropachecodev/bot_googlemaps | bd311e14133d0d46a455668a209644ad8ee5c142 | [
"Apache-2.0"
] | null | null | null | const puppeteer = require('puppeteer');
const cheerio = require('cheerio');
const fastcsv = require('fast-csv');
const fs = require('fs');
const busca = 'mecanico'
const urlalvo = `https://www.google.com.br/maps/search/${busca}`;
const ws = fs.createWriteStream(`${busca}.csv`)
let dados = [];
async function scrapbot(){
const browser = await puppeteer.launch({
headless:false,
defaultViewport:null,
});
const page = await browser.newPage();
await page.goto(urlalvo);
await page.waitForSelector('.tuPVDR7ouq5__start-icon');
await page.click('.tuPVDR7ouq5__start-icon');
await page.waitForSelector('div:nth-child(2) > input[type=radio]');
await page.click('div:nth-child(2) > input[type=radio]');
await page.waitForSelector('div:nth-child(3) > button:nth-child(2)');
await page.click('div:nth-child(3) > button:nth-child(2)');
await page.waitForTimeout(50000);
let html = await page.content();
const $ = await cheerio.load(html);
$('.section-result-text-content')
.map((index, element)=>{
let titulo = $(element).find('.section-result-title').text();
let tipo = $(element).find('.section-result-details').text();
let endereco = $(element[1]).find('.section-result-location').text();
let abertoate = $(element).find('.section-result-opening-hours').text();
let telefone = $(element).find('.section-result-phone-number').text();
const dado = {titulo, tipo, endereco, abertoate, telefone};
dados.push(dado)
})
console.log(dados);
fastcsv
.write(dados, {headers:true})
.pipe(ws);
//await browser.close();
};
scrapbot();
| 28.416667 | 80 | 0.634018 |
ea91591a56b005a9e97fe1ae461ce73e4b7e9194 | 3,631 | js | JavaScript | routes/api/files/index.js | mauriziocarella/file-manager | 2d3c8b5d1006676ca1e87e849ca17afb26aba85b | [
"Unlicense",
"MIT"
] | 1 | 2021-09-10T17:46:36.000Z | 2021-09-10T17:46:36.000Z | routes/api/files/index.js | mauriziocarella/file-manager | 2d3c8b5d1006676ca1e87e849ca17afb26aba85b | [
"Unlicense",
"MIT"
] | null | null | null | routes/api/files/index.js | mauriziocarella/file-manager | 2d3c8b5d1006676ca1e87e849ca17afb26aba85b | [
"Unlicense",
"MIT"
] | null | null | null | const express = require('express');
const router = express.Router();
const path = require('path');
const fs = require('fs');
const async = require('async');
const {File, User} = require('../../../db');
const config = require('../../../config');
const middleware = require('../../middleware');
const Media = require('../../../utils/media');
router.use(middleware.role());
router.get('/', async function (req, res, next) {
const user = req.user;
let perPage = req.query.perPage || 10;
let page = req.query.page || 1;
let offset = (page-1)*perPage;
let sort = {
key: 'createdAt',
dir: 'desc',
}
if (req.query.sortKey) sort.key = req.query.sortKey;
if (req.query.sortDir) sort.dir = req.query.sortDir;
const $or = [];
const $and = [];
if (req.query.search) {
$or.push({
label: {$regex: req.query.search, $options: 'i'}
})
$or.push({
filename: {$regex: req.query.search, $options: 'i'}
})
$or.push({
tags: {$regex: req.query.search, $options: 'i'}
})
}
switch (req.query.filter) {
case 'favorites': {
$and.push({
_id: {
$in: user.favorites,
}
})
break;
}
}
const query = {}
if ($or.length > 0) query.$or = $or;
if ($and.length > 0) query.$and = $and;
const files = await File.find(query)
.skip(offset)
.limit(perPage)
.sort(`${sort.dir === 'desc' ? '-' : ''}${sort.key}`)
const count = await File.countDocuments($or.length === 0 ? {} : {
$or: $or
})
res.json({
files,
pagination: {
page,
perPage,
pages: Math.ceil(count/perPage),
}
});
});
router.get('/favorites', async function (req, res, next) {
const user = req.user;
const files = await File.find({
_id: {
$in: user.favorites,
}
});
res.json(files);
});
router.use('/:id', async function (req, res, next) {
const file = await File.findById(req.params.id);
if (!file) return next(404);
req.file = file;
next();
});
router.get('/:id', async function (req, res, next) {
const file = req.file;
res.json(file);
});
router.post('/:id/favorite', async function (req, res, next) {
const user = req.user;
const file = req.file;
if (user.favorites.includes(file._id)) {
await User.findByIdAndUpdate(user.id, { $pull: { favorites: file.id } });
}
else {
await User.findByIdAndUpdate(user.id, { $push: { favorites: file.id } });
}
res.json(await User.findById(user.id))
});
router.get('/:id/raw', async function (req, res, next) {
const file = req.file;
const filePath = path.join(config.content.path, file.path);
if (['video/mp4'].includes(file.mimeType)) {
const stat = fs.statSync(filePath);
const fileSize = stat.size;
const range = req.headers.range;
if (range) {
const parts = range.replace(/bytes=/, "").split("-");
const start = parseInt(parts[0], 10);
const end = parts[1] ? parseInt(parts[1], 10) : fileSize - 1;
const chunksize = (end - start) + 1;
const file = fs.createReadStream(filePath, {start, end});
const head = {
'Content-Range': `bytes ${start}-${end}/${fileSize}`,
'Accept-Ranges': 'bytes',
'Content-Length': chunksize,
'Content-Type': 'video/mp4',
}
res.writeHead(206, head);
file.pipe(res);
} else {
const head = {
'Content-Length': fileSize,
'Content-Type': 'video/mp4',
}
res.writeHead(200, head)
fs.createReadStream(filePath).pipe(res)
}
}
else {
next('unknown')
}
});
router.post('/:id', async function (req, res, next) {
const file = req.file;
if (req.body.label) file.label = req.body.label;
if (req.body.tags) file.tags = req.body.tags;
res.json(await file.save())
});
module.exports = router;
| 22.006061 | 75 | 0.603415 |
ea9209f96d46d2bb9dbf4e84afa3c1a37c8a3e70 | 1,762 | js | JavaScript | static/index.js | pengwei1024/MiniAppArticleSpider | 97e2dd9c2d95a7b3f48c79a321cd129eeafeff4a | [
"Apache-2.0"
] | 3 | 2019-03-17T01:58:17.000Z | 2019-04-14T14:21:42.000Z | static/index.js | pengwei1024/MiniAppArticleSpider | 97e2dd9c2d95a7b3f48c79a321cd129eeafeff4a | [
"Apache-2.0"
] | 1 | 2022-03-02T14:57:18.000Z | 2022-03-02T14:57:18.000Z | static/index.js | pengwei1024/MiniAppArticleSpider | 97e2dd9c2d95a7b3f48c79a321cd129eeafeff4a | [
"Apache-2.0"
] | 1 | 2019-10-18T07:33:55.000Z | 2019-10-18T07:33:55.000Z | $(function () {
'use strict';
//无限滚动
$(document).on("pageInit", "#page-infinite-scroll-bottom", function (e, id, page) {
var loading = false;
var pageNum = 1;
function addItem(array) {
var html = '';
array.forEach(function (item) {
html += `
<div class="card content-item" onclick="location.href='${item.href }'"><div class="card-header color-white no-border">${item.title }
</div>
<div class="card-content">
<div class="card-content-inner">
<p>${ item.desc }</p>
<small>${ item.time }</small>
</div>
</div>
<span class="subscript">${item.source}</span>
</div>
`;
});
$('.page-index').append(html);
}
$(page).on('infinite', function () {
// 如果正在加载,则退出
if (loading) {
return;
}
loading = true;
$.ajax({
url: 'post/' + pageNum,
success: function (data) {
if (!data || data.length === 0) {
$.toast("没有更新的了~");
return;
}
pageNum++;
addItem(data);
},
fail: function (e) {
console.error(e)
},
complete:function () {
loading = false;
$.refreshScroller();
}
});
});
});
$.init()
}); | 33.884615 | 148 | 0.344495 |
ea926a969daf6c6cc0903e6185190ff95327c93e | 2,407 | js | JavaScript | FrontEnd/dist/js/npm.jss-plugin-rule-value-function.bundle.js | jrodrigoav/super-goggles | c09e96855a592f0932b7fb3918c43b8989fd3d37 | [
"MIT"
] | null | null | null | FrontEnd/dist/js/npm.jss-plugin-rule-value-function.bundle.js | jrodrigoav/super-goggles | c09e96855a592f0932b7fb3918c43b8989fd3d37 | [
"MIT"
] | null | null | null | FrontEnd/dist/js/npm.jss-plugin-rule-value-function.bundle.js | jrodrigoav/super-goggles | c09e96855a592f0932b7fb3918c43b8989fd3d37 | [
"MIT"
] | null | null | null | var a19_0x4a5d=['226343FqXPey','4981QkosQi','135314NPcpje','41VDMZRl','298009DQkisi','1UOSPbh','1PoYExb','push','prop','119334dljOhs','fnStyle','webpackChunksuper_googles_front','fnValues','67HcWSgE','style','4211cQAvUC','670854RmVCcV','function'];var a19_0x32fb=function(_0x4aac60,_0x2155e8){_0x4aac60=_0x4aac60-0x1b9;var _0x4a5d54=a19_0x4a5d[_0x4aac60];return _0x4a5d54;};var a19_0x1883b6=a19_0x32fb;(function(_0x31e42a,_0x42562d){var _0x344c42=a19_0x32fb;while(!![]){try{var _0x2ba170=-parseInt(_0x344c42(0x1c7))*parseInt(_0x344c42(0x1ca))+parseInt(_0x344c42(0x1c4))*parseInt(_0x344c42(0x1be))+parseInt(_0x344c42(0x1c1))+-parseInt(_0x344c42(0x1c6))*parseInt(_0x344c42(0x1c5))+parseInt(_0x344c42(0x1c2))*-parseInt(_0x344c42(0x1bc))+-parseInt(_0x344c42(0x1c3))+parseInt(_0x344c42(0x1bf));if(_0x2ba170===_0x42562d)break;else _0x31e42a['push'](_0x31e42a['shift']());}catch(_0x331b7b){_0x31e42a['push'](_0x31e42a['shift']());}}}(a19_0x4a5d,0x2cca8),(self[a19_0x1883b6(0x1ba)]=self[a19_0x1883b6(0x1ba)]||[])[a19_0x1883b6(0x1c8)]([[0x12b],{0x1c22:(_0x4d8f7a,_0x2f666c,_0x3093c1)=>{'use strict';var _0x27ef2e=a19_0x1883b6;_0x3093c1['d'](_0x2f666c,{'Z':()=>_0x4af870});var _0x5cf232=_0x3093c1(0xfad),_0x5525ab=Date['now'](),_0x41d690=_0x27ef2e(0x1bb)+_0x5525ab,_0x2abf88=_0x27ef2e(0x1b9)+ ++_0x5525ab,_0x2e4926=function _0x506457(){return{'onCreateRule':function _0x50961f(_0x4eb2b4,_0xc85d5,_0x20de09){var _0x46bb9d=a19_0x32fb;if(typeof _0xc85d5!==_0x46bb9d(0x1c0))return null;var _0xaef110=(0x0,_0x5cf232['JH'])(_0x4eb2b4,{},_0x20de09);return _0xaef110[_0x2abf88]=_0xc85d5,_0xaef110;},'onProcessStyle':function _0x4bb8fd(_0x25d95b,_0x5c3148){var _0x174a12=a19_0x32fb;if(_0x41d690 in _0x5c3148||_0x2abf88 in _0x5c3148)return _0x25d95b;var _0x426394={};for(var _0x2d528a in _0x25d95b){var _0x47b059=_0x25d95b[_0x2d528a];if(typeof _0x47b059!==_0x174a12(0x1c0))continue;delete _0x25d95b[_0x2d528a],_0x426394[_0x2d528a]=_0x47b059;}return _0x5c3148[_0x41d690]=_0x426394,_0x25d95b;},'onUpdate':function _0x2e15cd(_0x3191c3,_0x4342a2,_0x45d343,_0x2af207){var _0xd11055=a19_0x32fb,_0x47789e=_0x4342a2,_0x2edb6f=_0x47789e[_0x2abf88];if(_0x2edb6f){_0x47789e[_0xd11055(0x1bd)]=_0x2edb6f(_0x3191c3)||{};if(![])var _0x1740a5;}var _0x18745a=_0x47789e[_0x41d690];if(_0x18745a)for(var _0x36ad56 in _0x18745a){_0x47789e[_0xd11055(0x1c9)](_0x36ad56,_0x18745a[_0x36ad56](_0x3191c3),_0x2af207);}}};};const _0x4af870=_0x2e4926;}}])); | 2,407 | 2,407 | 0.800166 |
ea92b4b214d815d2192306d22720d05e89f5c3ec | 1,632 | js | JavaScript | labs/architecture-examples/plastronjs/js/controllers/todocontrol.js | whegreen/todomvc | 50066ee262578bc63208459f146d5c763b54a778 | [
"MIT"
] | 1 | 2016-12-22T09:56:43.000Z | 2016-12-22T09:56:43.000Z | labs/architecture-examples/plastronjs/js/controllers/todocontrol.js | superbull/todomvc | 50066ee262578bc63208459f146d5c763b54a778 | [
"MIT"
] | null | null | null | labs/architecture-examples/plastronjs/js/controllers/todocontrol.js | superbull/todomvc | 50066ee262578bc63208459f146d5c763b54a778 | [
"MIT"
] | 1 | 2015-09-01T08:11:46.000Z | 2015-09-01T08:11:46.000Z | goog.provide('todomvc.todocontrol');
goog.require('goog.dom');
goog.require('goog.events.KeyCodes');
goog.require('mvc.Control');
goog.require('todomvc.templates');
/**
* this is the control for a todo item.
*
* @constructor
* @param {mvc.Model} model for the control.
* @extends {mvc.Control}
*/
todomvc.todocontrol = function( model ) {
goog.base( this, model );
};
goog.inherits( todomvc.todocontrol, mvc.Control );
/**
* overrides goog.ui.Component#createDom with the todo template.
*
* @inheritDoc
*/
todomvc.todocontrol.prototype.createDom = function() {
var el = soy.renderAsFragment( todomvc.templates.todoItem, {
model: this.getModel().toJson()
}, null );
this.setElementInternal(/** @type {Element} */(el));
};
/**
* setup for event listeners.
*
* @inheritDoc
*/
todomvc.todocontrol.prototype.enterDocument = function() {
var model = this.getModel();
// Toggle complete
this.click(function( e ) {
model.set( 'completed', e.target.checked );
}, 'toggle' );
// Delete the model
this.click(function( e ) {
model.dispose();
}, 'destroy' );
var inputEl = this.getEls('.edit')[0];
// Dblclick to edit
this.on( goog.events.EventType.DBLCLICK, function( e ) {
goog.dom.classes.add( this.getElement(), 'editing' );
inputEl.value = model.get('title');
inputEl.focus();
}, 'view' );
// Save on edit
this.on( goog.events.EventType.KEYUP, function( e ) {
if ( e.keyCode === goog.events.KeyCodes.ENTER ) {
model.set( 'title', inputEl.value );
}
}, 'edit' );
this.on( goog.events.EventType.BLUR, function( e ) {
model.set( 'title', inputEl.value );
}, 'edit' );
};
| 21.473684 | 64 | 0.657475 |
ea95715df57fe5d8e2a288ce70d53c69c0a3d2f6 | 237 | js | JavaScript | src/components/Loader/index.js | christfellowshipchurch/flat-ui-web | 5d3b8c6083d2069dbcdcf7058855fe1b37bd5405 | [
"MIT"
] | null | null | null | src/components/Loader/index.js | christfellowshipchurch/flat-ui-web | 5d3b8c6083d2069dbcdcf7058855fe1b37bd5405 | [
"MIT"
] | 8 | 2019-06-03T15:04:43.000Z | 2022-02-17T22:45:44.000Z | src/components/Loader/index.js | christfellowshipchurch/flat-ui-web | 5d3b8c6083d2069dbcdcf7058855fe1b37bd5405 | [
"MIT"
] | null | null | null | import Ring from './RingLoader'
import ContentLoader from './ContentLoader'
import AccordionLoader from './AccordionLoader'
const Loaders = Ring
Loaders.Content = ContentLoader
Loaders.Accordion = AccordionLoader
export default Loaders | 26.333333 | 47 | 0.818565 |
ea958bc9c1ce6b03f627b6406563713ef1978889 | 808 | js | JavaScript | h/static/scripts/karma-phantomjs-polyfill.js | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | h/static/scripts/karma-phantomjs-polyfill.js | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | h/static/scripts/karma-phantomjs-polyfill.js | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | // minimal set of polyfills for PhantomJS 1.x under Karma.
// this Polyfills:
//
// - ES5
// - ES6 Promises
// - the DOM URL API
// basic polyfills for APIs which are supported natively
// by all browsers we support (IE >= 10)
require('js-polyfills/es5');
window.URL = require('js-polyfills/url').URL;
// additional polyfills for newer features.
// Be careful here that any added polyfills are consistent
// with what is used in builds of the app itself.
require('es6-promise');
// disallow console output during tests
['debug', 'log', 'warn', 'error'].forEach(function (method) {
var realFn = window.console[method];
window.console[method] = function () {
var args = [].slice.apply(arguments);
realFn.apply(console, args);
throw new Error('Tests must not log console warnings');
};
});
| 29.925926 | 61 | 0.694307 |
ea9671f9380bdf9ed197e6b7e6410b0ff6586927 | 63 | js | JavaScript | react-music/src/api/getPlaylist.js | xizhouhezai/react | 028845291c5b703a23c8757b719d4e3fae1f77a8 | [
"MIT"
] | null | null | null | react-music/src/api/getPlaylist.js | xizhouhezai/react | 028845291c5b703a23c8757b719d4e3fae1f77a8 | [
"MIT"
] | null | null | null | react-music/src/api/getPlaylist.js | xizhouhezai/react | 028845291c5b703a23c8757b719d4e3fae1f77a8 | [
"MIT"
] | null | null | null | import axios from 'axios'
export function getPlaylist() {
} | 12.6 | 31 | 0.714286 |
ea971de3d55897d69df0bb25b76d7e1605004131 | 4,475 | js | JavaScript | wam/js/wam_remote_fs_execute.js | heimonsy/libapps | 5b98cbab8af87148efbaefb33154e45c1162935c | [
"BSD-3-Clause"
] | 26 | 2016-03-09T09:18:49.000Z | 2021-12-04T14:08:45.000Z | wam/js/wam_remote_fs_execute.js | heimonsy/libapps | 5b98cbab8af87148efbaefb33154e45c1162935c | [
"BSD-3-Clause"
] | 6 | 2016-09-11T22:55:07.000Z | 2016-09-11T23:14:34.000Z | wam/js/wam_remote_fs_execute.js | heimonsy/libapps | 5b98cbab8af87148efbaefb33154e45c1162935c | [
"BSD-3-Clause"
] | 8 | 2016-02-03T00:52:17.000Z | 2022-02-14T23:29:08.000Z | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* Request/Response classes to marshal an wam.binding.fs.ExecuteContext over a
* wam channel.
*/
wam.remote.fs.execute = {};
wam.remote.fs.execute.Request = function(handshakeRequest, executeContext) {
this.handshakeRequest = handshakeRequest;
this.executeContext = executeContext;
this.readyRequest = new wam.remote.ready.Request(executeContext);
this.readyRequest.onMessage.addListener(this.onMessage_.bind(this));
executeContext.dependsOn(handshakeRequest.readyRequest.readyBinding);
executeContext.onExecute.addListener(this.onExecute_.bind(this));
executeContext.onTTYChange.addListener(this.onTTYChange_.bind(this));
executeContext.onStdIn.addListener(this.onStdIn_.bind(this));
executeContext.onSignal.addListener(this.onSignal_.bind(this));
};
wam.remote.fs.execute.Request.prototype.onExecute_ = function() {
var outMessage = this.handshakeRequest.readyRequest.createMessage(
'execute',
{'path': this.executeContext.path,
'execArg': this.executeContext.arg,
'execEnv': this.executeContext.env_,
'tty': this.executeContext.tty_
});
this.readyRequest.sendRequest(outMessage);
};
wam.remote.fs.execute.Request.prototype.onStdIn_ = function(value) {
this.readyRequest.send('stdin', value);
};
wam.remote.fs.execute.Request.prototype.onSignal_ = function(name) {
this.readyRequest.send('signal', name);
};
wam.remote.fs.execute.Request.prototype.onTTYChange_ = function(tty) {
if (this.readyRequest.readyBinding.isOpen)
this.readyRequest.send('tty-change', tty);
};
wam.remote.fs.execute.Request.prototype.onMessage_ = function(inMessage) {
if (inMessage.name == 'stdout' || inMessage.name == 'stderr') {
var onAck = null;
if (inMessage.isOpen) {
onAck = function(value) {
inMessage.replyOk(typeof value == 'undefined' ? null : value);
};
}
if (inMessage.name == 'stdout') {
this.executeContext.stdout(inMessage.arg, onAck);
} else {
this.executeContext.stderr(inMessage.arg, onAck);
}
} else if (inMessage.name == 'tty-request') {
this.executeContext.requestTTY(inMessage.arg);
} else if (inMessage.name != 'stdout' && inMessage.name != 'stderr' &&
!inMessage.isFinalReply) {
console.warn('remote execute request received unexpected message: ' +
inMessage.name, inMessage.arg);
if (inMessage.isOpen) {
inMessage.replyError('wam.UnexpectedMessage',
[inMessage.name, inMessage.arg]);
}
}
};
/**
*
*/
wam.remote.fs.execute.Response = function(inMessage, executeContext) {
this.inMessage = inMessage;
this.executeContext = executeContext;
this.executeContext.onStdOut.addListener(this.onStdOut_, this);
this.executeContext.onStdErr.addListener(this.onStdErr_, this);
this.executeContext.onTTYRequest.addListener(this.onTTYRequest_.bind(this));
this.readyResponse = new wam.remote.ready.Response(inMessage, executeContext);
this.readyResponse.onMessage.addListener(this.onMessage_.bind(this));
};
wam.remote.fs.execute.Response.prototype.onMessage_ = function(inMessage) {
switch (inMessage.name) {
case 'stdin':
var onAck = null;
if (inMessage.isOpen) {
onAck = function(value) {
inMessage.replyOk(typeof value == 'undefined' ? null : value);
};
}
this.executeContext.stdin(inMessage.arg, onAck);
break;
case 'tty-change':
this.executeContext.setTTY(inMessage.arg);
break;
case 'signal':
this.executeContext.signal(inMessage.arg.name, inMessage.arg.value);
break;
}
};
wam.remote.fs.execute.Response.prototype.onTTYRequest_ = function(value) {
this.readyResponse.send('tty-request', value);
};
wam.remote.fs.execute.Response.prototype.onStdOut_ = function(value, onAck) {
this.readyResponse.send('stdout', value,
(onAck ?
function(inMessage) { onAck(inMessage.arg) } :
null));
};
wam.remote.fs.execute.Response.prototype.onStdErr_ = function(value, onAck) {
this.readyResponse.send('stderr', value,
(onAck ?
function(inMessage) { onAck(inMessage.arg) } :
null));
};
| 32.904412 | 80 | 0.68 |
ea9845ea737ba6619605ae8d067d25fea55ba8f5 | 1,586 | js | JavaScript | src/Emoji0x1f1e9.js | hamlim/react-android-emoji | 76afaa81d75888f146d4faf7a48ccfc8e23f91b7 | [
"Apache-2.0"
] | 1 | 2020-10-12T13:21:57.000Z | 2020-10-12T13:21:57.000Z | src/Emoji0x1f1e9.js | hamlim/react-android-emoji | 76afaa81d75888f146d4faf7a48ccfc8e23f91b7 | [
"Apache-2.0"
] | 6 | 2021-03-09T10:07:35.000Z | 2022-02-26T13:38:37.000Z | src/Emoji0x1f1e9.js | hamlim/react-android-emoji | 76afaa81d75888f146d4faf7a48ccfc8e23f91b7 | [
"Apache-2.0"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
function _extends() {
_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;
};
return _extends.apply(this, arguments);
}
function Emoji0x1f1e9(props) {
return _react2.default.createElement(
"svg",
_extends(
{
enableBackground: "new 0 0 128 128",
viewBox: "0 0 128 128"
},
props
),
_react2.default.createElement("path", {
d:
"m65.71 15.31h-43.6c-1.25 0-2.24 1-2.24 2.24v100.96c0 1.24 1 2.24 2.24 2.24h43.59c30.15 0 50.43-21.19 50.43-52.73 0-31.53-20.27-52.71-50.42-52.71zm-1.29 80.8c-0.28 0-0.54-0.07-0.79-0.16-0.06 0.01-0.11 0.03-0.17 0.03-0.08 0.01-0.14 0.04-0.22 0.04h-14.7c-1.2 0-2.16-0.97-2.16-2.16v-51.67c0-1.19 0.96-2.16 2.16-2.16h14.7c0.08 0 0.14 0.03 0.22 0.04 0.05 0 0.11 0.02 0.17 0.03 0.25-0.09 0.51-0.16 0.79-0.16 0.43 0 0.86 0.04 1.29 0.06 0.75 0.03 1.5 0.09 2.24 0.18 13.11 1.63 21.69 12.39 21.69 27.84s-8.59 26.21-21.69 27.84c-0.74 0.09-1.49 0.15-2.24 0.18-0.43 0.03-0.86 0.07-1.29 0.07z",
fill: "#40C0E7"
})
);
}
exports.default = Emoji0x1f1e9;
| 31.098039 | 588 | 0.59773 |
ea9906c5be76c10a99877e55991ba4f1b24ea4ea | 10,427 | js | JavaScript | node_modules/smooch/lib/components/message.js | avtarvikas/dookApp | e7a0385a5d224cc29c9d97244e4b90b7a1718b3f | [
"MIT"
] | 1 | 2019-09-04T17:40:01.000Z | 2019-09-04T17:40:01.000Z | node_modules/smooch/lib/components/message.js | avtarvikas/dookApp | e7a0385a5d224cc29c9d97244e4b90b7a1718b3f | [
"MIT"
] | null | null | null | node_modules/smooch/lib/components/message.js | avtarvikas/dookApp | e7a0385a5d224cc29c9d97244e4b90b7a1718b3f | [
"MIT"
] | null | null | null | 'use strict';
exports.__esModule = true;
exports.MessageComponent = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _ismobilejs = require('ismobilejs');
var _ismobilejs2 = _interopRequireDefault(_ismobilejs);
var _reactRedux = require('react-redux');
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _textMessage = require('./text-message');
var _imageMessage = require('./image-message');
var _action = require('./action');
var _reactDom = require('react-dom');
var _dom = require('../utils/dom');
var _conversation = require('../services/conversation');
var _message = require('../constants/message');
var _loading = require('./loading');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Message = function (_Component) {
(0, _inherits3.default)(Message, _Component);
function Message() {
(0, _classCallCheck3.default)(this, Message);
return (0, _possibleConstructorReturn3.default)(this, _Component.apply(this, arguments));
}
Message.prototype.componentDidMount = function componentDidMount() {
if (this.props.actions.length === 0) {
this._restyleBubble();
}
};
Message.prototype._restyleBubble = function _restyleBubble() {
var bubble = (0, _reactDom.findDOMNode)(this.refs.messageContent);
if (bubble) {
var messageElement = bubble.firstChild;
var messageProperties = (0, _dom.getElementProperties)(messageElement);
var bubbleProperties = (0, _dom.getElementProperties)(bubble);
var multiLineCheck = parseInt(bubbleProperties.fontSize) * 2;
if (messageProperties.height > multiLineCheck && messageProperties.width < bubbleProperties.width) {
bubble.style.width = messageProperties.width + parseInt(bubbleProperties.paddingLeft) + parseInt(bubbleProperties.paddingRight) + 'px';
}
}
};
Message.prototype.onMessageClick = function onMessageClick() {
var sendStatus = this.props.sendStatus;
if (sendStatus === _message.SEND_STATUS.FAILED) {
this.props.dispatch((0, _conversation.resendMessage)(this.props._clientId));
}
};
Message.prototype.render = function render() {
var _props = this.props,
name = _props.name,
role = _props.role,
avatarUrl = _props.avatarUrl,
text = _props.text,
accentColor = _props.accentColor,
firstInGroup = _props.firstInGroup,
lastInGroup = _props.lastInGroup,
linkColor = _props.linkColor,
type = _props.type,
mediaUrl = _props.mediaUrl,
sendStatus = _props.sendStatus,
clickToRetryText = _props.clickToRetryText,
tapToRetryText = _props.tapToRetryText,
locationSendingFailedText = _props.locationSendingFailedText;
var actions = this.props.actions.filter(function (_ref) {
var type = _ref.type;
return !_message.GLOBAL_ACTION_TYPES.includes(type);
});
var hasText = text && text.trim() && text.trim() !== mediaUrl;
var hasFile = type === 'file';
var hasImage = type === 'image';
var hasLocation = type === 'location';
var isAppUser = role === 'appUser';
var hasActions = actions.length > 0;
var lastItem = void 0;
if (hasActions) {
lastItem = 'actions';
} else if (hasText || hasFile) {
lastItem = 'text';
} else if (hasLocation) {
lastItem = 'location';
}
var avatarClass = hasImage ? ['sk-msg-avatar', 'sk-msg-avatar-img'] : ['sk-msg-avatar'];
var avatarPlaceHolder = isAppUser ? null : _react2.default.createElement('div', { className: 'sk-msg-avatar-placeholder' });
var containerClasses = ['sk-msg'];
if (hasImage || actions.length > 0) {
containerClasses.push('sk-msg-image');
}
var actionList = actions.map(function (action) {
return _react2.default.createElement(_action.Action, (0, _extends3.default)({ key: action._id,
buttonColor: linkColor
}, action));
});
var avatar = isAppUser ? null : _react2.default.createElement('img', { alt: name + '\'s avatar',
className: avatarClass.join(' '),
src: avatarUrl });
var textClasses = ['sk-message-item', 'sk-message-text'];
if (lastItem === 'text') {
textClasses.push('sk-last-item');
}
var textPart = (hasText || hasFile) && _react2.default.createElement(_textMessage.TextMessage, (0, _extends3.default)({}, this.props, {
className: textClasses.join(' ') }));
var imagePart = hasImage && _react2.default.createElement(_imageMessage.ImageMessage, this.props);
var style = {};
if (!hasImage || hasActions || hasText) {
if (isAppUser && accentColor) {
style.backgroundColor = style.borderLeftColor = '#' + accentColor;
}
}
var rowClass = ['sk-row'];
if (isAppUser) {
rowClass.push('sk-right-row');
} else {
rowClass.push('sk-left-row');
}
if (firstInGroup) {
if (isAppUser) {
rowClass.push('sk-row-appuser-first');
} else {
rowClass.push('sk-row-appmaker-first');
}
}
if (lastInGroup) {
if (isAppUser) {
rowClass.push('sk-row-appuser-last');
} else {
rowClass.push('sk-row-appmaker-last');
}
}
if (!firstInGroup && !lastInGroup) {
if (isAppUser) {
rowClass.push('sk-row-appuser-middle');
} else {
rowClass.push('sk-row-appmaker-middle');
}
}
var fromName = _react2.default.createElement(
'div',
{ className: 'sk-from' },
isAppUser ? '' : name
);
var actionListClasses = ['sk-message-item'];
if (lastItem === 'actions') {
actionListClasses.push('sk-last-item');
}
if ([_message.SEND_STATUS.SENDING, _message.SEND_STATUS.FAILED].includes(sendStatus)) {
containerClasses.push('sk-msg-unsent');
}
var clickToRetry = _react2.default.createElement(
'div',
{ className: 'sk-retry' },
_ismobilejs2.default.any ? tapToRetryText : clickToRetryText
);
var locationClasses = ['sk-message-item'];
if (lastItem === 'location') {
locationClasses.push('sk-last-item');
}
if (sendStatus === _message.SEND_STATUS.SENDING) {
locationClasses.push('sk-message-location-loading');
} else {
locationClasses.push('sk-message-text');
}
var locationPart = void 0;
if (type === 'location' && !textPart) {
locationPart = sendStatus === _message.SEND_STATUS.FAILED ? _react2.default.createElement(_textMessage.TextMessage, { className: locationClasses.join(' '),
text: locationSendingFailedText,
role: role }) : _react2.default.createElement(
'div',
{ className: locationClasses.join(' ') },
_react2.default.createElement(_loading.LoadingComponent, { color: !isAppUser ? accentColor : null })
);
}
return _react2.default.createElement(
'div',
{ className: rowClass.join(' ') },
!isAppUser && firstInGroup ? fromName : null,
lastInGroup ? avatar : avatarPlaceHolder,
_react2.default.createElement(
'div',
{ className: 'sk-msg-wrapper' },
_react2.default.createElement(
'div',
{ className: containerClasses.join(' '),
style: style,
ref: 'messageContent',
onClick: this.onMessageClick.bind(this) },
imagePart ? imagePart : null,
textPart ? textPart : null,
locationPart ? locationPart : null,
hasActions ? _react2.default.createElement(
'div',
{ className: actionListClasses.join(' ') },
actionList
) : null
),
sendStatus === _message.SEND_STATUS.FAILED ? clickToRetry : null
),
_react2.default.createElement('div', { className: 'sk-clear' })
);
};
return Message;
}(_react.Component);
Message.propTypes = {
name: _react.PropTypes.string,
actions: _react.PropTypes.array,
type: _react.PropTypes.string.isRequired,
role: _react.PropTypes.string.isRequired,
mediaUrl: _react.PropTypes.string,
text: _react.PropTypes.string,
accentColor: _react.PropTypes.string,
linkColor: _react.PropTypes.string,
firstInGroup: _react.PropTypes.bool,
lastInGroup: _react.PropTypes.bool,
sendStatus: _react.PropTypes.string,
tapToRetryText: _react.PropTypes.string.isRequired,
clickToRetryText: _react.PropTypes.string.isRequired,
locationSendingFailedText: _react.PropTypes.string.isRequired
};
Message.defaultProps = {
actions: [],
sendStatus: _message.SEND_STATUS.SENT
};
var MessageComponent = exports.MessageComponent = (0, _reactRedux.connect)(function (_ref2) {
var text = _ref2.ui.text;
return {
clickToRetryText: text.clickToRetry,
tapToRetryText: text.tapToRetry,
locationSendingFailedText: text.locationSendingFailed
};
})(Message); | 34.989933 | 167 | 0.594802 |
ea99800c7ae7d148064656fdd254e870c7ba60e0 | 1,103 | js | JavaScript | test/test.js | adwestwood22/testing-with-mocha-and-chai | c19945dc01a3ef776ec4031fcddbab224c258a4e | [
"MIT"
] | null | null | null | test/test.js | adwestwood22/testing-with-mocha-and-chai | c19945dc01a3ef776ec4031fcddbab224c258a4e | [
"MIT"
] | null | null | null | test/test.js | adwestwood22/testing-with-mocha-and-chai | c19945dc01a3ef776ec4031fcddbab224c258a4e | [
"MIT"
] | null | null | null | 'use strict';
//requires
var chai = require('chai');
var expect = require('chai').expect;
var chaiAsPromised = require('chai-as-promised');
//local requires
var FaaService = require('../services/FaaService');
//build
chai.use(chaiAsPromised);
//test scenarios
describe('A basic test of the FaaService using promises', function(){
//scenario variables
var faaService;
var airportCode;
//test scenario context #1
context('initialization', function(){
//context #1 assertion #1
it('check that the FaaService can be instantiated', function(){
faaService = new FaaService();
expect(faaService).to.be.instantiated;
});
})
//test scenario context #2
context('using a valid airport code', function(){
//context #2 assertion #1
it('check getAirportStatus works on FaaService', function(){
//using chai-as-promised for the rest call
airportCode = 'SFO';
var airport = faaService.getAirportStatus(airportCode).then(function(airportObj){
return airportObj.IATA // airport code
});
return expect(airport).to.eventually.equal(airportCode);
})
})
}); | 19.696429 | 84 | 0.702629 |
ea99db3ce453770c7eee35dce0db2e213a169a60 | 3,726 | js | JavaScript | src/screens/More/index.js | theo-mesnil/WhatToWatch | 26f0c92f48d1994841c59605f0f16cf1edbc55c7 | [
"MIT"
] | 3 | 2022-03-17T02:12:58.000Z | 2022-03-19T21:07:46.000Z | src/screens/More/index.js | theo-mesnil/WhatToWatch | 26f0c92f48d1994841c59605f0f16cf1edbc55c7 | [
"MIT"
] | null | null | null | src/screens/More/index.js | theo-mesnil/WhatToWatch | 26f0c92f48d1994841c59605f0f16cf1edbc55c7 | [
"MIT"
] | null | null | null | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Linking } from 'react-native';
import { Item } from './Item';
import { useLocale } from 'contexts/locales';
import { BasicLayout } from 'layouts/Basic';
import { Centered } from 'components/Centered';
import { LOCALE_AUTO, LOCALE_EN, LOCALE_FR } from 'constants/locales';
import { EmailIcon, SmileIcon, StarFillIcon } from 'components/Icon';
import { Text } from 'components/Text';
export function MoreScreen() {
const { localeEntry, setLocaleEntry } = useLocale();
function setEnglishLocale() {
setLocaleEntry(LOCALE_EN);
}
function setFrenchLocale() {
setLocaleEntry(LOCALE_FR);
}
function setAutoLocale() {
setLocaleEntry(LOCALE_AUTO);
}
function sendMail() {
Linking.openURL('mailto:mesniltheo+whattowatch@gmail.com');
}
function openMyWebsite() {
Linking.openURL('https://www.theomesnil.com');
}
return (
<BasicLayout>
<Centered>
<Text variant="h1" mb="md">
More
</Text>
<Item
items={[
{
isCheckable: true,
name: <FormattedMessage id="more.languages.auto" />,
onPress: setAutoLocale,
isChecked: localeEntry === LOCALE_AUTO,
key: 'language_auto'
},
{
isCheckable: true,
name: <FormattedMessage id="more.languages.en" />,
onPress: setEnglishLocale,
isChecked: localeEntry === LOCALE_EN,
key: 'language_en'
},
{
isCheckable: true,
name: <FormattedMessage id="more.languages.fr" />,
onPress: setFrenchLocale,
isChecked: localeEntry === LOCALE_FR,
key: 'language_fr'
}
]}
title={<FormattedMessage id="more.languages.title" />}
/>
<Item
mt="lg"
items={[
{
name: <FormattedMessage id="more.author.me.title" />,
description: <FormattedMessage id="more.author.me.description" />,
key: 'author_me',
icon: SmileIcon,
onPress: openMyWebsite
},
{
name: <FormattedMessage id="more.author.contactMe.title" />,
description: (
<FormattedMessage id="more.author.contactMe.description" />
),
key: 'author_contact',
icon: EmailIcon,
onPress: sendMail
}
]}
title={<FormattedMessage id="more.author.title" />}
/>
<Item
mt="lg"
items={[
{
name: <FormattedMessage id="more.sources.themoviedb.title" />,
description: (
<FormattedMessage id="more.sources.themoviedb.description" />
),
key: 'themoviedb',
icon: StarFillIcon
},
{
name: <FormattedMessage id="more.sources.evaIcons.title" />,
description: (
<FormattedMessage id="more.sources.evaIcons.description" />
),
key: 'eva_icons',
icon: StarFillIcon
},
{
name: <FormattedMessage id="more.sources.appIcon.title" />,
description: (
<FormattedMessage id="more.sources.appIcon.description" />
),
key: 'app_icon',
icon: StarFillIcon
}
]}
title={<FormattedMessage id="more.sources.title" />}
/>
</Centered>
</BasicLayout>
);
}
| 29.808 | 80 | 0.517713 |
ea9b79da06acc89fa7f4ee08a893fa17dfad5622 | 2,050 | js | JavaScript | components/style.js | alexandernanberg/portfolio | e15f3e7fc127bc426528c8404590dd05e0356e37 | [
"MIT"
] | null | null | null | components/style.js | alexandernanberg/portfolio | e15f3e7fc127bc426528c8404590dd05e0356e37 | [
"MIT"
] | 22 | 2019-11-30T13:20:08.000Z | 2022-03-25T20:39:53.000Z | components/style.js | alexandernanberg/portfolio | e15f3e7fc127bc426528c8404590dd05e0356e37 | [
"MIT"
] | null | null | null | import { css, createGlobalStyle } from 'styled-components'
import { reset } from 'styled-reset'
export const breakpoints = {
large: 1170,
medium: 960,
small: 620,
}
export const media = Object.keys(breakpoints).reduce((acc, key) => {
acc[key] = (...args) => css`
@media (min-width: ${breakpoints[key]}px) {
${css(...args)};
}
`
return acc
}, {})
export const GlobalStyle = createGlobalStyle`
${reset}
@font-face {
font-family: 'Visby';
font-weight: 400;
font-style: normal;
font-display: fallback;
src: url('/fonts/VisbyCF-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Visby';
font-weight: 700;
font-style: normal;
font-display: fallback;
src: url('/fonts/VisbyCF-Bold.woff2') format('woff2');
}
:root {
/* Font */
--font-family: 'Visby', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
/* Colors */
--gray900: #010102;
--gray800: #424242;
--gray700: #616161;
--gray600: #757575;
--gray500: #808080;
--gray400: #bdbdbd;
--gray300: #e0e0e0;
--gray200: #f5f5f5;
--gray100: #fcf8f6;
--red500: #c21717;
--blue500: #2196f3;
/* Easings */
--ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
/* Sizes */
--size-1: 0.8rem;
--size-2: 1.2rem;
--size-3: 1.6rem;
--size-4: 2.4rem;
--size-5: 3.2rem;
--size-6: 4.8rem;
--size-7: 5.6rem;
--size-8: 6.4rem;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 10px;
}
body {
font-family: var(--font-family);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--gray900);
}
img {
display: inline-block;
vertical-align: middle;
height: auto;
max-width: 100%;
}
::selection {
color: white;
background-color: var(--red500);
}
`
| 20.5 | 97 | 0.573659 |
ea9da23623c25123ce7a89057898ab0071007be7 | 1,278 | js | JavaScript | packages/forms-web-app/__tests__/unit/controllers/project-search.test.js | Planning-Inspectorate/applications-service | b5a5809e1326ca6ac048302152f810b67cdcb283 | [
"MIT"
] | null | null | null | packages/forms-web-app/__tests__/unit/controllers/project-search.test.js | Planning-Inspectorate/applications-service | b5a5809e1326ca6ac048302152f810b67cdcb283 | [
"MIT"
] | 11 | 2021-12-10T11:37:25.000Z | 2022-03-28T08:28:32.000Z | packages/forms-web-app/__tests__/unit/controllers/project-search.test.js | Planning-Inspectorate/applications-service | b5a5809e1326ca6ac048302152f810b67cdcb283 | [
"MIT"
] | null | null | null | const projectSearchController = require('../../../src/controllers/project-search');
const { getAllProjectList } = require('../../../src/lib/application-api-wrapper');
const { mockReq, mockRes } = require('../mocks');
const { VIEW } = require('../../../src/lib/views');
jest.mock('../../../src/lib/application-api-wrapper');
describe('controllers/project-search', () => {
let req;
let res;
beforeEach(() => {
req = mockReq();
res = mockRes();
jest.resetAllMocks();
});
describe('getProjectList', () => {
it('should call the correct template', async () => {
getAllProjectList.mockImplementation(() =>
Promise.resolve({
resp_code: 200,
data: [
{
ProjectName: 'test',
CaseReference: 'test',
PromoterName: 'test',
Stage: 1,
},
],
})
);
await projectSearchController.getProjectList(req, res);
expect(res.render).toHaveBeenCalledWith(VIEW.PROJECT_SEARCH, {
appList: [
{
CaseReference: 'test',
ProjectName: 'test',
PromoterName: 'test',
Stage: 'Pre Application',
},
],
noOfProjects: 1,
});
});
});
});
| 26.625 | 83 | 0.521127 |
ea9de0f434cf70e0188e5352ab4fc8fa6ccaa74b | 10,959 | js | JavaScript | tests/test.js | DayBr3ak/wow-better-cli | 8e011cf9527e1b39787c11321dc20dfab11215b1 | [
"MIT"
] | 9 | 2016-11-20T11:58:11.000Z | 2019-09-09T18:39:36.000Z | tests/test.js | DayBr3ak/wow-better-cli | 8e011cf9527e1b39787c11321dc20dfab11215b1 | [
"MIT"
] | 2 | 2017-06-23T23:16:02.000Z | 2018-04-01T14:18:43.000Z | tests/test.js | DayBr3ak/wow-better-cli | 8e011cf9527e1b39787c11321dc20dfab11215b1 | [
"MIT"
] | 6 | 2016-08-29T15:59:36.000Z | 2020-11-27T14:45:56.000Z | import "babel-polyfill";
if (global.DEBUG === undefined) {
global.DEBUG = true;
}
const fs = require('fs');
const path = require('path');
const chai = require('chai');
const assert = chai.assert;
const should = chai.should();
const log = require('npmlog');
log.addLevel('tests', 3000, { fg: 'cyan' }, 'CLI');
log.level = 'debug';
const IsNumeric = (n) => {
return !isNaN(parseFloat(n)) && isFinite(n);
}
import * as downloader from '../dist/downloader';
const curse = downloader.platforms.curse;
import { Wow } from '../dist/wow';
import { parsePlatform } from '../dist/utils/parseplatform';
import { exists } from '../dist/utils/fileutil';
import { makeTmpWowFolder } from '../dist/utils/util';
const testTimeout = 8 * 1000;
describe('Util', function() {
describe('parsePlatform', function() {
it('should return ace3', function() {
let result = parsePlatform('https://mods.curse.com/addons/wow/ace3');
result.platform.should.equal('curse');
result.addon.should.equal('ace3');
})
it('should return 128', function() {
let result = parsePlatform('tukui:128');
result.platform.should.equal('tukui');
result.addon.should.equal('128');
})
it('should return tukui', () => {
let result = parsePlatform('tukui:tukui');
result.platform.should.equal('git');
// result.addon.should.equal('tukui');
result = parsePlatform('tukui');
result.platform.should.equal('git');
// result.addon.should.equal('tukui');
})
it('should return elvui', () => {
let result = parsePlatform('tukui:elvui');
result.platform.should.equal('git');
// result.addon.should.equal('elvui');
result = parsePlatform('elvui');
result.platform.should.equal('git');
// result.addon.should.equal('elvui');
})
it('should return HardYards-22379', function() {
let check = (result) => {
result.platform.should.equal('wowinterface');
result.addon.should.equal('HardYards-22379');
}
check(parsePlatform('http://www.wowinterface.com/downloads/info22379-HardYards.html'))
check(parsePlatform('www.wowinterface.com/downloads/info22379-HardYards.html'))
check(parsePlatform('http://wowinterface.com/downloads/info22379-HardYards.html'))
check(parsePlatform('wowinterface.com/downloads/info22379-HardYards.html'))
check(parsePlatform('wowinterface.com/downloads/info22379-HardYards'))
check(parsePlatform('wowinterface:HardYards-22379'))
})
it('should return a git url', () => {
let check = (result, url) => {
result.platform.should.equal('git');
result.addon.should.equal(url);
}
let url = 'http://git.tukui.org/Azilroka/addonskins.git'
check(parsePlatform(url), url);
})
})
})
describe('Curse', function() {
describe('getDownloadUrl()', function() {
it('should return the download url of an addon', async function() {
this.timeout(testTimeout);
try {
let [url, version] = await curse.getDownloadURL('Ace3', null);
log.tests('url,version', url, version);
should.exist(url);
should.exist(version);
const zipRegex = /\.zip/;
let hasZip = zipRegex.exec(url);
should.not.equal(null, hasZip);
should.not.equal(null, version);
IsNumeric(version).should.equal(true);
} catch (err) {
log.error('test', err);
should.not.exist(err);
}
})
it('should tell the new version of the addon', async function() {
this.timeout(testTimeout)
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
const wow = new Wow(wowPath, wowPath);
const mockAddonData = {
addons: {
'Ace3': {
platform: 'curse',
version: 0,
folders: null
}
}
}
await wow.saveFd.write(mockAddonData);
const [isNew, platform, zipUrl, version] = await wow.checkupdate('Ace3');
isNew.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
it('should tell addon version is up to date (be sure to update the number ...)', async function() {
this.timeout(testTimeout)
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
let mockAddonData = {
addons: {
'Ace3': {
platform: 'curse',
version: 2398595,
folders: null
}
}
}
await wow.saveFd.write(mockAddonData);
const [isNew, platform, zipUrl, version] = await wow.checkupdate('Ace3');
isNew.should.equal(false);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
it('should tell the new version of multiple addons (be sure to update the number ...)', async function() {
this.timeout(30 * 1000);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
const wow = new Wow(wowPath, wowPath);
let mockAddonData = {
addons: {
'Ace3': {
platform: 'curse',
version: 2398595,
folders: null
},
'Auctionator': {
platform: 'curse',
version: 0,
folders: null
},
'Bagnon': {
platform: 'curse',
version: 0,
folders: null
}
}
};
await wow.saveFd.write(mockAddonData);
const addonsToUpdate = await wow.checkAllAddonsForUpdate();
addonsToUpdate.length.should.equal(2);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
});
describe('downloader', function() {
describe('downloadZipToTempFile()', function() {
it('should download the zip of an addon', async function() {
this.timeout(testTimeout);
try {
const [url, version] = await curse.getDownloadURL('Ace3', null);
const path = await downloader.downloadZipToTempFile(url);
should.exist(path);
const fileExist = await exists(path);
fileExist.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
});
describe('download wow addon into wow folder', function() {
describe('with tukui', function () {
it('should download an addon, extract it, and place it into the wow interface addons folder', async function() {
this.timeout(testTimeout * 2);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
await wow.install('tukui:128', null);
const fileExist = await exists(wow.getSaveFile());
fileExist.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
describe('with wowinterface', function () {
it('should download an addon, extract it, and place it into the wow interface addons folder', async function() {
this.timeout(testTimeout * 2);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
await wow.install('http://www.wowinterface.com/downloads/info22379-HardYards.html', null);
const fileExist = await exists(wow.getSaveFile());
fileExist.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
describe('with git', function () {
it('should download an addon, extract it, and place it into the wow interface addons folder', async function() {
this.timeout(testTimeout * 2);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
await wow.install('http://git.tukui.org/Tukz/tukui.git', null);
const fileExist = await exists(wow.getSaveFile());
fileExist.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
describe('with curse', function () {
it('should download an addon, extract it, and place it into the wow interface addons folder', async function() {
this.timeout(testTimeout * 2);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
await wow.install('Ace3', null);
const fileExist = await exists(wow.getSaveFile());
fileExist.should.equal(true);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
it('should do as above and delete it', async function() {
this.timeout(testTimeout);
try {
const wowPath = await makeTmpWowFolder();
should.exist(wowPath);
let wow = new Wow(wowPath, wowPath);
await wow.install('Ace3', null);
const fileExist = await exists(wow.getSaveFile());
fileExist.should.equal(true);
// check if toc exists
const Ace3toc = path.join(wow.getAddonsDir(), 'Ace3', 'Ace3.toc');
let tocExist = await exists(Ace3toc);
tocExist.should.equal(true);
// now delete
await wow.uninstall('Ace3');
tocExist = await exists(Ace3toc);
tocExist.should.equal(false);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
it('should install 3 addons and reinstall them', async function() {
this.timeout(30 * 1000);
try {
const wowPath = await makeTmpWowFolder();
const wow = new Wow(wowPath, wowPath);
const addons = ['ace3', 'tukui:128', 'http://www.wowinterface.com/downloads/info22379-HardYards.html'];
const len = addons.length;
let results = await wow.installAddonList(addons);
results.length.should.equal(len);
const data = await wow.getConfigData();
should.exist(data);
should.exist(data.addons);
Object.keys(data.addons).length.should.equal(len);
const addonsReinstall = [];
for (let addonName of Object.keys(data.addons)) {
const version = data.addons[addonName].version;
const plt = data.addons[addonName].platform;
addonsReinstall.push({ name: addonName, version: version, platform: plt });
}
addonsReinstall.length.should.equal(len);
results = await wow.installAddonList(addonsReinstall);
results.length.should.equal(len);
} catch(err) {
log.error('test', err);
should.not.exist(err);
}
})
})
})
| 30.783708 | 116 | 0.587189 |
ea9de64252e18d5b09b6b209e49cef16ee50140a | 1,163 | js | JavaScript | documentation/html/search/functions_3.js | JulianoCristian/GTS-GamesTaskScheduler | 269aaced42b111c32b1c15bd748ae2058a3dc10a | [
"MIT"
] | 1 | 2020-11-11T13:10:08.000Z | 2020-11-11T13:10:08.000Z | documentation/html/search/functions_3.js | JulianoCristian/GTS-GamesTaskScheduler | 269aaced42b111c32b1c15bd748ae2058a3dc10a | [
"MIT"
] | null | null | null | documentation/html/search/functions_3.js | JulianoCristian/GTS-GamesTaskScheduler | 269aaced42b111c32b1c15bd748ae2058a3dc10a | [
"MIT"
] | null | null | null | var searchData=
[
['data_774',['data',['../classgts_1_1_vector.html#afef4ac06437a7ddd5925d5c7cd41e34f',1,'gts::Vector::data() const'],['../classgts_1_1_vector.html#a0a6793a4a68418fd367ef7b317cf139c',1,'gts::Vector::data()']]],
['deallocate_775',['deallocate',['../classgts_1_1_block_allocator.html#a2c028130e120d31f3bd84c6652fb554b',1,'gts::BlockAllocator::deallocate()'],['../classgts_1_1_binned_allocator.html#adc2795b6e03f6cf26e11395d51b54ab5',1,'gts::BinnedAllocator::deallocate()']]],
['deallocatepage_776',['deallocatePage',['../structgts_1_1_memory_store.html#a92a8392d65ba8e2422962d638c26046b',1,'gts::MemoryStore']]],
['deallocateslab_777',['deallocateSlab',['../structgts_1_1_memory_store.html#a07aa980a750a8399cc96a45176cd5be8',1,'gts::MemoryStore']]],
['destorytask_778',['destoryTask',['../classgts_1_1_micro_scheduler.html#ac86bc5fb63f9322033155f8e8f68b366',1,'gts::MicroScheduler']]],
['destroy_779',['destroy',['../classgts_1_1_thread.html#a7536bc6a15a95ed926b38254e40633ed',1,'gts::Thread']]],
['destroynode_780',['destroyNode',['../classgts_1_1_macro_scheduler.html#abf287c3c45901e67738e369d0dce0be5',1,'gts::MacroScheduler']]]
];
| 105.727273 | 264 | 0.7773 |
ea9f6358a4731aeede29c8f2cae4df302acf7859 | 953 | js | JavaScript | webpack.config.js | B2D1/react-lazy | 106ff2b83e9f88355765073a32c789e53f24ab96 | [
"MIT"
] | null | null | null | webpack.config.js | B2D1/react-lazy | 106ff2b83e9f88355765073a32c789e53f24ab96 | [
"MIT"
] | null | null | null | webpack.config.js | B2D1/react-lazy | 106ff2b83e9f88355765073a32c789e53f24ab96 | [
"MIT"
] | null | null | null | // webpack.config.js
const path = require("path");
const Html = require("html-webpack-plugin");
const resolvePath = (x) => path.resolve(__dirname, ...x.split(path.sep));
module.exports = {
entry: {
main: resolvePath("src/app.js"),
},
output: {
path: resolvePath("public"),
uniqueName: "main",
clean: true,
chunkFormat: "module",
},
mode: "development",
bail: true,
target: "es2021",
optimization: {
minimize: false,
splitChunks: {
chunks: "all",
cacheGroups: {
defaultVendors: false,
},
},
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-react"],
},
},
},
],
},
plugins: [
new Html({
template: resolvePath("src/index.ejs"),
scriptLoading: "module",
}),
],
};
| 16.152542 | 73 | 0.509969 |
ea9f7050046c74e8bc013eef24df906cdd856286 | 2,915 | js | JavaScript | node_modules/gulp-watch-path/index.js | yuyang545262477/Tools | bdc8d9668b6c889b23b859d8ca451f90ec980ce9 | [
"MIT"
] | null | null | null | node_modules/gulp-watch-path/index.js | yuyang545262477/Tools | bdc8d9668b6c889b23b859d8ca451f90ec980ce9 | [
"MIT"
] | null | null | null | node_modules/gulp-watch-path/index.js | yuyang545262477/Tools | bdc8d9668b6c889b23b859d8ca451f90ec980ce9 | [
"MIT"
] | null | null | null | /*
传入 gulp.watch(funciton(event){}) 中的 event(event.path) 、 查找起始字符串(search)、替换字符串(replace) 和 扩展名
扩展名非必填(大部分情况下会自动识别,例如:event.path = 'index.sass' 若 ext 参数为空,ext = 'css')
*/
var path = require('path')
var main = function (event, search, replace, ext) {
var log = function (msg) {
// console.log(msg)
}
var srcFilename, distFilename, srcPath, srcDir, distPath, distDir
var rStringToRegExp, fStringToPrefixRegExp, fStringToSuffixRegExp, rDirname
search = path.join(search)
replace = path.join(replace)
log('\n')
log('search: ' + search)
log('replace: ' + replace)
log('event.path: ' + event.path)
// /Users/nimojs/Documents/code/demo/src/index.js
/*
将字符串转换为正则所需的正则
. $ ^ { 等均需要被转换为 \. \$ \^ \ {
*/
rStringToRegExp = /([.$^{[(|)*+?\/\\])/g
fStringToPrefixRegExp = function (str) {
return new RegExp(
'^' + (
str.replace(rStringToRegExp, '\\$1')
)
);
}
fStringToSuffixRegExp = function (str) {
return new RegExp(
(
str.replace(rStringToRegExp, '\\$1')
) + '$'
);
}
if (typeof search === 'string') {
search = fStringToPrefixRegExp(search) // src/ ==> \src\//
}
srcFilename = path.basename(event.path)
log('srcFilename: ' + srcFilename)
// index.js
if (!ext) {
if (/\.(coffee|node)$/i.test(srcFilename)) {
ext = 'js'
}
else if (/\.(scss|sass|less)$/i.test(srcFilename)) {
ext = 'css'
}
else if (/\.(handlebars|hbs)$/i.test(srcFilename)) {
ext = 'js'
}
}
if (ext) {
if (/\./.test(srcFilename)) {
distFilename = srcFilename.replace(/[^.]+$/, ext);
}
else{
distFilename = srcFilename + '.' + ext
}
}
else {
distFilename = srcFilename;
}
log('distFilename: ' + distFilename)
rDirname = fStringToPrefixRegExp(process.cwd())
log('rDirname: ' + rDirname)
// ^\/Documents\/code\/gulp-watch-path\/
srcPath = event.path.replace(rDirname, '')
.replace(/^[\/\\]/, '')
log('srcPath: ' + srcPath)
// src/js/log.js
srcDir = path.dirname(srcPath)
log('srcDir: ' + srcDir)
// src/js/
distPath = srcPath.replace(search, replace)
log('distPath: ' + distPath)
// dist/js/log.js
if (ext) {
distPath = distPath.replace(/[^.]+$/, ext);
}
distDir = path.dirname(distPath)
log('distDir: ' + distDir)
// dist/js/
log('\n')
return {
srcFilename: srcFilename,
distFilename: distFilename,
srcPath: srcPath,
srcDir: srcDir,
distPath: distPath,
distDir: distDir
}
}
module.exports = main
| 26.990741 | 96 | 0.512521 |
eaa06066afefe67a5b2bc117d5cf5303ace14525 | 714 | js | JavaScript | src/features/common/SearchInput.js | stungkit/rekit-portal | 8bef3722300d404633675a8c1483e36bf2809981 | [
"MIT"
] | 96 | 2017-01-02T17:29:14.000Z | 2022-02-17T08:53:27.000Z | src/features/common/SearchInput.js | stungkit/rekit-portal | 8bef3722300d404633675a8c1483e36bf2809981 | [
"MIT"
] | 11 | 2020-07-19T04:29:53.000Z | 2022-03-15T20:02:49.000Z | src/features/common/SearchInput.js | stungkit/rekit-portal | 8bef3722300d404633675a8c1483e36bf2809981 | [
"MIT"
] | 8 | 2017-08-16T15:39:46.000Z | 2020-06-20T13:16:52.000Z | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { autobind } from 'core-decorators';
import { Input } from 'antd';
export default class SearchInput extends PureComponent {
static propTypes = {
onSearch: PropTypes.func,
};
static defaultProps = {
onSearch() {},
};
@autobind
handleSearchInput(evt) {
const key = evt.target.value;
if (this.searchTimeout) clearTimeout(this.searchTimeout);
this.searchTimeout = setTimeout(() => {
this.props.onSearch(key);
delete this.searchTimeout;
}, 200);
}
render() {
return (
<Input.Search onChange={this.handleSearchInput} className="common-search-input" />
);
}
}
| 23.032258 | 88 | 0.661064 |
b82897d0c0ee3e272b2d2f28b73ff4c7870b8293 | 1,450 | js | JavaScript | src/components/about.js | Rimma-A/rimma_portfolio | 2993b824070081de38ce638e651bd2cf67c891d9 | [
"MIT"
] | null | null | null | src/components/about.js | Rimma-A/rimma_portfolio | 2993b824070081de38ce638e651bd2cf67c891d9 | [
"MIT"
] | null | null | null | src/components/about.js | Rimma-A/rimma_portfolio | 2993b824070081de38ce638e651bd2cf67c891d9 | [
"MIT"
] | null | null | null | import React from "react";
import { useStaticQuery, graphql } from "gatsby";
import Img from "gatsby-image";
import { Link } from "gatsby";
const About = () => {
const data = useStaticQuery(graphql`
query {
avatar: file(relativePath: { eq: "photo.jpg" }) {
childImageSharp {
fluid(maxWidth: 300) {
...GatsbyImageSharpFluid
}
}
}
}
`)
return (
<div className="about" id="about">
<div className="container">
<div className="inner-about">
<div className="content">
<h3>About</h3>
<p>As a teenager, I always loved math, logical thinking and rapid learning. After earning my degree in Urban Planning and exploring the hospitality industry, I wanted apply my engineer’s mindset to build software. To accelerate my transition into web development, I attended Fullstack Academy. I understand the importance of teamwork and being helpful to others. I'm currently a full-stack developer specializing in Javascript, and I'm always open to new technologies.</p>
<div className="btn-row">
<a data-scroll href="/#work">View Projects</a>
</div>
</div>
<div className="image">
<div className="center">
<Img fluid={data.avatar.childImageSharp.fluid}/>
</div>
</div>
</div>
</div>
</div>
)
}
export default About
| 34.52381 | 484 | 0.604828 |
b829b6f7dfe3378a2c97c421e957aed95c5545a7 | 965 | js | JavaScript | ProgrammingLanguages/Javascript/LearnJS/js/learn_37.js | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | ProgrammingLanguages/Javascript/LearnJS/js/learn_37.js | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | ProgrammingLanguages/Javascript/LearnJS/js/learn_37.js | tintinkung/LearningHub | 235ae7451dada88027a5463962cac9c672b8aa08 | [
"MIT"
] | null | null | null | /**
* Javascript, Try Catch Throw Error handling
* more info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#Exeption_handling_statments
*/
{
// --- example_1 ---
try // try doing anything
{
doesntExist;
}
catch(error) // catch any error
{
console.log(error);
}
finally // method that will Finally execute(always execute)
{
console.log("FINALLY!");
}
// --- example_2 ---
function doSomething()
{
throw { error: "tis broke", code: -1 }
}
try
{
doSomething();
}
catch(error)
{
console.log(error);
console.log("Error");
}
finally
{
console.log("Wrapping things up...");
}
}
{
// more info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Error_Types
throw new Error(); //special constructor that create error for us
} | 20.978261 | 135 | 0.595855 |
b82a554834349ee75095bebade5fb2bf75fb60a8 | 1,310 | js | JavaScript | config/webpack.dll.config.js | ovinzhou/roleplay | d65879a9f3ebc825575e0da69222d79cb65bb4bd | [
"MIT"
] | null | null | null | config/webpack.dll.config.js | ovinzhou/roleplay | d65879a9f3ebc825575e0da69222d79cb65bb4bd | [
"MIT"
] | null | null | null | config/webpack.dll.config.js | ovinzhou/roleplay | d65879a9f3ebc825575e0da69222d79cb65bb4bd | [
"MIT"
] | null | null | null | const webpack = require('webpack');
const helpers = require('./helpers');
const DefinePlugin = require('webpack/lib/DefinePlugin');
const NamedModulesPlugin = require('webpack/lib/NamedModulesPlugin');
const ENV = process.env.NODE_ENV;
module.exports = {
entry: {
vendor: [
'../src/polyfills.browser.ts',
'../src/vendor.browser.ts'
]
},
output: {
path: helpers.root('lib'),
filename: '[name].dll.js',
library: '[name]_library'
},
resolve: {
/*
* An array of extensions that should be used to resolve modules.
*
* See: http://webpack.github.io/docs/configuration.html#resolve-extensions
*/
extensions: ['','.ts', '.js', '.json'],
// An array of directory names to be resolved to the current directory
modules: [helpers.root('node_modules')],
root: [
helpers.root('src/app')
]
},
module: {
loaders: [
{
test: /\.ts$/,
loaders: [
'awesome-typescript-loader'
],
exclude: [/\.(spec|e2e)\.ts$/]
}
]
},
plugins: [
new DefinePlugin({
'ENV': JSON.stringify(ENV)
}),
new webpack.DllPlugin({
path: helpers.root('lib','[name]-manifest.json'),
name: '[name]_library'
}),
new NamedModulesPlugin()
]
} | 23.392857 | 81 | 0.567939 |
b82a763d37df75af46a4aa9fb0ba27c7787b69a8 | 514 | js | JavaScript | node/index.js | yervand951/angular-auction | 4a223c8005c854f9ab6daea2a5eced12421ffde1 | [
"MIT"
] | null | null | null | node/index.js | yervand951/angular-auction | 4a223c8005c854f9ab6daea2a5eced12421ffde1 | [
"MIT"
] | null | null | null | node/index.js | yervand951/angular-auction | 4a223c8005c854f9ab6daea2a5eced12421ffde1 | [
"MIT"
] | null | null | null | var io = require('socket.io').listen(8080);
var db = require('./config/db.js');
db.query('SELECT * FROM auctions',function (err, rows, fields) {
if(err) throw err;
io.on('connection', function (socket) {
socket.on('auctions', function (data) {
socket.emit('message',{auctions:rows});
console.log(data);
});
socket.on('connect', function (data) {
socket.emit('message',{auctions:rows});
console.log(data);
});
});
})
| 23.363636 | 64 | 0.544747 |
b82ab6af3083b1aaef9251793d615adfce480002 | 1,295 | js | JavaScript | test/test.js | remind101/e164.js | e282b8c5744b9e2cf1044751be048b569079da80 | [
"MIT",
"Unlicense"
] | null | null | null | test/test.js | remind101/e164.js | e282b8c5744b9e2cf1044751be048b569079da80 | [
"MIT",
"Unlicense"
] | 9 | 2015-01-05T18:29:51.000Z | 2021-10-01T18:17:40.000Z | test/test.js | remind101/e164.js | e282b8c5744b9e2cf1044751be048b569079da80 | [
"MIT",
"Unlicense"
] | 1 | 2022-03-23T06:44:10.000Z | 2022-03-23T06:44:10.000Z | /*jslint browser: true, regexp: true, nomen: true, indent:2, white:true, sloppy:true, debug:true */
/*global require*/
/* vim: set ft=javascript: */
var e164 = require("../e164"),
assert = require("assert");
assert.deepEqual(
{ prefix: "1514", country: "Canada", code: "CA" },
e164.lookup("15141234567")
);
assert.deepEqual(
{ prefix: "1514", country: "Canada", code: "CA" },
e164.lookup("+15141234567")
);
assert.deepEqual(undefined, e164.lookup("18001231234"));
assert.deepEqual(
{ prefix: "1870", country: "United States", code: "US" },
e164.lookup("18703434345")
);
assert.deepEqual(
{ prefix: "91", country: "India", code: "IN" },
e164.lookup("9191")
);
assert.deepEqual(
{ prefix: "6723", country: "Norfolk Island", code: "NF" },
e164.lookup("672322424")
);
assert.deepEqual(
{
prefix: "8811",
country: "ICO Global (Mobile Satellite Service)",
code: "ZZ",
},
e164.lookup("88112311")
);
assert.deepEqual(
{ prefix: "1418", country: "Canada", code: "CA" },
e164.lookup("1418")
);
assert.deepEqual(
{ prefix: "1603", country: "United States", code: "US" },
e164.lookup("1603")
);
assert.deepEqual(
{ prefix: "60", country: "Malaysia", code: "MY" },
e164.lookup("603")
);
assert.deepEqual(undefined, e164.lookup("0"));
console.log("ok");
| 24.903846 | 99 | 0.635521 |
b82b2fdd99837a6465e294f4dc83862934ff6a5c | 127 | js | JavaScript | apps/communications/facebook/test/unit/mock_curtain.js | wilsonpage/gaia | d0beeca2401ff90564dfcbe45ee5237d46605ab8 | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | apps/communications/facebook/test/unit/mock_curtain.js | ganesh7/gaia | 32112b10072e82ac8d52be891d09685f8eaa02f8 | [
"Apache-2.0"
] | 3 | 2016-09-10T15:41:48.000Z | 2016-09-10T15:42:41.000Z | apps/communications/facebook/test/unit/mock_curtain.js | ganesh7/gaia | 32112b10072e82ac8d52be891d09685f8eaa02f8 | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | var Curtain = {
show: function() {
return {
update: function() {
}
};
},
hide: function() {
}
};
| 9.769231 | 26 | 0.425197 |
b82c422a74577ecec40ba4ff7cf3543df100343a | 15,808 | js | JavaScript | dist/string-quote-x.min.js | Xotic750/string-quote-x | ac89ceb05ddf3f1a459f79f5cf03db5226744b08 | [
"MIT"
] | 1 | 2020-02-25T01:14:01.000Z | 2020-02-25T01:14:01.000Z | dist/string-quote-x.min.js | Xotic750/string-quote-x | ac89ceb05ddf3f1a459f79f5cf03db5226744b08 | [
"MIT"
] | 3 | 2020-01-31T13:34:38.000Z | 2021-05-06T17:40:02.000Z | dist/string-quote-x.min.js | Xotic750/string-quote-x | ac89ceb05ddf3f1a459f79f5cf03db5226744b08 | [
"MIT"
] | 1 | 2020-12-19T07:05:02.000Z | 2020-12-19T07:05:02.000Z | /*! For license information please see string-quote-x.min.js.LICENSE.txt */
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.stringQuoteX=n():t.stringQuoteX=n()}(function(){"use strict";var t,n={}.constructor,e=n.prototype,r=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return r?r(e,"$$globalThis$$",{get:i,configurable:!0}):e.__defineGetter__("$$globalThis$$",i),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete e.$$globalThis$$,t}catch(t){return o()}}(),(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return 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,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=8)}([function(t,n,e){"use strict";var r=Object.prototype.toString;if(e(4)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&i.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,e){(function(t,r){var o;(function(){var i=e(7),u={function:!0,object:!0},c=u[typeof n]&&n&&!n.nodeType&&n,f=u[typeof window]&&window||this,l=c&&u[typeof t]&&t&&!t.nodeType&&"object"==typeof r&&r;function a(t,n){t||(t=f.Object()),n||(n=f.Object());var e=t.Number||f.Number,r=t.String||f.String,o=t.Object||f.Object,i=t.Date||f.Date,c=t.SyntaxError||f.SyntaxError,l=t.TypeError||f.TypeError,s=t.Math||f.Math,p=t.JSON||f.JSON;"object"==typeof p&&p&&(n.stringify=p.stringify,n.parse=p.parse);var y=o.prototype,b=y.toString,h=y.hasOwnProperty;function g(t,n){try{t()}catch(t){n&&n()}}var d=new i(-0xc782b5b800cec);function v(t){if(null!=v[t])return v[t];var o;if("bug-string-char-index"==t)o="a"!="a"[0];else if("json"==t)o=v("json-stringify")&&v("date-serialization")&&v("json-parse");else if("date-serialization"==t){if(o=v("json-stringify")&&d){var u=n.stringify;g((function(){o='"-271821-04-20T00:00:00.000Z"'==u(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==u(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==u(new i(-1))}))}}else{var c,f='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var l="function"==typeof(u=n.stringify);l&&((c=function(){return 1}).toJSON=c,g((function(){l="0"===u(0)&&"0"===u(new e)&&'""'==u(new r)&&void 0===u(b)&&void 0===u(void 0)&&void 0===u()&&"1"===u(c)&&"[1]"==u([c])&&"[null]"==u([void 0])&&"null"==u(null)&&"[null,null,null]"==u([void 0,b,null])&&u({a:[c,!0,!1,null,"\0\b\n\f\r\t"]})==f&&"1"===u(null,c)&&"[\n 1,\n 2\n]"==u([1,2],null,1)}),(function(){l=!1}))),o=l}if("json-parse"==t){var a,s=n.parse;"function"==typeof s&&g((function(){0!==s("0")||s(!1)||(c=s(f),(a=5==c.a.length&&1===c.a[0])&&(g((function(){a=!s('"\t"')})),a&&g((function(){a=1!==s("01")})),a&&g((function(){a=1!==s("1.")}))))}),(function(){a=!1})),o=a}}return v[t]=!!o}if(g((function(){d=-109252==d.getUTCFullYear()&&0===d.getUTCMonth()&&1===d.getUTCDate()&&10==d.getUTCHours()&&37==d.getUTCMinutes()&&6==d.getUTCSeconds()&&708==d.getUTCMilliseconds()})),v["bug-string-char-index"]=v["date-serialization"]=v.json=v["json-stringify"]=v["json-parse"]=null,!v("json")){var j=v("bug-string-char-index"),S=function(t,n){var e,r,o,i=0;for(o in(e=function(){this.valueOf=0}).prototype.valueOf=0,r=new e)h.call(r,o)&&i++;return e=r=null,i?S=function(t,n){var e,r,o="[object Function]"==b.call(t);for(e in t)o&&"prototype"==e||!h.call(t,e)||(r="constructor"===e)||n(e);(r||h.call(t,e="constructor"))&&n(e)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],S=function(t,n){var e,o,i="[object Function]"==b.call(t),c=!i&&"function"!=typeof t.constructor&&u[typeof t.hasOwnProperty]&&t.hasOwnProperty||h;for(e in t)i&&"prototype"==e||!c.call(t,e)||n(e);for(o=r.length;e=r[--o];)c.call(t,e)&&n(e)}),S(t,n)};if(!v("json-stringify")&&!v("date-serialization")){var O={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},m=function(t,n){return("000000"+(n||0)).slice(-t)},w=function(t){var n,e,r,o,i,u,c,f,l;if(d)n=function(t){e=t.getUTCFullYear(),r=t.getUTCMonth(),o=t.getUTCDate(),u=t.getUTCHours(),c=t.getUTCMinutes(),f=t.getUTCSeconds(),l=t.getUTCMilliseconds()};else{var a=s.floor,p=[0,31,59,90,120,151,181,212,243,273,304,334],y=function(t,n){return p[n]+365*(t-1970)+a((t-1969+(n=+(n>1)))/4)-a((t-1901+n)/100)+a((t-1601+n)/400)};n=function(t){for(o=a(t/864e5),e=a(o/365.2425)+1970-1;y(e+1,0)<=o;e++);for(r=a((o-y(e,0))/30.42);y(e,r+1)<=o;r++);o=1+o-y(e,r),u=a((i=(t%864e5+864e5)%864e5)/36e5)%24,c=a(i/6e4)%60,f=a(i/1e3)%60,l=i%1e3}}return(w=function(t){return t>-1/0&&t<1/0?(n(t),t=(e<=0||e>=1e4?(e<0?"-":"+")+m(6,e<0?-e:e):m(4,e))+"-"+m(2,r+1)+"-"+m(2,o)+"T"+m(2,u)+":"+m(2,c)+":"+m(2,f)+"."+m(3,l)+"Z",e=r=o=u=c=f=l=null):t=null,t})(t)};if(v("json-stringify")&&!v("date-serialization")){function C(t){return w(this)}var T=n.stringify;n.stringify=function(t,n,e){var r=i.prototype.toJSON;i.prototype.toJSON=C;var o=T(t,n,e);return i.prototype.toJSON=r,o}}else{var x=function(t){var n=t.charCodeAt(0),e=O[n];return e||"\\u00"+m(2,n.toString(16))},A=/[\x00-\x1f\x22\x5c]/g,$=function(t){return A.lastIndex=0,'"'+(A.test(t)?t.replace(A,x):t)+'"'},N=function(t,n,e,r,o,u,c){var f,a,s,p,y,h,d,v,j;if(g((function(){f=n[t]})),"object"==typeof f&&f&&(f.getUTCFullYear&&"[object Date]"==b.call(f)&&f.toJSON===i.prototype.toJSON?f=w(f):"function"==typeof f.toJSON&&(f=f.toJSON(t))),e&&(f=e.call(n,t,f)),null==f)return void 0===f?f:"null";switch("object"==(a=typeof f)&&(s=b.call(f)),s||a){case"boolean":case"[object Boolean]":return""+f;case"number":case"[object Number]":return f>-1/0&&f<1/0?""+f:"null";case"string":case"[object String]":return $(""+f)}if("object"==typeof f){for(d=c.length;d--;)if(c[d]===f)throw l();if(c.push(f),p=[],v=u,u+=o,"[object Array]"==s){for(h=0,d=f.length;h<d;h++)y=N(h,f,e,r,o,u,c),p.push(void 0===y?"null":y);j=p.length?o?"[\n"+u+p.join(",\n"+u)+"\n"+v+"]":"["+p.join(",")+"]":"[]"}else S(r||f,(function(t){var n=N(t,f,e,r,o,u,c);void 0!==n&&p.push($(t)+":"+(o?" ":"")+n)})),j=p.length?o?"{\n"+u+p.join(",\n"+u)+"\n"+v+"}":"{"+p.join(",")+"}":"{}";return c.pop(),j}};n.stringify=function(t,n,e){var r,o,i,c;if(u[typeof n]&&n)if("[object Function]"==(c=b.call(n)))o=n;else if("[object Array]"==c){i={};for(var f,l=0,a=n.length;l<a;)f=n[l++],"[object String]"!=(c=b.call(f))&&"[object Number]"!=c||(i[f]=1)}if(e)if("[object Number]"==(c=b.call(e))){if((e-=e%1)>0)for(e>10&&(e=10),r="";r.length<e;)r+=" "}else"[object String]"==c&&(r=e.length<=10?e:e.slice(0,10));return N("",((f={})[""]=t,f),o,i,r,"",[])}}}if(!v("json-parse")){var P,J,U=r.fromCharCode,M={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},E=function(){throw P=J=null,c()},F=function(){for(var t,n,e,r,o,i=J,u=i.length;P<u;)switch(o=i.charCodeAt(P)){case 9:case 10:case 13:case 32:P++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=j?i.charAt(P):i[P],P++,t;case 34:for(t="@",P++;P<u;)if((o=i.charCodeAt(P))<32)E();else if(92==o)switch(o=i.charCodeAt(++P)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=M[o],P++;break;case 117:for(n=++P,e=P+4;P<e;P++)(o=i.charCodeAt(P))>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||E();t+=U("0x"+i.slice(n,P));break;default:E()}else{if(34==o)break;for(o=i.charCodeAt(P),n=P;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++P);t+=i.slice(n,P)}if(34==i.charCodeAt(P))return P++,t;E();default:if(n=P,45==o&&(r=!0,o=i.charCodeAt(++P)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(P+1))>=48&&o<=57)&&E(),r=!1;P<u&&((o=i.charCodeAt(P))>=48&&o<=57);P++);if(46==i.charCodeAt(P)){for(e=++P;e<u&&!((o=i.charCodeAt(e))<48||o>57);e++);e==P&&E(),P=e}if(101==(o=i.charCodeAt(P))||69==o){for(43!=(o=i.charCodeAt(++P))&&45!=o||P++,e=P;e<u&&!((o=i.charCodeAt(e))<48||o>57);e++);e==P&&E(),P=e}return+i.slice(n,P)}r&&E();var c=i.slice(P,P+4);if("true"==c)return P+=4,!0;if("fals"==c&&101==i.charCodeAt(P+4))return P+=5,!1;if("null"==c)return P+=4,null;E()}return"$"},_=function(t){var n,e;if("$"==t&&E(),"string"==typeof t){if("@"==(j?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(n=[];"]"!=(t=F());)e?","==t?"]"==(t=F())&&E():E():e=!0,","==t&&E(),n.push(_(t));return n}if("{"==t){for(n={};"}"!=(t=F());)e?","==t?"}"==(t=F())&&E():E():e=!0,","!=t&&"string"==typeof t&&"@"==(j?t.charAt(0):t[0])&&":"==F()||E(),n[t.slice(1)]=_(F());return n}E()}return t},k=function(t,n,e){var r=D(t,n,e);void 0===r?delete t[n]:t[n]=r},D=function(t,n,e){var r,o=t[n];if("object"==typeof o&&o)if("[object Array]"==b.call(o))for(r=o.length;r--;)k(b,S,o);else S(o,(function(t){k(o,t,e)}));return e.call(t,n,o)};n.parse=function(t,n){var e,r;return P=0,J=""+t,e=_(F()),"$"!=F()&&E(),P=J=null,n&&"[object Function]"==b.call(n)?D(((r={})[""]=e,r),"",n):e}}}return n.runInContext=a,n}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(f=l),c&&!i)a(f,c);else{var s=f.JSON,p=f.JSON3,y=!1,b=a(f,f.JSON3={noConflict:function(){return y||(y=!0,f.JSON=s,f.JSON3=p,s=p=null),b}});f.JSON={parse:b.parse,stringify:b.stringify}}i&&(void 0===(o=function(){return b}.call(n,e,n,t))||(t.exports=o))}).call(this)}).call(this,e(6)(t),e(1))},function(t,n,e){"use strict";(function(n){var r=n.Symbol,o=e(5);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,e(1))},function(t,n,e){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),e=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){(function(n){t.exports=n}).call(this,{})},function(t,n,e){"use strict";function r(t){return(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})(t)}e.r(n);var o=function(t){return"object"===r(t)?null===t:"function"!=typeof t},i=e(2),u=e.n(i),c={}.constructor("a"),f="a"===c[0]&&0 in c,l=function(){}.bind,a="function"==typeof l&&function(){var t=null,n=null,e=null,r=[];try{var o=l.apply((function(r,o){return e=this,t=r,n=o,arguments}),[r,1]),i=o(2);return 1===o.length&&2===i.length&&1===t&&2===n&&e===r}catch(t){return!1}}()&&function(){var t=null,n=null,e=null,r=[1,2,3],o=function(o,i){return t=o,n=i,e=this,r};try{var i=l.apply(o,[null]),u=new i(1,2);return i.length===o.length&&u===r&&1===t&&2===n&&e!==r}catch(t){return!1}}(),s="".split,p=Math.max,y=o.bind,b=o.call,h=a?y.call(b,s):function(t,n){return s.call(t,n)},g=function(t){return u()(t)?h(t,""):t},d=function(t,n){var e=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return e;for(var r=f?t:g(t),i=r.length,u=p(0,n)||0;u<i;u+=1)e[e.length]=t[u];return e};function v(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var j=d.bind,S=d.call,O={},m=O.constructor,w=O.toString,C=function(t,n){return t>=n?t:n},T=function(t){if("function"!=typeof t&&"[object Function]"!==w.apply(t))throw new TypeError("bind called on incompatible "+t)},x=[function(t){return function(){return t.apply(this,d(arguments))}},function(t,n){return function(e){return t.apply(this,d(arguments,n,[e]))}},function(t,n){return function(e,r){return t.apply(this,d(arguments,n,[e,r]))}},function(t,n){return function(e,r,o){return t.apply(this,d(arguments,n,[e,r,o]))}},function(t,n){return function(e,r,o,i){return t.apply(this,d(arguments,n,[e,r,o,i]))}},function(t,n){return function(e,r,o,i,u){return t.apply(this,d(arguments,n,[e,r,o,i,u]))}},function(t,n){return function(e,r,o,i,u,c){return t.apply(this,d(arguments,n,[e,r,o,i,u,c]))}},function(t,n){return function(e,r,o,i,u,c,f){return t.apply(this,d(arguments,n,[e,r,o,i,u,c,f]))}},function(t,n){return function(e,r,o,i,u,c,f,l){return t.apply(this,d(arguments,n,[e,r,o,i,u,c,f,l]))}}],A=function(t){var n=v(t,3),e=n[0],r=n[1],o=n[2],i=C(0,r.length-C(0,o.length-2)),u=x[i],c=u?u(e,i):x[0](e);if(r.prototype){var f=function(){};f.prototype=r.prototype,c.prototype=new f,f.prototype=null}return c},$=function(t,n){var e=t.apply(this,n);return m(e)===e?e:this},N=a?S.bind(j):function(t,n){T(t);var e,r=arguments,o=function(){var o=d(arguments,0,d(r,2));return this instanceof e?$.apply(this,[t,o]):t.apply(n,o)};return e=A([o,t,r])},P=TypeError,J=N.apply,U=N(N.call,J),M=N(J,{}.toString),E=function(t){if("function"!=typeof t&&"[object Function]"!==M(t))throw new P(t+" is not a function");return t},F=function(t,n){return U(E(t),n,d(arguments[2]))},_=function(t){try{return{threw:!1,value:F(t,this,d(arguments,1))}}catch(t){return{threw:!0,value:t}}},k=e(0),D=e.n(k);var z=_(function(){return function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&D()(Symbol(""))}.bind(void 0)),I=!1===z.threw&&!0===z.value&&Symbol.prototype.toString,Z="function"==typeof I&&D.a,Y="".constructor,H=function(t){return Z&&Z(t)?I.call(t):Y(t)},Q=e(3);n.default=function(t){return Object(Q.stringify)(H(t))}}])}));
//# sourceMappingURL=string-quote-x.min.js.map | 5,269.333333 | 15,685 | 0.632401 |
b82c889becb4c0f514c75ee8ac2933259082a6aa | 1,483 | js | JavaScript | dist/ng-currency-input.min.js | Gilbertok/ng-currency-input | aad953117100a41f6d73372c8c495e69ff620244 | [
"Unlicense"
] | null | null | null | dist/ng-currency-input.min.js | Gilbertok/ng-currency-input | aad953117100a41f6d73372c8c495e69ff620244 | [
"Unlicense"
] | null | null | null | dist/ng-currency-input.min.js | Gilbertok/ng-currency-input | aad953117100a41f6d73372c8c495e69ff620244 | [
"Unlicense"
] | null | null | null | angular.module("ng-currency-input",[]).directive("currencyInput",["$locale",function(){return{restrict:"A",replace:!0,require:"ngModel",template:'<input type="text" class="form-control" style="text-align: right;">',link:function(a,b,c,d){function e(a){var b=2,c="";if(null==a)return"0,00";a=f(a),thousandsCount=0;for(var d=a.length-1;d>=0;d--){var e=a.substr(d,1);"."!=e?("-"!=e&&(c.length<=2?2==thousandsCount&&(c=","+c,thousandsCount=0):3==thousandsCount&&(c="."+c,thousandsCount=0),thousandsCount++),c=e+c):(c="."+c,c=c.substr(0,b+1),0>=b&&(c=""))}return 1===c.length&&(c="0,0"+c.toString()),2===c.length&&(c="0,"+c.toString()),"0,00"!=c&&"0,"!=c.substr(0,2)&&(c=c.substr(c.search(/[^0]/),c.length-c.search(/[^0]/))),c}function f(a){return console.log(a),null!=a&&("number"==typeof a&&1===a.toString().length?a=a.toString()+"00":"number"==typeof a&&a.toString().indexOf(".")>=0?(a=a.toString().replace(".",""),a=a.toString()+"0"):(a=a.toString().replace(",",""),a=parseFloat(a.toString()).toString(),a=a.replace(".",""))),a}function g(a){a.setSelectionRange(a.selectionEnd,a.selectionEnd)}b.on("keyup",function(a){{var b=a||window.event;b.charCode||b.keyCode}}),b.on("keypress",function(a){{var b=a||window.event;b.charCode||b.keyCode}}),b.on("focus",function(a){g(this),a.preventDefault()}),a.$watch(function(){return valor=e(d.$modelValue),b.val(valor)}),d.$formatters.unshift(function(a){return console.log("formatters"),a=e(a)}),d.$parsers.unshift(function(a){return a})}}}]); | 1,483 | 1,483 | 0.650708 |
b82e01b00ff249f73e345d29cbe19d4370ac824d | 431 | js | JavaScript | Portal/kawwa_components/05_siteUtilities/05_siteSearch/readmore.js | got5/KAWWA | d2a8ee49eaf61fb672135709a009c20d8aa17fad | [
"MIT"
] | 7 | 2015-04-24T07:29:45.000Z | 2019-02-19T17:00:58.000Z | Portal/kawwa_components/05_siteUtilities/05_siteSearch/readmore.js | got5/KAWWA | d2a8ee49eaf61fb672135709a009c20d8aa17fad | [
"MIT"
] | 48 | 2015-01-20T16:21:47.000Z | 2018-08-23T14:40:26.000Z | Portal/kawwa_components/05_siteUtilities/05_siteSearch/readmore.js | got5/KAWWA | d2a8ee49eaf61fb672135709a009c20d8aa17fad | [
"MIT"
] | 11 | 2015-01-14T11:55:31.000Z | 2021-03-26T07:59:46.000Z | Autocomplete can be customized to work with various data sources, by just specifying the source option. You must replace the variable given to the
<span class="i-code">createAutoComplete</span> function by your own data file path (relative to the HTML page).<br />
For more information about this plug-in, its options, events and methods, see the
<a href="http://docs.jquery.com/UI/Autocomplete">jQuery Autocomplete</a> page.
| 86.2 | 147 | 0.772622 |
b82eb3fe790c22794e5e598ddc60cebc3d71c56e | 843 | js | JavaScript | services/image-service.js | Niweera/opensear | eabe438e7524e1dc32fe3f8a569fac3c0434e446 | [
"MIT"
] | 8 | 2022-02-12T19:39:43.000Z | 2022-03-21T22:02:34.000Z | services/image-service.js | Niweera/opensear | eabe438e7524e1dc32fe3f8a569fac3c0434e446 | [
"MIT"
] | 1 | 2022-03-08T19:57:11.000Z | 2022-03-08T20:09:59.000Z | services/image-service.js | Niweera/opensear | eabe438e7524e1dc32fe3f8a569fac3c0434e446 | [
"MIT"
] | 1 | 2022-02-14T00:52:55.000Z | 2022-02-14T00:52:55.000Z | import Jimp from "jimp";
import path from "path";
import { fileURLToPath } from "url";
export default class ImageService {
async removeWatermark(originalScreenshot, tweetID) {
const __dirname = path.dirname(
path.dirname(fileURLToPath(import.meta.url))
);
const maskPath = path.resolve(path.join(__dirname, "assets", "mask.png"));
const outputPath = path.resolve(
path.join(__dirname, "temp", `${tweetID}.png`)
);
const baseImage = await Jimp.read(originalScreenshot);
const maskImage = await Jimp.read(maskPath);
await baseImage
.composite(maskImage, 0, 0, {
mode: Jimp.BLEND_DARKEN,
opacityDest: 1,
opacitySource: 1,
})
.writeAsync(outputPath);
console.log(`Now stored watermark removed file as ${outputPath}...`);
return outputPath;
}
}
| 27.193548 | 78 | 0.660735 |
b82fbf8e382a83679bc786e214b4c32a58c11019 | 1,288 | js | JavaScript | client/create-form/ctrl/create.js | zvimoe/movie-project | 90006ff37a8b10da97863d051f9d33a4b6119312 | [
"Apache-2.0"
] | null | null | null | client/create-form/ctrl/create.js | zvimoe/movie-project | 90006ff37a8b10da97863d051f9d33a4b6119312 | [
"Apache-2.0"
] | null | null | null | client/create-form/ctrl/create.js | zvimoe/movie-project | 90006ff37a8b10da97863d051f9d33a4b6119312 | [
"Apache-2.0"
] | null | null | null |
//ajax call for a dropdown of directors
(function(){$.ajax({
url: "../../server/api/api.php",
type: 'GET',
data:{table:'directors',
adata:{id:"all"}
},
success: function(data) {
console.log(JSON.parse(data))
let arr=JSON.parse(data)
for (let i=0; i<arr.length; i++) {
$("select").append("<option value='"+i+"'>"+arr[i]+"</option>")
}
}
})
}())
//function constractor for movies
function movie(name,dirctor,id){
this.name=name;
this.d_id=dirctor;
this.id=id
}
// function to create a new movie
function createMovie(){
console.log("works")
let m= new movie($("#name").val(),$("#director").val()+1,0);
(function(){$.ajax({
url: "../../server/api/api.php",
type: 'POST',
data:{table:'movies',
adata:m
},
success: function(data) {
console.log(data)
}
})
}())
}
function updateMovie(){
let m= new movie($("#name").val(),$("#director").val()+1,$("#id").val());
console.log(m);
(function(){$.ajax({
url: "../../server/api/api.php",
type: 'PUT',
data:{table:'movies',
adata:m
},
success: function(data) {
console.log(data)
}
})
}())
}
//TODO validation on inputs
| 20.125 | 75 | 0.513199 |
b82fe0321a44671fdd72f45f55d6ee60c65d873c | 622 | js | JavaScript | resources/assets/js/start.js | Mana-matrix/EDV-Schulung | e98d0097501f7db298cfd817bbcb319d6ad667d0 | [
"MIT"
] | null | null | null | resources/assets/js/start.js | Mana-matrix/EDV-Schulung | e98d0097501f7db298cfd817bbcb319d6ad667d0 | [
"MIT"
] | null | null | null | resources/assets/js/start.js | Mana-matrix/EDV-Schulung | e98d0097501f7db298cfd817bbcb319d6ad667d0 | [
"MIT"
] | null | null | null | var IMG=1;
var myGalleryTimer=setTimeout(function(){startGallery()},8000);
function startGallery(){
document.getElementById("galleryContens").style.backgroundImage='url('+"file/gallery/"+IMG+"/jpg"+')';
if(IMG<10){IMG+=1}else{IMG=1}
myGalleryTimer=setTimeout(function(){startGallery()},8000);
}
function angebot_in(btName){
document.getElementById(btName).style.border = "3px dotted #032642";
document.getElementById(btName).style.color = "#032642";
}
function angebot_out(btName){
document.getElementById(btName).style.border = "3px dotted #418ec9";
document.getElementById(btName).style.color = "#418ec9";
}
| 29.619048 | 103 | 0.749196 |
b831a015de05bf8fc15ec242ccc0afeab40e74f0 | 461 | js | JavaScript | Libraries/formatter.js | CuzImBisonratte/scriptcollection | 559b5acc15220afdf3fc9894880b1e15cfdfe327 | [
"MIT"
] | 1 | 2022-01-12T18:47:50.000Z | 2022-01-12T18:47:50.000Z | Libraries/formatter.js | CuzImBisonratte/scriptcollection | 559b5acc15220afdf3fc9894880b1e15cfdfe327 | [
"MIT"
] | null | null | null | Libraries/formatter.js | CuzImBisonratte/scriptcollection | 559b5acc15220afdf3fc9894880b1e15cfdfe327 | [
"MIT"
] | null | null | null | // Function to format a number with dots as thousands separator
function formatNumber(number) {
// Replace the decimal point
var numberNew = number.toString().split(".")[0].replace(/\B(?=(\d{3})+(?!\d))/g, ".");
// replace english point with german comma
if (number.toString().split(".")[1] != undefined) {
numberNew = numberNew + "," + number.toString().split(".")[1];
}
// return the formatted number
return numberNew;
} | 32.928571 | 90 | 0.618221 |
b83232afd1aaa477aa12d50fe8bf50864b9d269c | 2,354 | js | JavaScript | simple-bot.js | sinstar2000/react-feeling-lucky | 05773b5f1f9dd8288c82e51fd35a31205a93d598 | [
"MIT"
] | null | null | null | simple-bot.js | sinstar2000/react-feeling-lucky | 05773b5f1f9dd8288c82e51fd35a31205a93d598 | [
"MIT"
] | null | null | null | simple-bot.js | sinstar2000/react-feeling-lucky | 05773b5f1f9dd8288c82e51fd35a31205a93d598 | [
"MIT"
] | null | null | null | const scrapeIt = require('scrape-it');
const buildUrl = require('build-url');
const fs = require('fs');
const { bot: config } = require('./config.json');
const baseURL = buildUrl(config.path, { queryParams: config.params });
/**
* A recursive function to collect URLs to the search items from search pages into a list
* @param {String} startingWith is the starting search page URL
* @param {Array} prevLinks is a list of URLs to the search items from the previous pages
* @returns a promise for a list of URLs to the search items
*/
function collectLinks(startingWith, prevLinks = []) {
return scrapeIt(startingWith, config['lv1-selectors']).then(
({ data, response }) => {
// lv1-selectors specifies the CSS selector for the next page URL and search item URLs
const { links, next } = data;
// add the search item URLs from this page to the ones from the previous pages
const linksSoFar = [...prevLinks, ...links.map(e => e.url)];
if (next.lenght > 0) {
return getPages(next, linksSoFar);
} else {
// We have reached the last page
return linksSoFar;
}
}
);
}
/**
* Extracts data from each search item URL
* @param {Array} links is a list of search item URLs
*/
function collectItems(links) {
return Promise.all(
links.map(link => {
// lv0-selectors specifies the CSS selectors for the data we are interested in
return scrapeIt(link, config['lv0-selectors']).then(
({ data: item, response }) =>
// we want to keep a search item URLs close the data we have extracted from it
Object.assign({}, item, { link })
);
})
);
}
/**
* A search Item is only valid when all its values are non empty
* @param {Object} item represents the extracted information for a search item
*/
function isAValidItem(item) {
const hasMissingValue = Object.keys(item).some(key => {
const value = item[key];
return value.length === 0;
});
return !hasMissingValue;
}
collectLinks(baseURL)
.then(links => collectItems(links))
.then(items => items.filter(item => isAValidItem(item)))
.catch(err => console.log(err))
.then(data => {
fs.writeFile('./raw-data.json', JSON.stringify(data), 'utf8', err => {
if (err) throw err;
console.log(`extracted ${data.length} items successfully`);
});
});
| 33.628571 | 92 | 0.651657 |
b832d60bb8c0faf978bb33c1dd69ba9edd590052 | 328 | js | JavaScript | src/components/loading/Loading.js | WagnerTerry/disk_pizza | e909842ff67f1c73cdc1c805bb02584d0176bcba | [
"MIT"
] | null | null | null | src/components/loading/Loading.js | WagnerTerry/disk_pizza | e909842ff67f1c73cdc1c805bb02584d0176bcba | [
"MIT"
] | null | null | null | src/components/loading/Loading.js | WagnerTerry/disk_pizza | e909842ff67f1c73cdc1c805bb02584d0176bcba | [
"MIT"
] | null | null | null | import React from "react";
import ReactLoading from "react-loading";
const Loading = ({ color, height, width, size }) => {
return (
<ReactLoading
type={"spin"}
color={color || "#007bff"}
height={height || size || 50}
width={width || size || 50}
/>
);
};
export default React.memo(Loading);
| 20.5 | 53 | 0.582317 |
b835c3996efa8ee487a5110de25f2798028c5541 | 2,192 | js | JavaScript | Assets/StreamingAssets/tgui/packages/tgui/interfaces/SmartVend.js | liambaloh/OpenEOB | 209c176f80de652d9d8fde4ce0286907d3b1565f | [
"MIT"
] | 5 | 2020-06-30T14:38:20.000Z | 2022-03-15T11:50:51.000Z | Assets/StreamingAssets/tgui/packages/tgui/interfaces/SmartVend.js | liambaloh/OpenEOB | 209c176f80de652d9d8fde4ce0286907d3b1565f | [
"MIT"
] | null | null | null | Assets/StreamingAssets/tgui/packages/tgui/interfaces/SmartVend.js | liambaloh/OpenEOB | 209c176f80de652d9d8fde4ce0286907d3b1565f | [
"MIT"
] | null | null | null | import { map } from 'common/collections';
import { useBackend } from '../backend';
import { Button, NoticeBox, Section, Table } from '../components';
import { Window } from '../layouts';
export const SmartVend = (props, context) => {
const { act, data } = useBackend(context);
return (
<Window resizable>
<Window.Content scrollable>
<Section
title="Storage"
buttons={!!data.isdryer && (
<Button
icon={data.drying ? 'stop' : 'tint'}
onClick={() => act('Dry')}>
{data.drying ? 'Stop drying' : 'Dry'}
</Button>
)}>
{data.contents.length === 0 && (
<NoticeBox>
Unfortunately, this {data.name} is empty.
</NoticeBox>
) || (
<Table>
<Table.Row header>
<Table.Cell>
Item
</Table.Cell>
<Table.Cell collapsing />
<Table.Cell collapsing textAlign="center">
{data.verb ? data.verb : 'Dispense'}
</Table.Cell>
</Table.Row>
{map((value, key) => (
<Table.Row key={key}>
<Table.Cell>
{value.name}
</Table.Cell>
<Table.Cell collapsing textAlign="right">
{value.amount}
</Table.Cell>
<Table.Cell collapsing>
<Button
content="One"
disabled={value.amount < 1}
onClick={() => act('Release', {
name: value.name,
amount: 1,
})} />
<Button
content="Many"
disabled={value.amount <= 1}
onClick={() => act('Release', {
name: value.name,
})} />
</Table.Cell>
</Table.Row>
))(data.contents)}
</Table>
)}
</Section>
</Window.Content>
</Window>
);
};
| 32.716418 | 66 | 0.395529 |
b835e6abaa28b587b1622281b83dc8c97b9ea8e9 | 731 | js | JavaScript | bin/ccxt-exchange.js | newtonxchange/ExchangeTradeDemo | d506be9e9e9fa5d40fc12276af888be0ea4972d6 | [
"MIT"
] | 1 | 2019-10-17T10:09:15.000Z | 2019-10-17T10:09:15.000Z | bin/ccxt-exchange.js | newtonxchange/ExchangeTradeDemo | d506be9e9e9fa5d40fc12276af888be0ea4972d6 | [
"MIT"
] | null | null | null | bin/ccxt-exchange.js | newtonxchange/ExchangeTradeDemo | d506be9e9e9fa5d40fc12276af888be0ea4972d6 | [
"MIT"
] | 1 | 2019-04-26T03:44:07.000Z | 2019-04-26T03:44:07.000Z | let ccxt = require('ccxt');
let newtonxchange = require('../bin/newtonxchange');
const { Agent } = require('https')
exports.getExchange = function(exchangeId, config) {
if (exchangeId === "newton") {
return new newtonxchange(config);
}
const verbose = config.verbose || false;
const debug = config.debug || false;
let enableRateLimit = config.enableRateLimit || true;
const agent = new Agent ({
ecdhCurve: 'auto',
});
try {
return new (ccxt)[exchangeId]({
agent,
verbose,
enableRateLimit,
debug,
timeout: 20000,
});
} catch (e) {
throw new Error("Unsupported exchange: " + exchangeId);
}
}; | 28.115385 | 63 | 0.567715 |
b83614466d31210d8640c8f56a0094a4fa363bd7 | 6,214 | js | JavaScript | web/Client/js/main.js | Ouertani-Melek/gestionpfe | 09494f4d517cced3e9a21910bee0b31f16795fd5 | [
"MIT"
] | null | null | null | web/Client/js/main.js | Ouertani-Melek/gestionpfe | 09494f4d517cced3e9a21910bee0b31f16795fd5 | [
"MIT"
] | null | null | null | web/Client/js/main.js | Ouertani-Melek/gestionpfe | 09494f4d517cced3e9a21910bee0b31f16795fd5 | [
"MIT"
] | null | null | null | /**
*
* ---------------------------------------------------------------------------
*
* Template: Educare - Education Responsive Html 5 Template
* Author: Coderhut
* Author URI: http://hiknik.com/
* Version: 1.0
*
* ---------------------------------------------------------------------------
*
*/
(function ($) {
'use strict';
/* ======================================
Search area
====================================== */
$('#search-show').on('click', function () {
$('.search-area').addClass('search-area-visible');
});
$('.cros-btn').on('click', function () {
$('.search-area').removeClass('search-area-visible');
});
/* ======================================
Banner Slide
====================================== */
var mainBannerArea = $('.main-banner-area');
mainBannerArea.owlCarousel({
items: 1,
loop: true,
nav: true,
navText: ['', ''],
autoplay: true,
autoplayTimeout: 5000 // auto play time
});
var itemBg = $('.itembg');
$('.main-banner-area .single-banner').each(function () {
var itmeImg = $(this).find('.itembg img').attr('src');
$(this).css({
background: 'url(' + itmeImg + ')'
});
});
function slideThumb() {
$('.main-banner-area .owl-item').removeClass('next prev');
var currenSlide = $('.main-banner-area .owl-item.active');
currenSlide.next('.owl-item').addClass('next');
currenSlide.prev('.owl-item').addClass('prev');
var nextSlideImg = $('.owl-item.next').find('.itembg img').attr('src');
var prevSlideImg = $('.owl-item.prev').find('.itembg img').attr('src');
$('.main-banner-area .owl-nav .owl-prev').css({
background: 'url(' + prevSlideImg + ')'
});
$('.main-banner-area .owl-nav .owl-next').css({
background: 'url(' + nextSlideImg + ')'
});
}
slideThumb();
mainBannerArea.on('translated.owl.carousel', function () {
slideThumb();
});
mainBannerArea.on('translate.owl.carousel', function () {
$('.single-banner h1').removeClass('slideInDown animated').hide();
$('.single-banner p').removeClass('slideInRight animated').hide();
$('.single-banner .theme-btn').removeClass('slideInUp animated').hide();
});
mainBannerArea.on('translated.owl.carousel', function () {
$('.owl-item.active .single-banner h1').addClass('slideInDown animated').show();
$('.owl-item.active .single-banner p').addClass('slideInRight animated').show();
$('.owl-item.active .single-banner .theme-btn').addClass('slideInUp animated').show();
});
// Append carousel dots
$('.banner-dots').append($('.main-banner-area .owl-dots'));
/* ======================================
Sticky Menu
====================================== */
$(window).bind('scroll', function () {
if ($(window).scrollTop() > 50) {
$('.header-bottom-area').addClass('fixed');
} else {
$('.header-bottom-area').removeClass('fixed');
}
});
/* ======================================
Mobile Menu
======================================*/
var mobileMenu = $('.main-menu-area');
mobileMenu.slicknav({
prependTo: '.mobile-menu'
});
/* ======================================
Text banner Slide
====================================== */
$('.text-banner-slide').owlCarousel({
items: 1,
loop: true,
autoplay: true,
autoplayTimeout: 5000 // auto play time
});
/* ======================================
Testimonial Slide
====================================== */
$('.all-testimonial').owlCarousel({
items: 1,
loop: true,
autoplay: true,
autoplayTimeout: 5000 // auto play time
});
/* ======================================
Tweets carousel
====================================== */
$('.twitter-caro').owlCarousel({
items: 1,
loop: true,
autoplay: true,
autoplayTimeout: 5000 // auto play time
});
/* ======================================
About us hovver effect
====================================== */
$('.single-content').directionalHover();
/* ======================================
Popup video
====================================== */
$('.video-btn').YouTubePopUp({
autoplay: 1
});
/* ======================================
Event count
====================================== */
$('.counter').counterUp({
delay: 10,
time: 1000
});
/* ======================================
Course imgage slide
====================================== */
$('.course-img-slide').owlCarousel({
items: 1,
loop: true,
autoplay: true,
autoplayTimeout: 5000, // auto play time
nav: true,
navText: ['<i class="fa fa-chevron-left" aria-hidden="true"></i>', '<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
dots: false
});
/* ======================================
Scroll Up
====================================== */
$.scrollUp({
scrollName: 'scrollUp', // Element ID
topDistance: '300', // Distance from top before showing element (px)
topSpeed: 300, // Speed back to top (ms)
animation: 'slide', // Fade, slide, none
animationInSpeed: 500, // Animation in speed (ms)
animationOutSpeed: 500, // Animation out speed (ms)
scrollText: '<i class="fa fa-arrow-up" aria-hidden="true"></i>', // Text for element
activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF'
});
/* ======================================
Parallax effect
====================================== */
$('.jarallax').jarallax({
speed: 0.5
});
$(window).on('load', function () {
/* ======================================
Preloader
====================================== */
$('.thme-preloader').fadeOut('500');
});
}(jQuery)); | 29.875 | 133 | 0.424364 |
b836b317540cc615cdce54a72bb832f12ffbbb78 | 636 | js | JavaScript | step4-db/module/index.js | webkong/koa-learn | 47aac649ae338b3b1a8282cf0862d03ffc530b9c | [
"Apache-2.0"
] | null | null | null | step4-db/module/index.js | webkong/koa-learn | 47aac649ae338b3b1a8282cf0862d03ffc530b9c | [
"Apache-2.0"
] | null | null | null | step4-db/module/index.js | webkong/koa-learn | 47aac649ae338b3b1a8282cf0862d03ffc530b9c | [
"Apache-2.0"
] | null | null | null | const User = require('./User');
const Post = require('./Post');
const Comments = require('./Comment');
User.OwnPost = User.hasMany(Post, {foreignKey: 'ownerId', constraints: false})
User.PublishComment = User.hasMany(Comments, {foreignKey: 'commentId', constraints: false})
Post.Creator = Post.belongsTo(User, { foreignKey: 'creatorId', as: 'creator' })
Post.Comments = Post.hasMany(Comments, { foreignKey: 'commentId', as: 'comment' })
Comments.Creator = Comments.belongsTo(User, { foreignKey: 'creatorId', as: 'creator' })
Post.sync({
force: true
});
User.sync({
force: true
});
module.exports = {
User, Post , Comments
} | 26.5 | 91 | 0.691824 |
b8382938ec41932e20f43584678906c9e31bef48 | 10,881 | js | JavaScript | js/build/production.js | LarsWirnhier/g3 | ca979cbbc5dbd84485978cb212419fc83763f1ac | [
"WTFPL",
"MIT"
] | null | null | null | js/build/production.js | LarsWirnhier/g3 | ca979cbbc5dbd84485978cb212419fc83763f1ac | [
"WTFPL",
"MIT"
] | null | null | null | js/build/production.js | LarsWirnhier/g3 | ca979cbbc5dbd84485978cb212419fc83763f1ac | [
"WTFPL",
"MIT"
] | null | null | null | /*global jQuery */
/*jshint browser:true */
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/
;(function( $ ){
'use strict';
$.fn.fitVids = function( options ) {
var settings = {
customSelector: null,
ignore: null
};
if(!document.getElementById('fit-vids-style')) {
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
var head = document.head || document.getElementsByTagName('head')[0];
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
var div = document.createElement("div");
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
head.appendChild(div.childNodes[1]);
}
if ( options ) {
$.extend( settings, options );
}
return this.each(function(){
var selectors = [
'iframe[src*="player.vimeo.com"]',
'iframe[src*="youtube.com"]',
'iframe[src*="youtube-nocookie.com"]',
'iframe[src*="kickstarter.com"][src*="video.html"]',
'object',
'embed'
];
if (settings.customSelector) {
selectors.push(settings.customSelector);
}
var ignoreList = '.fitvidsignore';
if(settings.ignore) {
ignoreList = ignoreList + ', ' + settings.ignore;
}
var $allVideos = $(this).find(selectors.join(','));
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
$allVideos.each(function(){
var $this = $(this);
if($this.parents(ignoreList).length > 0) {
return; // Disable FitVids on this video.
}
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
{
$this.attr('height', 9);
$this.attr('width', 16);
}
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
aspectRatio = height / width;
if(!$this.attr('id')){
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
$this.attr('id', videoID);
}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
$this.removeAttr('height').removeAttr('width');
});
});
};
// Works with either jQuery or Zepto
})( window.jQuery || window.Zepto );
jQuery(document).ready(function($){
// add fitvids to all vids in posts/pages
$('.post').fitVids({
customSelector: 'iframe[src*="dailymotion.com"], iframe[src*="slideshare.net"], iframe[src*="animoto.com"], iframe[src*="blip.tv"], iframe[src*="funnyordie.com"], iframe[src*="hulu.com"], iframe[src*="ted.com"], iframe[src*="wordpress.tv"]'
});
/*
* Open the search bar in site-header on click.
* Selector added as a parameter so that it works when search bar
* is added via ajax in the Customizer
*/
$('body').on('click', '#search-icon', openSearchBar);
function openSearchBar(){
// get the social icons
var socialIcons = $('#site-header').find('.social-media-icons');
// if search bar already open
if( $(this).hasClass('open') ) {
// remove styling class
$(this).removeClass('open');
// remove styling class
if( socialIcons.hasClass('fade') ) {
socialIcons.removeClass('fade');
}
// make search input inaccessible to keyboards
$('#site-header').find('.search-field').attr('tabindex', -1);
} else {
// add styling class
$(this).addClass('open');
// if search input is still 100%, add styling class
if( $(window).width() < 600 ) {
socialIcons.addClass('fade');
}
// make search input keyboard accessible
$('#site-header').find('.search-field').attr('tabindex', 0);
// handle mobile width search bar sizing
if( $(window).width() < 600 ) {
// distance to other side (35px is width of icon space)
var leftDistance = $(window).width() * 0.9375 - 35;
$('#site-header').find('.search-form').css('left', -leftDistance + 'px')
}
}
}
// display the primary menu at mobile widths
$('#toggle-navigation').on('click', openPrimaryMenu);
function openPrimaryMenu() {
// get height of the menu
var menuHeight = calculateMenuHeight();
// if menu open
if( $(this).hasClass('open') ) {
// remove styling class
$(this).removeClass('open');
// close all ULs by removing increased max-height
$('#menu-primary, #menu-primary-items ul, .menu-unset ul').removeAttr('style');
// close all ULs and require 2 clicks again when reopened
$('.menu-item-has-children').each(function(){
if( $(this).hasClass('open') ) {
$(this).removeClass('open');
$(this).addClass('closed');
}
});
// change screen reader text
$(this).children('span').text(objectL10n.openMenu);
// change aria text
$(this).attr('aria-expanded', 'false');
} else {
// add styling class to reveal primary menu
$(this).addClass('open');
// open to show whole menu plus 48px of padding for style
$('#menu-primary').css('max-height', menuHeight + 48);
// change screen reader text
$(this).children('span').text(objectL10n.closeMenu);
// change aria text
$(this).attr('aria-expanded', 'true');
}
}
// get height of primary menu
function calculateMenuHeight() {
if( $('#menu-primary-items').length ) {
var menuHeight = $('#menu-primary-items').height();
} else {
var menuHeight = $('.menu-unset').height();
}
return menuHeight;
}
// enforce double-click for parent menu items when a touch event is registered
$(window).on('touchstart', enableTouchDropdown );
// require a second click to visit parent navigation items
function enableTouchDropdown(){
// Remove event listener once fired
$(window).off('touchstart', enableTouchDropdown);
// get all the parent menu items
var menuParents = $('.menu-item-has-children, .page_item_has_children');
// add a 'closed' class to each and add an event listener to them
menuParents.addClass('closed');
menuParents.on('click', openDropdown);
}
// open the dropdown without visiting parent link on first click
function openDropdown(e){
// if the menu item is not showing children
if ($(this).hasClass('closed')) {
// prevent link from being visited
e.preventDefault();
// add an open class
$(this).addClass('open');
// remove 'closed' class to enable link
$(this).removeClass('closed');
// get the submenu
var submenu = $(this).children('ul');
// set variable
var submenuHeight = 0;
// get height of all menu items in submenu combined
submenu.children('li').each(function () {
submenuHeight = submenuHeight + $(this).height();
});
// set ul max-height to the height of all it's children li
submenu.css('max-height', submenuHeight);
var listItem = $(this);
// get the containing ul if it exists
var parentList = listItem.parent('.sub-menu, .children');
// get the height
var parentListHeight = parentList.height();
// expand the height of the parent ul so that it's child can show
parentList.css('max-height', parseInt(parentListHeight + submenuHeight));
// only open the primary menu if clicked menu item is in primary menu
if( $(this).parents().hasClass('menu-primary-items') || $(this).parents().hasClass('menu-unset') ) {
// just needs long enough for the 0.15s animation fo play out
setTimeout(function () {
// adjust containing .menu-primary to fit newly expanded list
var menuHeight = calculateMenuHeight();
// adjust to the height
$('#menu-primary').css('max-height', menuHeight + 48);
}, 200)
}
}
}
/* allow keyboard access/visibility for dropdown menu items */
/*
$('.menu-item a, .page_item a').focus(function(){
$(this).parents('ul').addClass('focused');
});
$('.menu-item a, .page_item a').focusout(function(){
$(this).parents('ul').removeClass('focused');
});
*/
$('.menu-item a, .page_item a').click(function(){
$(this).parents('ul').addClass('focused');
});
/*
$('.menu-item a, .page_item a').focusout(function(){
$(this).parents('ul').removeClass('focused');
});
*/
});
/* fix for skip-to-content link bug in Chrome & IE9 */
window.addEventListener("hashchange", function(event) {
var element = document.getElementById(location.hash.substring(1));
if (element) {
if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) {
element.tabIndex = -1;
}
element.focus();
}
}, false); | 35.442997 | 249 | 0.542965 |
b838fd94187a0506e4951b1baaa71658f792a160 | 691 | js | JavaScript | .eslintrc.js | whythawk/nuxt-for-fastapi | bdd7a72d09253eeae40b255cf6025dc264dbc87e | [
"MIT"
] | 26 | 2021-04-06T11:47:44.000Z | 2022-01-27T08:05:41.000Z | .eslintrc.js | whythawk/nuxt-for-fastapi | bdd7a72d09253eeae40b255cf6025dc264dbc87e | [
"MIT"
] | null | null | null | .eslintrc.js | whythawk/nuxt-for-fastapi | bdd7a72d09253eeae40b255cf6025dc264dbc87e | [
"MIT"
] | 5 | 2021-05-02T15:57:16.000Z | 2021-08-16T13:59:26.000Z | module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
"@nuxtjs/eslint-config-typescript",
"plugin:prettier/recommended",
"plugin:nuxt/recommended",
],
plugins: [],
// add your custom rules here
// https://allurcode.com/custom-linting-rules-in-nuxtjs-and-eslint/
// https://stackoverflow.com/questions/53516594/why-do-i-keep-getting-delete-cr-prettier-prettier
rules: {
"no-console": process.env.VUE_APP_ENV === "production" ? "error" : "off",
"no-debugger": process.env.VUE_APP_ENV === "production" ? "error" : "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
},
}
| 25.592593 | 99 | 0.607815 |
b83befb939edc4ace0eb6c4936f62a792a8e6852 | 1,051 | js | JavaScript | routes/cache.js | ceresimaging/image-tiler | b684f8f4a14a55e9e0fbbd44c799bec37e731b3e | [
"MIT"
] | 3 | 2019-05-20T20:11:01.000Z | 2020-04-07T12:27:44.000Z | routes/cache.js | ceresimaging/image-tiler | b684f8f4a14a55e9e0fbbd44c799bec37e731b3e | [
"MIT"
] | 28 | 2019-07-23T19:25:03.000Z | 2022-03-11T22:06:58.000Z | routes/cache.js | ceresimaging/image-tiler | b684f8f4a14a55e9e0fbbd44c799bec37e731b3e | [
"MIT"
] | 3 | 2020-04-07T12:27:46.000Z | 2020-07-30T21:02:51.000Z | import express from "express";
import {
validateAge,
validateImagery,
validateCustom,
validateBucket,
validateWait,
validatePath,
validateKey,
} from "../middlewares/validators";
import { flush, removeTiff, removeShape, cacheResponse, invalidate } from "../middlewares/cache";
import { setDefaultBucket, respond, noCache } from "../middlewares/tools";
const router = express.Router();
router
.get("/", validateKey, validateAge, flush, noCache, cacheResponse, respond)
.get(
"/imagery/:imagery",
validateBucket,
validateImagery,
validateWait,
removeTiff,
invalidate,
cacheResponse,
noCache,
respond
)
.get(
"/custom/:custom",
setDefaultBucket(process.env.CUSTOM_LAYERS_REGION, process.env.CUSTOM_LAYERS_BUCKET),
validateBucket,
validateCustom,
validateWait,
removeShape,
invalidate,
cacheResponse,
noCache,
respond
)
.get("/invalidate", validateKey, validatePath, validateWait, invalidate, cacheResponse, noCache, respond);
export default router;
| 23.886364 | 108 | 0.713606 |
b83d97b42c87977a2c9d1c94851dc3b0f888f551 | 2,576 | js | JavaScript | client/src/components/Chart/Chart.js | kurtp23/language-app | 7a422c18bf1fff52458b6d9c82c43cfd427f2dfa | [
"MIT",
"Unlicense"
] | 3 | 2021-04-07T03:50:11.000Z | 2021-04-11T21:16:34.000Z | client/src/components/Chart/Chart.js | kurtp23/language-app | 7a422c18bf1fff52458b6d9c82c43cfd427f2dfa | [
"MIT",
"Unlicense"
] | 1 | 2021-04-24T19:51:17.000Z | 2021-04-24T19:51:17.000Z | client/src/components/Chart/Chart.js | kurtp23/language-app | 7a422c18bf1fff52458b6d9c82c43cfd427f2dfa | [
"MIT",
"Unlicense"
] | 1 | 2021-05-24T19:37:17.000Z | 2021-05-24T19:37:17.000Z | import React, { useEffect, useState } from 'react';
import API from '../../utils/userAPI.js';
import { Image } from 'semantic-ui-react';
const Chart = (props) => {
const [flashCard, setFlashCard] = useState(0);
const [challenge, setChallenge] = useState(0);
const [memoryGame, setMemoryGame] = useState(0);
const [challengePercent, setChallengePercent] = useState(0);
const [totalFlashCards, setTotalFlashCards] = useState(0);
const [totalMemoryGames, setTotalMemoryGames] = useState(0);
useEffect(() => {
if (props.userState.userId) {
API.getUser(props.userState.userId).then((data) => {
let challenge = 0;
let flash = 0;
let memory = 0;
let challengeData = [];
let flaschardCount = 0;
let memoryGameCount = 0;
data.data[0].stats.forEach((stat) => {
if (stat.challengeVal) {
challenge++;
challengeData.push(stat.challengeVal);
}
if (stat.flashcardVal) {
flash++;
flaschardCount = flaschardCount + stat.flashcardVal;
}
if (stat.memoryVal) {
memory++;
memoryGameCount = memoryGameCount + stat.memoryVal;
}
});
setChallenge(challenge);
setFlashCard(flash);
setMemoryGame(memory);
if (challengeData.length > 0) {
let sumVal = 0;
challengeData.forEach((val) => {
sumVal = sumVal + val;
});
setChallengePercent(sumVal / challengeData.length);
}
setTotalFlashCards(flaschardCount);
setTotalMemoryGames(memoryGameCount);
});
}
});
const value = flashCard;
const value2 = challenge;
const value3 = memoryGame;
const chartPercents = `&chd=t%3A${value}%2C100%7C${value2}%2C100%7C${value3}%2C40`;
const chartColor = 'chco=FF8033%7CFFB479%2C52cbff%7Ca6e4ff%2Cfc4128%7Cff997d';
const statsChart = `https://image-charts.com/chart?${chartColor}${chartPercents}&chl=Flashcard%7C%7CChallenge%7C%7CGame%7C%7C&chli=Stats&chs=700x300&cht=pd`;
return (
<>
<div className="ui raised very padded text container segment">
<h4 className="ui orange header" textAlign="center">
{' '}
</h4>
<Image src={statsChart} fluid />
<ul>
<li>Average Challenge Score: {challengePercent.toFixed(1)}%</li>
<li>Flashcards Viewed: {totalFlashCards}</li>
<li>Times Played Memory Game: {totalMemoryGames}</li>
</ul>
</div>
</>
);
};
export default Chart;
| 31.802469 | 159 | 0.600155 |
b83dc1dcf28c9d5b9327943269c94a34a055e436 | 832 | js | JavaScript | resources/assets/js/components/partials/Header.js | seetieskenny/seetishop | da9f9a788b4c3d80b0c2c5c5fa168cd26ddd48a8 | [
"MIT"
] | null | null | null | resources/assets/js/components/partials/Header.js | seetieskenny/seetishop | da9f9a788b4c3d80b0c2c5c5fa168cd26ddd48a8 | [
"MIT"
] | null | null | null | resources/assets/js/components/partials/Header.js | seetieskenny/seetishop | da9f9a788b4c3d80b0c2c5c5fa168cd26ddd48a8 | [
"MIT"
] | null | null | null | 'use strict';
import '../../../less/components/partials/header.less'
import { PropTypes } from 'react'
import { Link, IndexLink } from 'react-router'
import HeaderNav from './HeaderNav'
class Header extends React.Component {
render() {
const { location } = this.props;
return (
<header id="header" className="header">
<div className="header-inner">
<div className="container">
<div className="logo pull-left">
<IndexLink to="/">Seetishop</IndexLink>
</div>
<div className="header-nav">
<HeaderNav location={location} />
</div>
<div className="header-user-nav pull-right">
</div>
</div>
</div>
</header>
)
}
}
export default Header
| 21.894737 | 56 | 0.534856 |
b840736ed5446a6d41a7c8f0391d66bdb0fc334d | 314 | js | JavaScript | src/main/webapp/js/serviceB.js | setmy-info/servicejs | 954e6b2386a8d537040c3fb4166e82b55b760fc0 | [
"MIT"
] | null | null | null | src/main/webapp/js/serviceB.js | setmy-info/servicejs | 954e6b2386a8d537040c3fb4166e82b55b760fc0 | [
"MIT"
] | 11 | 2021-03-09T02:59:23.000Z | 2022-03-02T01:44:05.000Z | src/main/webapp/js/serviceB.js | Krabi/servicejs | 954e6b2386a8d537040c3fb4166e82b55b760fc0 | [
"MIT"
] | null | null | null | jsdi.service("serviceB", function () {
var serviceB = {
inject: ['serviceC']
};
serviceB.init = function () {
console.log("initalizing serviceB");
};
serviceB.getName = function () {
return "serviceB" + " " + this.serviceC.getName();
};
return serviceB;
});
| 18.470588 | 58 | 0.544586 |
b840fa4a2d6dc20c753551fdb8544599efe7cc60 | 158 | js | JavaScript | src/components/common/TextField/TextField.test.js | gionasdev/crypto-tracker-chart | 25158d94ed5acde2fdf172c5cbe2f340b0a7fa4a | [
"MIT"
] | null | null | null | src/components/common/TextField/TextField.test.js | gionasdev/crypto-tracker-chart | 25158d94ed5acde2fdf172c5cbe2f340b0a7fa4a | [
"MIT"
] | null | null | null | src/components/common/TextField/TextField.test.js | gionasdev/crypto-tracker-chart | 25158d94ed5acde2fdf172c5cbe2f340b0a7fa4a | [
"MIT"
] | null | null | null | import { render, screen } from '@testing-library/react';
import TextField from './TextField';
test('renders TextField', () => {
render(<TextField />);
});
| 22.571429 | 56 | 0.658228 |
b841958956c10f3b61bb309e0037e893e50b7fdf | 93 | js | JavaScript | tools/webpack/config/base/index.js | stormid/ui-patterns | 4762565df982b89a225574424b33278712b434cd | [
"MIT"
] | null | null | null | tools/webpack/config/base/index.js | stormid/ui-patterns | 4762565df982b89a225574424b33278712b434cd | [
"MIT"
] | 4 | 2021-12-21T10:22:06.000Z | 2022-02-25T10:13:43.000Z | tools/webpack/config/base/index.js | stormid/ui-patterns | 4762565df982b89a225574424b33278712b434cd | [
"MIT"
] | null | null | null | module.exports = {
main: require('./main'),
javascript: require('./javascript')
}; | 23.25 | 40 | 0.591398 |
b841ee423902b8aa48229daab9045beac64626c8 | 801 | js | JavaScript | items.js | loyaltouch/DungeonExploder | f4a697f5836b223cfa7fec8f239b83435303e624 | [
"MIT"
] | 2 | 2020-07-23T14:01:29.000Z | 2020-08-15T01:55:04.000Z | items.js | loyaltouch/DungeonExploder | f4a697f5836b223cfa7fec8f239b83435303e624 | [
"MIT"
] | null | null | null | items.js | loyaltouch/DungeonExploder | f4a697f5836b223cfa7fec8f239b83435303e624 | [
"MIT"
] | 1 | 2020-08-15T01:55:08.000Z | 2020-08-15T01:55:08.000Z | module.exports = {
"(なし)" : { type: 1, value: 0, prise: 0, count: 0 },
"銀貨" : { type: 0, value: 0, prise: 0, count:10 },
"ナイフ" : { type: 1, value: 1, prise:10, count: 1 },
"棍棒" : { type: 1, value: 2, prise: 2, count: 0 },
"銅の剣" : { type: 1, value: 3, prise:20, count: 0 },
"銀の剣" : { type: 1, value: 4, prise:40, count: 0 },
"金の剣" : { type: 1, value: 5, prise:60, count: 0 },
"分銅" : { type: 1, value: 4, prise: 6, count: 0 },
"村雨の刀": { type: 1, value: 6, prise: 0, count: 0 },
"飛鳥の剣": { type: 1, value: 6, prise: 0, count: 0 },
"りんご" : { type: 2, value: 0, prise: 5, count: 0 },
"焼肉" : { type: 2, value: 0, prise: 5, count: 0 },
"鍼" : { type: 0, value: 0, prise: 5, count: 0 },
"福袋" : { type: 0, value: 0, prise: 5, count: 0 },
"ver" : "1.0"
} | 44.5 | 55 | 0.475655 |
b84307282bea10e194125f05433c5b5ca711ed3c | 13,531 | js | JavaScript | public/assets/LexingTheory/config.js | akashlevy/Vizpiler | a958815c937eb0f13093a5447a0393611c027b26 | [
"MIT"
] | 2 | 2017-05-09T06:01:27.000Z | 2020-08-06T03:24:13.000Z | public/assets/LexingTheory/config.js | akashlevy/Vizpiler | a958815c937eb0f13093a5447a0393611c027b26 | [
"MIT"
] | 8 | 2017-04-29T02:52:38.000Z | 2017-05-16T09:57:53.000Z | public/assets/LexingTheory/config.js | akashlevy/Vizpiler | a958815c937eb0f13093a5447a0393611c027b26 | [
"MIT"
] | null | null | null | IDRViewer.config = {"pagecount":30,"title":"Modern Compiler Implementation in C","author":"Andrew W. Appel","fileName":"LexingTheory.pdf","bounds":[[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[935,1210],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066],[818,1066]],"bookmarks":[{"title":"Cover ","page":-1,"zoom":""},{"title":"Half Title ","page":2,"zoom":"XYZ 0 1066 null"},{"title":"Title Page ","page":4,"zoom":"XYZ 0 1066 null"},{"title":"Copyright ","page":5,"zoom":"XYZ 0 1066 null"},{"title":"Content ","page":6,"zoom":"XYZ 0 1066 null"},{"title":"Preface ","page":10,"zoom":"XYZ 0 1066 null"},{"title":"Part I Fundamentals of Compilation","page":12,"zoom":"XYZ 0 1066 null","children":[{"title":"1 Introduction ","page":14,"zoom":"XYZ 0 1066 null","children":[{"title":"1.1 Modules and interfaces ","page":15,"zoom":"XYZ 0 1066 null"},{"title":"1.2 Tools and software ","page":16,"zoom":"XYZ 0 1066 null"},{"title":"1.3 Data structures for tree languages ","page":18,"zoom":"XYZ 0 1066 null"}]},{"title":"2 Lexical Analysis ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"2.1 Lexical tokens ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"2.2 Regular expressions ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"2.3 Finite automata ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"2.4 Nondeterministic finite automata ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"2.5 Lex: a lexical analyzer generator ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"3 Parsing ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"3.1 Context-free grammars ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"3.2 Predictive parsing ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"3.3 LR parsing ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"3.4 Using parser generators ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"3.5 Error recovery ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"4 Abstract Syntax ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"4.1 Semantic actions ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"4.2 Abstract parse trees","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"5 Semantic Analysis ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"5.1 Symbol Tables ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"5.2 Bindings for the Tiger compiler ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"5.3 Type-checking expressions ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"5.4 Type-checking declarations","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"6 Activation Records ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"6.1 Stack frames ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"6.2 Frames in the Tiger compiler ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"7 Translation to Intermediate Code","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"7.1 Intermediate representation trees ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"7.2 Translation into trees ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"7.3 Declarations ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"8 Basic Blocks and Traces ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"8.1 Canonical trees ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"8.2 Taming conditional branches ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"9 Instruction Selection ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"9.1 Algorithms for instruction selection ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"9.2 CISC machines ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"9.3 Instruction selection for the Tiger compiler ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"10 Liveness Analysis ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"10.1 Solution of dataflow equations ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"10.2 Liveness in the Tiger compiler ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"11 Register Allocation ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"11.1 Coloring by simplification ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"11.2 Coalescing ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"11.3 Precolored nodes ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"11.4 Graph coloring implementation ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"11.5 Register allocation for trees ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"12 Putting It All Together ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"Part II Advanced Topics","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"13 Garbage Collection ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"13.1 Mark-and-sweep collection ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.2 Reference counts ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.3 Copying collection ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.4 Generational collection ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.5 Incremental collection ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.6 Baker\u2019s algorithm","page":1,"zoom":"XYZ 0 1066 null"},{"title":"13.7 Interface to the compiler ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"14 Object-Oriented Languages ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"14.1 Classes ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.2 Single inheritance of data fields ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.3 Multiple inheritance ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.4 Testing class membership ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.5 Private fields and methods ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.6 Classless languages ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"14.7 Optimizing object-oriented programs ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"15 Functional Programming Languages ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"15.1 A simple functional language ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.2 Closures ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.3 Immutable variables","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.4 Inline expansion ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.5 Closure conversion ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.6 Efficient tail recursion ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"15.7 Lazy evaluation ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"16 Polymorphic Types ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"16.1 Parametric polymorphism ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"16.2 Type inference ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"16.3 Representation of polymorphic variables ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"16.4 Resolution of static overloading ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"17 Dataflow Analysis ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"17.1 Intermediate representation for flow analysis ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"17.2 Various dataflow analyses ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"17.3 Transformations using dataflow analysis ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"17.4 Speeding up dataflow analysis ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"17.5 Alias analysis","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"18 Loop Optimizations ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"18.1 Dominators ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"18.2 Loop-invariant computations ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"18.3 Induction variables ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"18.4 Array-bounds checks ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"18.5 Loop unrolling ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"19 Static Single-Assignment Form","page":1,"zoom":"XYZ 58 1138 null","children":[{"title":"19.1 Converting to SSA form ","page":1,"zoom":"XYZ 58 1138 null"},{"title":"19.2 Efficient computation of the dominator tree ","page":1,"zoom":"XYZ 58 1138 null"},{"title":"19.3 Optimization algorithms using SSA ","page":1,"zoom":"XYZ 58 1138 null"},{"title":"19.4 Arrays, pointers, and memory ","page":1,"zoom":"XYZ 58 1138 null"},{"title":"19.5 The control-dependence graph ","page":1,"zoom":"XYZ 58 1138 null"},{"title":"19.6 Converting back from SSA form ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"19.7 A functional intermediate form ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"20 Pipelining and Scheduling","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"20.1 Loop scheduling without resource bounds ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"20.2 Resource-bounded loop pipelining ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"20.3 Branch prediction ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"21 The Memory Hierarchy ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"21.1 Cache organization ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"21.2 Cache-block alignment ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"21.3 Prefetching ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"21.4 Loop interchange ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"21.5 Blocking ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"21.6 Garbage collection and the memory hierarchy ","page":1,"zoom":"XYZ 0 1066 null"}]}]},{"title":"Appendix: Tiger Language Reference Manual ","page":1,"zoom":"XYZ 0 1066 null","children":[{"title":"A.1 Lexical issues ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"A.2 Declarations ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"A.3 Variables and expressions ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"A.4 Standard library ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"A.5 Sample Tiger programs ","page":1,"zoom":"XYZ 0 1066 null"}]},{"title":"Bibliography ","page":1,"zoom":"XYZ 0 1066 null"},{"title":"Index ","page":1,"zoom":"XYZ 0 1066 null"}],"thumbnailType":"jpg","pageType":"html","pageLabels":[]}; | 13,531 | 13,531 | 0.481709 |
b8434abafbf524309382d788e653ae8f41dc0836 | 340 | js | JavaScript | sandbox/app10/app.js | Himanshu-Mishr/angular-apps | 5ee3e791b09209b82d1e533386c9662785b533a8 | [
"MIT"
] | null | null | null | sandbox/app10/app.js | Himanshu-Mishr/angular-apps | 5ee3e791b09209b82d1e533386c9662785b533a8 | [
"MIT"
] | null | null | null | sandbox/app10/app.js | Himanshu-Mishr/angular-apps | 5ee3e791b09209b82d1e533386c9662785b533a8 | [
"MIT"
] | null | null | null | /*
STEPS :
Create a property to bind to
Create a collection of files
Consume this event so we can assign the files to the collection
Create a method to post it all to the server
*/
angular.module( 'MyApp', [ 'ngMaterial' ])
.controller("MyController", ['$scope', '$http', MyController]);
function MyController($scope, $http) {
} | 21.25 | 65 | 0.702941 |
b8434b4d0df07dbe7e1f3dfa8fc0e41967f73a9a | 2,153 | js | JavaScript | packages/q3-admin/__fixtures__/views/Shows/index.js | 3merge/q3-client | 5f3e85799fea3d2d415916c122bd3140dc48f5a5 | [
"MIT"
] | 1 | 2020-10-15T18:32:52.000Z | 2020-10-15T18:32:52.000Z | packages/q3-admin/__fixtures__/views/Shows/index.js | 3merge/q3-client | 5f3e85799fea3d2d415916c122bd3140dc48f5a5 | [
"MIT"
] | 106 | 2019-12-05T20:43:27.000Z | 2022-03-18T14:29:33.000Z | packages/q3-admin/__fixtures__/views/Shows/index.js | 3merge/q3-client | 5f3e85799fea3d2d415916c122bd3140dc48f5a5 | [
"MIT"
] | null | null | null | import React from 'react';
import AbstractCollectionBuilder from 'q3-admin/lib/builders';
import CreditCard from '@material-ui/icons/CreditCard';
import { green } from '@material-ui/core/colors';
import { IconButton } from '@material-ui/core';
import Group from '@material-ui/icons/Group';
import Add from './Add';
import Filters from './Filters';
import General from './General';
import useIo from '../../../src/hooks/useIo';
export default new AbstractCollectionBuilder({
resourceName: 'shows',
resourceNameSingular: 'show',
// parent: 'entertainment',
segments: {
'Date Range': '?demo<=2021-08-01&demo>=2021-01-01',
'Testing 1':
'?demo<=2021-08-01&demo>=2021-01-01&search=Test',
'Testing 2':
'?demo<=2021-08-01&demo>=2021-01-01&search=Testing',
'Testing 3':
'?demo<=2021-08-01&demo>=2021-01-01&search=Testing3',
},
lookup: ['name'],
})
.genUserOptions('Developer', {
all: true,
})
.genResolver(
({ id, name, description, createdAt, updatedAt }) => ({
id,
name,
description,
createdAt: {
base: createdAt,
toDate: true,
},
updatedAt: {
base: updatedAt,
toDate: true,
},
}),
)
.genHeader({
titleProp: 'name',
})
.genNew(Add)
.genFilter(Filters)
.genViews({
General,
})
.genList({
customRowActionsAnchor: 'start',
defaultColumns: ['createdAt', 'updatedAt'],
io: {
exports: ['orders'],
imports: [],
// eslint-disable-next-line
renderer: () => <p>Look at me!</p>,
},
renderCustomRowActions: () => (
<IconButton>
<Group />
</IconButton>
),
})
.genListSettings({
defaultSortPreference: 'name',
})
.genDetail({
picture: true,
files: true,
notes: true,
audit: true,
registerOptions: () => {
return [
{
id: 'id123',
icon: CreditCard,
href: 'https:google.com',
title: 'test',
description: 'test',
color: green[900],
},
];
},
})
.genDetailSettings({
// disableUnsavedChanges: true,
})
.build();
| 22.904255 | 62 | 0.568045 |
b843a45261d1bbacaad545735219a31df5ebc038 | 407 | js | JavaScript | src/store/reducers/applications.js | E-Cell-IITP/Startup-Portal-frontend | d09fde209b75223f3e24335b2a89e81a945325f7 | [
"MIT"
] | 1 | 2021-12-15T01:48:10.000Z | 2021-12-15T01:48:10.000Z | src/store/reducers/applications.js | E-Cell-IITP/Startup-Portal-frontend | d09fde209b75223f3e24335b2a89e81a945325f7 | [
"MIT"
] | null | null | null | src/store/reducers/applications.js | E-Cell-IITP/Startup-Portal-frontend | d09fde209b75223f3e24335b2a89e81a945325f7 | [
"MIT"
] | null | null | null | export const getApplicationsSuccess = (state, action) => {
return {
...state,
isPageLoading: false,
applicationsList: action.applicationsList,
};
};
export const getApplicationsFailure = (state, action) => {
let newState = {
...state,
isPageLoading: false,
};
if ("isAuthenticated" in action) {
newState.isAuthenticated = action.isAuthenticated;
}
return newState;
};
| 21.421053 | 58 | 0.668305 |
b8450e110e856d327d4a9679d6aad2ce6674b112 | 582 | js | JavaScript | e2e/test/pageobjects/config.js | emotz/passwordkeeper | 5187cedf67833daa529a0c991187f9da8756e4d7 | [
"MIT"
] | null | null | null | e2e/test/pageobjects/config.js | emotz/passwordkeeper | 5187cedf67833daa529a0c991187f9da8756e4d7 | [
"MIT"
] | 111 | 2017-03-28T13:57:53.000Z | 2022-03-02T09:55:04.000Z | e2e/test/pageobjects/config.js | emotz/passwordkeeper | 5187cedf67833daa529a0c991187f9da8756e4d7 | [
"MIT"
] | null | null | null | const Page = require('./page.js');
class ConfigPage extends Page {
get activeMenuItem() { return browser.element('.pk-app-nav ul.navbar-nav li.active'); }
waitForEnglishLocale() {
this.activeMenuItem.$(`a=Config`).waitForVisible();
}
waitForRussianLocale() {
this.activeMenuItem.$(`a=Настройки`).waitForVisible();
}
selectLocale(locale) {
const opt = browser.element(`select.pk-config-locale-input option[value="${locale}"]`);
opt.waitForVisible();
opt.click();
}
open() {
super.open('/config');
}
}
module.exports = new ConfigPage();
| 23.28 | 91 | 0.661512 |
b8453c27f01b31a14810ba472a770a8751192b0c | 135 | js | JavaScript | src/routers/index.js | MostlyBen/upsign | 918743162df1bbfc0949828296e31ea8166b8c59 | [
"MIT"
] | 2 | 2021-08-28T20:46:46.000Z | 2022-03-23T18:19:58.000Z | src/routers/index.js | MostlyBen/upsign | 918743162df1bbfc0949828296e31ea8166b8c59 | [
"MIT"
] | null | null | null | src/routers/index.js | MostlyBen/upsign | 918743162df1bbfc0949828296e31ea8166b8c59 | [
"MIT"
] | null | null | null | import TeacherRouter from "./TeacherRouter";
import StudentRouter from "./StudentRouter";
export {
TeacherRouter,
StudentRouter,
} | 19.285714 | 44 | 0.77037 |
b845db52da59d32872567f03fb571f2a889873e9 | 807 | js | JavaScript | src/lib/csv/src/decode.js | soft-eng-practicum/STaRS-AdminPanel | 6b0862a593a34d645b6328bb6b01d52052bd0931 | [
"CC-BY-4.0"
] | 2 | 2019-01-10T14:08:31.000Z | 2019-10-21T18:22:27.000Z | src/lib/csv/src/decode.js | soft-eng-practicum/STaRS-AdminPanel | 6b0862a593a34d645b6328bb6b01d52052bd0931 | [
"CC-BY-4.0"
] | null | null | null | src/lib/csv/src/decode.js | soft-eng-practicum/STaRS-AdminPanel | 6b0862a593a34d645b6328bb6b01d52052bd0931 | [
"CC-BY-4.0"
] | 3 | 2019-08-25T19:26:36.000Z | 2020-10-09T20:27:14.000Z | /**
* Converts CSV to an Array of Objects
*
* @method decode
* @param {String} arg CSV string
* @param {String} delimiter [Optional] Delimiter to split columns on, default is ","
* @return {Array} Array of Objects
*/
function decode ( arg, delimiter ) {
delimiter = delimiter || ",";
var regex = new RegExp( delimiter + "(?=(?:[^\"]|\"(?:[^\"])[^\"]*\")*$)" ),
rows = trim( arg ).split( "\n" ),
keys = rows.shift().split( delimiter ),
result = [],
nth = rows.length,
x = keys.length,
i = -1,
n, obj, row;
while ( ++i < nth ) {
obj = {};
row = rows[i].split( regex );
n = -1;
while ( ++n < x ) {
obj[keys[n]] = coerce( ( row[n] || "" ).replace( /^"|"$/g, "" ) );
}
result.push( obj );
}
return result;
}
| 23.735294 | 86 | 0.488228 |
b845fe89dda109dc319af97234d0be628a3b81e8 | 798 | js | JavaScript | doc/API Reference/classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.js | smarxpan/tuya-home-android-sdk | 492223a9e614a269cd5a26838df382f2fd576337 | [
"MIT"
] | 37 | 2020-12-14T02:49:14.000Z | 2022-03-25T02:36:56.000Z | doc/API Reference/classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.js | smarxpan/tuya-home-android-sdk | 492223a9e614a269cd5a26838df382f2fd576337 | [
"MIT"
] | 8 | 2020-12-14T07:32:03.000Z | 2021-08-20T10:42:48.000Z | doc/API Reference/classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.js | smarxpan/tuya-home-android-sdk | 492223a9e614a269cd5a26838df382f2fd576337 | [
"MIT"
] | 37 | 2020-12-14T15:07:19.000Z | 2022-01-23T10:30:51.000Z | var classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean =
[
[ "getId", "classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.html#a7e200d699263039a0afa93111df50e12", null ],
[ "getName", "classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.html#a491e1dc492942abf3a936e4d12a795f0", null ],
[ "setId", "classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.html#a79ae1a7ef148173b9d9d325a75fe370f", null ],
[ "setName", "classcom_1_1tuya_1_1smart_1_1android_1_1device_1_1bean_1_1_multi_control_link_bean_1_1_parent_rules_bean.html#a390bd3ca13affddce40f0891da1d90c7", null ]
]; | 114 | 171 | 0.890977 |
b846b123e8d0ad33b7ac37cad4b5a865fd160d7e | 2,399 | js | JavaScript | src/ogv/style/ColorPaletteGenerator.js | atamunoz/ogv | bddab15223ab94dbfd332c2fb6c7ee4c72a70b9d | [
"MIT"
] | 8 | 2019-11-05T12:55:54.000Z | 2022-01-07T17:19:41.000Z | src/ogv/style/ColorPaletteGenerator.js | i62lotor/ogv | 2f722413d5542930a95cb9abfd8ef80981848728 | [
"MIT"
] | 17 | 2019-12-03T13:03:38.000Z | 2021-05-04T09:46:08.000Z | src/ogv/style/ColorPaletteGenerator.js | i62lotor/ogv | 2f722413d5542930a95cb9abfd8ef80981848728 | [
"MIT"
] | 5 | 2019-11-05T13:40:51.000Z | 2019-11-23T14:56:08.000Z | class ColorPaletteGenerator {
constructor () {
this.col1 = '00ff11';
this.col2 = '000000';
this.total = 5;
this.incFactor = 0;
this.alpha = 0.5;
this.colorPaletteIndex = -1;
}
setIncFactor (inc) {
this.incFactor = inc;
}
setAlpha (alpha) {
this.alpha = (alpha === undefined || alpha === null) ? 0.5 : alpha;
}
setColors (col1, col2, totalPalette, keepIndex) {
this.col1 = (col1 === undefined || col1 === null) ? this.col1 : '#' + col1;
this.col2 = (col2 === undefined || col2 === null) ? this.col2 : '#' + col2;
this.total = (totalPalette === undefined || totalPalette === null) ? this.total : totalPalette;
this.colors = this.lerpColors(this.col1, this.col2, this.total);
if (keepIndex === undefined) { this.colorPaletteIndex = -1; }
}
getNextColor () {
this.colorPaletteIndex = this.colorPaletteIndex + 1;
return this.colors[this.colorPaletteIndex];
}
getColorPalette () {
return this.colors;
}
setColorPalette (colors) {
this.colors = colors;
}
lerpColor (color1, color2, factor) {
var result = color1.slice();
for (var i = 0; i < 3; i++) {
result[i] = Math.round(result[i] + factor * (color2[i] - color1[i]));
}
result = this.rgbToHex(result[0], result[1], result[2]);
result = this.hexToRGB(result, this.alpha);
return result;
}
lerpColors (color1, color2, steps) {
color1 = this.hexToRGB(color1);
color2 = this.hexToRGB(color2);
var stepFactor = 1 / (steps - 1) + this.incFactor;
var interpolatedColorArray = [];
color1 = color1.match(/\d+/g).map(Number);
color2 = color2.match(/\d+/g).map(Number);
for (var i = 0; i < steps; i++) {
interpolatedColorArray.push(this.lerpColor(color1, color2, stepFactor * i));
}
return interpolatedColorArray;
}
hexToRGB (hex, alpha) {
var r = parseInt(hex.slice(1, 3), 16);
var g = parseInt(hex.slice(3, 5), 16);
var b = parseInt(hex.slice(5, 7), 16);
if (alpha) {
return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')';
} else {
return 'rgb(' + r + ', ' + g + ', ' + b + ')';
}
}
rgbToHex (r, g, b) {
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
}
}
export default new ColorPaletteGenerator();
| 27.574713 | 100 | 0.554398 |
b8473904e9a555d608cb89e59b6f8019e6a3e2da | 331 | js | JavaScript | node_modules/@iconify/icons-ic/outline-4k.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | null | null | null | node_modules/@iconify/icons-ic/outline-4k.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | null | null | null | node_modules/@iconify/icons-ic/outline-4k.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | 1 | 2021-09-28T19:15:17.000Z | 2021-09-28T19:15:17.000Z | var data = {
"body": "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zm-9.5-4H11v-1.49h1V12h-1V9H9.5v3H8V9H6.5v4.5h3zm8.7 0l-2-3l2-3h-1.7l-2 3l2 3zm-3.7-3V9H13v6h1.5z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data;
| 41.375 | 235 | 0.667674 |
b8473bf56d9c463aa89b19c2632f55c974ba2d9f | 2,228 | js | JavaScript | wx-mall/pages/shop/shop.js | yunzhuqing/jianhua | c6be56bcb1a5315b6c32b661952b527d9d52dcc2 | [
"Apache-2.0"
] | null | null | null | wx-mall/pages/shop/shop.js | yunzhuqing/jianhua | c6be56bcb1a5315b6c32b661952b527d9d52dcc2 | [
"Apache-2.0"
] | null | null | null | wx-mall/pages/shop/shop.js | yunzhuqing/jianhua | c6be56bcb1a5315b6c32b661952b527d9d52dcc2 | [
"Apache-2.0"
] | null | null | null | var tabs = [
{
name: "热销商品"
}
];
var util = require('../../utils/util.js');
var api = require('../../config/api.js');
// pages/shop/shop.js
Page({
/**
* 页面的初始数据
*/
data: {
tabs: tabs, //展示的数据
slideOffset: 0,//指示器每次移动的距离
activeIndex: 0,//当前展示的Tab项索引
sliderWidth: 96,//指示器的宽度,计算得到
contentHeight: 0,//页面除去头部Tabbar后,内容区的总高度,计算得到,
goodsArr:[],
shopInfo:{}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
wx.getSystemInfo({
success: function (res) {
that.setData({
//计算相关宽度
sliderWidth: res.windowWidth / that.data.tabs.length,
sliderOffset: res.windowWidth / that.data.tabs.length * that.data.activeIndex,
contentHeight: res.windowHeight
});
}
});
let shopId = options.id;
util.request(api.GoodsShop, { "shopId": shopId, "page": 1, "limit": 10, "sidx":"id", "order":"desc"}).then(function (res) {
if (res.code === 0) {
that.setData({
goodsArr: res.page.list
});
}
});
util.request(api.ShopInfo + '/' + shopId).then(function (res) {
if (res.code === 0) {
that.setData({
shopInfo: res.shop
});
}
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
bindChange: function (e) {
var current = e.detail.current;
this.setData({
activeIndex: current,
sliderOffset: this.data.sliderWidth * current
});
},
navTabClick: function (e) {
this.setData({
sliderOffset: e.currentTarget.offsetLeft,
activeIndex: e.currentTarget.id
});
},
itemClick: function(e) {
var goodsId = e.currentTarget.dataset.goodsid;
wx.navigateTo({
url: '../goods/goods?id=' + goodsId,
})
}
})
| 17.138462 | 127 | 0.532765 |
b84854d66317b868a408228a3bd3f0bea47cb19f | 1,511 | js | JavaScript | worker/fetch/index.js | uspython/jz_feeds_worker | f0024ea369b827df17d1ebab80c8bf5308b7ceb3 | [
"MIT"
] | null | null | null | worker/fetch/index.js | uspython/jz_feeds_worker | f0024ea369b827df17d1ebab80c8bf5308b7ceb3 | [
"MIT"
] | null | null | null | worker/fetch/index.js | uspython/jz_feeds_worker | f0024ea369b827df17d1ebab80c8bf5308b7ceb3 | [
"MIT"
] | null | null | null | const axios = require('axios');
const fetch = (method, url, data, params, headers) => {
if (!method) throw new Error('Method is a required field.');
if (!url) throw new Error('Path is a required field.');
const options = {
method: method.toUpperCase(),
url,
data: data || {},
params: params || {},
headers: {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.12(0x17000c30) NetType/WIFI Language/zh_CN',
'Accept-Encoding': 'gzip;q=1.0, compress;q=0.5',
'Content-Type': 'application/json',
'Accept-Language': 'en;q=1.0',
...headers,
},
};
/**
* {
// `data` is the response that was provided by the server
data: {},
// `status` is the HTTP status code from the server response
status: 200,
// `statusText` is the HTTP status message from the server response
statusText: 'OK',
// `headers` the HTTP headers that the server responded with
// All header names are lower cased and can be accessed using the bracket notation.
// Example: `response.headers['content-type']`
headers: {},
// `config` is the config that was provided to `axios` for the request
config: {},
// `request` is the request that generated this response
// It is the last ClientRequest instance in node.js (in redirects)
// and an XMLHttpRequest instance in the browser
request: {}
}
*/
return axios(options);
};
module.exports = fetch;
| 30.22 | 196 | 0.654533 |
b84b434a18b2d9da026a709f181ca9ade9854ba0 | 204 | js | JavaScript | src/modules/common/replaceChild.js | gschizas/fallenswordhelper | 15ad9412961f17e6a0f35aa96927e9388a143809 | [
"MIT"
] | 1 | 2015-03-22T12:51:42.000Z | 2015-03-22T12:51:42.000Z | src/modules/common/replaceChild.js | gschizas/fallenswordhelper | 15ad9412961f17e6a0f35aa96927e9388a143809 | [
"MIT"
] | 1 | 2022-03-22T08:49:20.000Z | 2022-03-22T08:49:20.000Z | src/modules/common/replaceChild.js | gschizas/fallenswordhelper | 15ad9412961f17e6a0f35aa96927e9388a143809 | [
"MIT"
] | 3 | 2015-03-20T07:16:43.000Z | 2015-09-16T04:35:01.000Z | export default function replaceChild(newChild, oldChild) {
if (newChild instanceof Node && oldChild instanceof Node) {
oldChild.parentNode.replaceChild(newChild, oldChild);
}
return oldChild;
}
| 29.142857 | 61 | 0.759804 |
b84cc3a661872cc2348bb893f6cbebee4bb2e1c1 | 10,172 | js | JavaScript | public/assets/build/admin/js/setting.js | dangngoctu/TotNghiep | f30a2015a92c8b3794b9cd6c2eac64c8d1dd8bf7 | [
"MIT"
] | null | null | null | public/assets/build/admin/js/setting.js | dangngoctu/TotNghiep | f30a2015a92c8b3794b9cd6c2eac64c8d1dd8bf7 | [
"MIT"
] | 4 | 2021-09-27T22:18:36.000Z | 2022-02-26T05:16:14.000Z | public/assets/build/admin/js/setting.js | dangngoctu/TotNghiep | f30a2015a92c8b3794b9cd6c2eac64c8d1dd8bf7 | [
"MIT"
] | null | null | null | var api_fileuploader_cover, api_fileuploader_background, api_fileuploader_logo;
$(function(){
'use strict';
UpdateSetting();
$(document).on('click', '#btnSetting', function (e) {
e.preventDefault();
$('#SettingForm').submit();
});
$("#SettingForm").on('submit', function(e){
e.preventDefault();
var form = $(this);
form.parsley().validate();
if (form.parsley().isValid()){
SettingFormSubmit()
}
});
if(typeof api_fileuploader_logo !== 'undefined') {
api_fileuploader_logo.reset();
api_fileuploader_logo.destroy();
}
fileuploader('input#logo');
// if(typeof api_fileuploader_cover !== 'undefined') {
// api_fileuploader_cover.reset();
// api_fileuploader_cover.destroy();
// }
// fileuploader('input#img_cover');
// if(typeof api_fileuploader_background !== 'undefined') {
// api_fileuploader_background.reset();
// api_fileuploader_background.destroy();
// }
// fileuploader('input#img_background');
$('#SettingForm').on('change input', function() {
$(this).find('button:button').prop('disabled', $(this).serialize() == $(this).data('serialized'));
}).find('button:button').prop('disabled', true);
});
var fileuploader = function (element) {
if($(element).length > 0) {
$(element).fileuploader({
limit: 1,
fileMaxSize: 3,
extensions: ['jpg', 'jpeg', 'png'],
changeInput: ' ',
theme: 'thumbnails',
enableApi: true,
addMore: true,
thumbnails: {
box: '<div class="fileuploader-items">' + '<ul class="fileuploader-items-list">' + '<li class="fileuploader-thumbnails-input"><div class="fileuploader-thumbnails-input-inner"><i>+</i></div></li>' + '</ul>' + '</div>',
item: '<li class="fileuploader-item file-has-popup">' + '<div class="fileuploader-item-inner">' + '<div class="type-holder">${extension}</div>' + '<div class="actions-holder">' + '<a class="fileuploader-action fileuploader-action-remove" title="${captions.remove}"><i></i></a>' + '</div>' + '<div class="thumbnail-holder">' + '${image}' + '<span class="fileuploader-action-popup"></span>' + '</div>' + '<div class="content-holder"><h5>${name}</h5></div>' + '<div class="progress-holder">${progressBar}</div>' + '</div>' + '</li>',
item2: '<li class="fileuploader-item file-has-popup">' + '<div class="fileuploader-item-inner">' + '<div class="type-holder">${extension}</div>' + '<div class="actions-holder">' + '<a href="${file}" class="fileuploader-action fileuploader-action-download" title="${captions.download}" download><i></i></a>' + '<a class="fileuploader-action fileuploader-action-remove" title="${captions.remove}"><i></i></a>' + '</div>' + '<div class="thumbnail-holder">' + '${image}' + '<span class="fileuploader-action-popup"></span>' + '</div>' + '<div class="content-holder"><h5>${name}</h5></div>' + '<div class="progress-holder">${progressBar}</div>' + '</div>' + '</li>',
startImageRenderer: true,
canvasImage: true,
_selectors: {
list: '.fileuploader-items-list',
item: '.fileuploader-item',
start: '.fileuploader-action-start',
retry: '.fileuploader-action-retry',
remove: '.fileuploader-action-remove'
},
onImageLoaded: function(item) {
},
onItemShow: function(item, listEl, parentEl, newInputEl, inputEl) {
var plusInput = listEl.find('.fileuploader-thumbnails-input'),
api = $.fileuploader.getInstance(inputEl.get(0));
plusInput.insertAfter(item.html)[((api.getOptions().limit && api.getAppendedFiles().length) || (api.getOptions().limit && api.getChoosedFiles().length)) >= api.getOptions().limit ? 'hide' : 'show']();
if (item.format == 'image') {
item.html.find('.fileuploader-item-icon').hide();
}
},
onItemRemove: function(html, listEl, parentEl, newInputEl, inputEl) {
var plusInput = listEl.find('.fileuploader-thumbnails-input'),
api = $.fileuploader.getInstance(inputEl.get(0));
html.children().animate({
'opacity': 0
}, 200, function() {
setTimeout(function() {
html.remove();
if (api.getFiles().length - 1 < api.getOptions().limit) {
plusInput.show()
}
}, 100)
});
$('#SettingForm').find('button:button').prop('disabled', $(this).serialize() == $(this).data('serialized'));
}
},
dragDrop: {
container: '.fileuploader-thumbnails-input'
},
editor: {
cropper: {
ratio: '1:1',
minWidth: 128,
minHeight: 128,
showGrid: true
}
},
afterRender: function(listEl, parentEl, newInputEl, inputEl) {
var plusInput = listEl.find('.fileuploader-thumbnails-input'),
api = $.fileuploader.getInstance(inputEl.get(0));
plusInput.on('click', function() {
api.open()
})
}
});
api_fileuploader_logo = $.fileuploader.getInstance('input#logo');
// api_fileuploader_cover = $.fileuploader.getInstance('input#img_cover');
// api_fileuploader_background = $.fileuploader.getInstance('input#img_background');
}
}
var UpdateSetting = function(){
$.ajax({
url: base_admin + "/home/ajax/ajax_setting",
type: "get",
success: function(response) {
if (response.code == '200') {
$('#id').val(response.data.id);
$('#limit_upload').val(response.data.limit_upload);
$('#default_password').val(response.data.default_password);
$('#phone').val(response.data.phone);
if(response.data.logo != null) {
api_fileuploader_logo.append([{
name: (response.data.logo).substring((response.data.logo).lastIndexOf('/')+1),
type: 'image/png',
file: base_admin+'/'+response.data.logo,
data: {
url: base_admin+'/'+response.data.logo,
thumbnail: base_admin+'/'+response.data.logo
}
}]);
api_fileuploader_logo.updateFileList();
}
} else {
Lobibox.notify("warning", {
title: 'Thông báo',
pauseDelayOnHover: true,
continueDelayOnInactiveTab: false,
icon: false,
sound: false,
msg: response.msg
});
}
$('#SettingForm').each(function() {
$(this).data('serialized', $(this).serialize())
});
},
error: function(jqXHR, textStatus, errorThrown) {
Lobibox.notify("warning", {
title: 'Thông báo',
pauseDelayOnHover: true,
continueDelayOnInactiveTab: false,
icon: false,
sound: false,
msg: response.msg
});
}
});
};
var SettingFormSubmit = function(){
var form_data = new FormData($('#SettingForm')[0]);
var fileListLogo = Object.keys(api_fileuploader_logo.getFileList()).length;
form_data.append('fileListLogo', fileListLogo);
// var fileListCover = Object.keys(api_fileuploader_cover.getFileList()).length;
// form_data.append('fileListCover', fileListCover);
// var fileListBackground = Object.keys(api_fileuploader_background.getFileList()).length;
// form_data.append('fileListBackground', fileListBackground);
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: form_data,
cache:false,
contentType: false,
enctype: 'multipart/form-data',
processData: false,
dataType: "json",
type: "post",
url: base_admin+"/home/ajax/ajax_setting",
success: function(response) {
if (response.code == '200') {
Lobibox.notify("success", {
title: 'Notification',
pauseDelayOnHover: true,
continueDelayOnInactiveTab: false,
icon: false,
sound: false,
msg: response.msg
});
$('#btnSetting').attr('disabled', true);
// table.ajax.reload(null, true);
} else {
Lobibox.notify("warning", {
title: 'Notification',
pauseDelayOnHover: true,
continueDelayOnInactiveTab: false,
icon: false,
sound: false,
msg: response.msg
});
$('#btnSetting').attr('disabled', true);
}
// $('#btnNews').button('reset');
},
error: function(jqXHR, textStatus, errorThrown) {
Lobibox.notify("warning", {
title: 'Notification',
pauseDelayOnHover: true,
continueDelayOnInactiveTab: false,
icon: false,
sound: false,
msg: 'There was an error during processing'
});
$('#btnSetting').attr('disabled', true);
// $('#btnNews').button('reset');
}
});
};
| 45.410714 | 676 | 0.507177 |
b84e4af534f1ed441b86d52b9321b99099359b3d | 4,442 | js | JavaScript | src/components/WorldMapCOVID19/DetailedMap.js | mnai01/ru-hack | 3114ce3ebca83c77216fe2f6bc8684b3fd68209c | [
"MIT"
] | null | null | null | src/components/WorldMapCOVID19/DetailedMap.js | mnai01/ru-hack | 3114ce3ebca83c77216fe2f6bc8684b3fd68209c | [
"MIT"
] | null | null | null | src/components/WorldMapCOVID19/DetailedMap.js | mnai01/ru-hack | 3114ce3ebca83c77216fe2f6bc8684b3fd68209c | [
"MIT"
] | null | null | null | import React, { useState, useEffect } from "react";
import "./DetailedMap.css";
import { VectorMap } from "react-jvectormap";
import countries from "i18n-iso-countries";
countries.registerLocale(require("i18n-iso-countries/langs/en.json"));
const handleClick = (e, countryCode) => {
console.log(countryCode);
};
const DetailedMap = () => {
const [mapDetails, setMapDetails] = useState(null);
const [loaded, setLoading] = useState(false);
useEffect(() => {
fetchData();
}, []);
const fetchData = () => {
fetch("https://covid-193.p.rapidapi.com/statistics", {
headers: {
"x-rapidapi-host": "covid-193.p.rapidapi.com",
"x-rapidapi-key": "e060ce6c8fmsh5404eaabe6d29f6p1d2845jsn9e8347027e2a",
},
})
.then((response) => {
return response.json();
})
.then((data) => {
// console.log(data["response"]);
setMapDetails(data["response"]);
setLoading(false);
})
.catch((error) => console.log(error));
};
let mapData = {};
if (mapDetails) {
mapDetails.forEach((item) => {
// This removed only the extra white space in the beginning of the string
let countryname = item.country.replace("-", " ");
// This is then used to remove the white space at the end of the string
// var newcountryname = countryname.substring(0, countryname.length -1);
let key = countries.getAlpha2Code(countryname, "en");
if (!key) {
// Sometimes countries don't get coded
switch (countryname) {
case "USA":
key = "US";
break;
case "S Korea":
key = "KR";
break;
case "Vietnam":
key = "VN";
break;
case "Russia":
key = "RU";
break;
case "Iran":
key = "IR";
break;
case "Diamond-Princess-":
key = "JP";
break;
case "North Macedonia":
key = "MK";
break;
case "Czechia":
key = "CZ";
break;
case "UK":
key = "GB";
break;
case "UAE":
key = "AE";
break;
case "Palestine":
key = "PS";
break;
case "Moldova":
key = "MD";
break;
case "Brunei":
key = "BN";
break;
case "Saint Martin":
key = "MF";
break;
case "Faeroe Islands":
key = "FO";
break;
case "Channel Islands":
key = "NONE";
break;
case "Vatican City":
key = "VA";
break;
case "St. Barth":
key = "BL";
break;
case "DRC":
key = "CD";
break;
case "Ivory Coast":
key = "CI";
break;
case "CAR":
key = "CF";
break;
case "Tanzania":
key = "TZ";
break;
case "Syria":
key = "SY";
break;
case "Laos":
key = "LA";
break;
default:
// console.log(countryname);
key = undefined;
}
}
mapData[key] = item.cases.total;
});
return (
<div className="map">
<VectorMap
map={"world_mill"}
backgroundColor="#131138"
zoomOnScroll={false}
containerStyle={{
width: "100%",
height: "100%",
}}
onRegionClick={handleClick} //gets the country code
containerClassName="map"
regionStyle={{
initial: {
fill: "#7d9",
"fill-opacity": 0.9,
stroke: "none",
"stroke-width": 0,
"stroke-opacity": 0,
},
hover: {
"fill-opacity": 0.8,
cursor: "pointer",
},
}}
series={{
regions: [
{
values: mapData, //this is your data
scale: ["#dbfebd", "#ec5870"], //your color game's here
normalizeFunction: "polynomial",
},
],
}}
/>
</div>
);
} else {
return null;
}
};
export default DetailedMap;
| 25.676301 | 79 | 0.441243 |
b84e54d2965a286f09178e6179e9e219efe362ef | 687 | js | JavaScript | react-portfolio/src/Pages/Resume/Resume.js | Jerquanus/react-portfolio | 949e164abd8671f84369786ad124000655891be5 | [
"MIT"
] | null | null | null | react-portfolio/src/Pages/Resume/Resume.js | Jerquanus/react-portfolio | 949e164abd8671f84369786ad124000655891be5 | [
"MIT"
] | null | null | null | react-portfolio/src/Pages/Resume/Resume.js | Jerquanus/react-portfolio | 949e164abd8671f84369786ad124000655891be5 | [
"MIT"
] | null | null | null | import React from 'react';
import resume from "../../Assets/images/smartContract.png"
import "./style.css";
function Resume () {
return(
<div className="resumeContainer">
<div className="resumeGrid">
<div className="resumeDiv">
<img className="resume" src = {resume} alt="resume" />
</div>
<div className = "resumeButton">
<h1>VIEW RESUME</h1>
<a href = "https://docs.google.com/document/d/1S7BnpSYfGr8pyP9A_lxEmjLPOMI2YdeoTT8gHOz9va8/edit?usp=sharing"
target="_blank" rel="noopener noreferrer"
>View or Download Resume
</a>
</div>
</div>
</div>
)};
export default Resume;
| 22.16129 | 117 | 0.606987 |
b84e7556a7a8da98d0347ec357ee995defceedb8 | 1,612 | js | JavaScript | src/components/ContactInfo/index.js | BeataMaro/SelfMAX | 1cc49bc6f6f183f63a7fb2fc11db0254f664385b | [
"RSA-MD"
] | null | null | null | src/components/ContactInfo/index.js | BeataMaro/SelfMAX | 1cc49bc6f6f183f63a7fb2fc11db0254f664385b | [
"RSA-MD"
] | null | null | null | src/components/ContactInfo/index.js | BeataMaro/SelfMAX | 1cc49bc6f6f183f63a7fb2fc11db0254f664385b | [
"RSA-MD"
] | null | null | null | import React from "react"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faFacebookF } from "@fortawesome/free-brands-svg-icons"
import { faEnvelopeOpen, faMobileAlt } from "@fortawesome/free-solid-svg-icons"
import {
StyledInfo,
StyledIcons,
StyledIcon,
StyledCol,
StyledAddress,
} from "./StyledContactInfo"
const ContactInfo = () => {
return (
<StyledInfo>
<div>
<h3>
Jeśli zainteresowała Cię nasza oferta, wybierz najwygodniejszy dla
siebie sposób kontaktu.
</h3>
</div>
<StyledIcons>
<StyledCol>
<StyledIcon>
<FontAwesomeIcon icon={faMobileAlt} />
</StyledIcon>
<StyledIcon>
<FontAwesomeIcon icon={faEnvelopeOpen} />
</StyledIcon>
<StyledIcon>
<a
href="https://www.facebook.com/SelfmaxPolska"
target="_blank"
rel="noreferrer"
>
<FontAwesomeIcon icon={faFacebookF} />
</a>
</StyledIcon>
</StyledCol>
<StyledCol>
<p>+48 503 696 926</p>
<strong>dariusz@lakomski.pl</strong>
<a
href="https://www.facebook.com/SelfmaxPolska"
target="_blank"
rel="noreferrer"
>
<strong>@SelfmaxPolska</strong>
</a>
</StyledCol>
</StyledIcons>
<StyledAddress>
<p>Niedersulzer Straße 2,</p>
<p> 2225 Loidesthal, Austria</p>
</StyledAddress>
</StyledInfo>
)
}
export default ContactInfo
| 26 | 79 | 0.55397 |
b84e90e71924ff3366e35e2247d3951230189f1a | 3,532 | js | JavaScript | spec/spec.js | MatthewDLudwig/mining-pool | 69dba1d4a6ab73f30df5a61c0184ecd679696f10 | [
"Apache-2.0"
] | 5 | 2019-03-04T12:25:42.000Z | 2020-02-11T07:36:31.000Z | spec/spec.js | MatthewDLudwig/mining-pool | 69dba1d4a6ab73f30df5a61c0184ecd679696f10 | [
"Apache-2.0"
] | 1 | 2019-05-27T19:57:49.000Z | 2019-08-12T04:53:40.000Z | spec/spec.js | MatthewDLudwig/mining-pool | 69dba1d4a6ab73f30df5a61c0184ecd679696f10 | [
"Apache-2.0"
] | 7 | 2019-05-24T21:56:20.000Z | 2020-10-11T21:54:31.000Z | const fs = require('fs');
const mysql = require('mysql2/promise');
const Nimiq = require('@nimiq/core');
NETCONFIG = new Nimiq.WsNetworkConfig('node1.test', 9000, 'key1', 'cert1');
NETCONFIG._keyPair = Nimiq.KeyPair.fromHex('ab05e735f870ff4482a997eab757ea78f8a83356ea443ac68969824184b82903a5ea83e7ee0c8c7ad863c3ceffd31a63679e1ea34a5f89e3ae0f90c5d281d4a900');
/** @type {PoolConfig} */
POOL_CONFIG = require('../src/Config.js').DEFAULT_CONFIG.pool;
POOL_CONFIG.name = 'Test Pool';
POOL_CONFIG.address = 'NQ10 G2P1 GKKY TMUX YLRH BF8D 499N LD9G B1HX';
Nimiq.GenesisConfig.CONFIGS['tests'] = {
NETWORK_ID: 4,
NETWORK_NAME: 'tests',
GENESIS_BLOCK: new Nimiq.Block(
new Nimiq.BlockHeader(
new Nimiq.Hash(null),
new Nimiq.Hash(null),
Nimiq.Hash.fromBase64('nVtxMP3RlCdAbx1Hd4jsH4ZsZQsu/1UK+zUFsUNWgbs='),
Nimiq.Hash.fromBase64('v6zYHGQ3Z/O/G/ZCyXtO/TPa7/Kw00HGEzRK5wbu2zg='),
Nimiq.BlockUtils.difficultyToCompact(1),
1,
0,
101720,
Nimiq.BlockHeader.Version.V1),
new Nimiq.BlockInterlink([], new Nimiq.Hash(null)),
new Nimiq.BlockBody(Nimiq.Address.fromBase64('G+RAkZY0pv47pfinGB/ku4ISwTw='), [])
),
GENESIS_ACCOUNTS: 'AAIP7R94Gl77Xrk4xvszHLBXdCzC9AAAAHKYqT3gAAh2jadJcsL852C50iDDRIdlFjsNAAAAcpipPeAA',
SEED_PEERS: [Nimiq.WsPeerAddress.seed('node1.test', 9000, NETCONFIG.publicKey.toHex())]
};
Nimiq.GenesisConfig.init(Nimiq.GenesisConfig.CONFIGS['tests']);
async function dropDatabase() {
try {
const data = fs.readFileSync('./sql/drop.sql', 'utf8');
const connection = await mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'root',
multipleStatements: true
});
await connection.query(data);
await connection.close();
} catch (e) {
// Ignore, this is supposed to happen if prior tests did fail.
}
}
async function createDatabase() {
const connection = await mysql.createConnection({host: 'localhost', user: 'root', password: 'root'});
const data = fs.readFileSync('./sql/create.sql', 'utf8');
let start = 0;
let length = 0;
let delimiter = ';';
while (start < data.length) {
let nextDelimiter = data.indexOf(delimiter, start);
let nextDelimiterChange = data.indexOf('\nDELIMITER', start);
if (nextDelimiter < 0) nextDelimiter = data.length;
if (nextDelimiterChange < 0) nextDelimiterChange = Number.MAX_VALUE;
if (nextDelimiterChange < nextDelimiter) {
const delimiterChangeEnd = data.indexOf('\n', nextDelimiterChange + 11);
delimiter = data.substring(nextDelimiterChange + 11, delimiterChangeEnd);
start = delimiterChangeEnd + 1;
} else {
const query = data.substring(start, nextDelimiter);
if (query.trim() != '') {
await connection.query(query);
}
start = nextDelimiter + delimiter.length;
}
}
await connection.close();
}
beforeAll((done) => {
dropDatabase().then(done, done.fail);
});
beforeEach((done) => {
createDatabase().then(done, done.fail);
});
afterEach((done) => {
dropDatabase().then(done, done.fail);
});
jasmine.DEFAULT_TIMEOUT_INTERVAL = 12000;
const ChainSampleData = require('./ChainSampleData.spec.js');
const NQ25sampleData = require('./NQ25sampleData.spec.js');
const NQ43sampleData = require('./NQ43sampleData.spec.js');
| 37.178947 | 177 | 0.654587 |
b84f014cedc18e04940d3823e5ed4330b58ac57d | 792 | js | JavaScript | src/components/navbar.js | zwwuu/gh-stats | d285f602c5c17765b71e37e0c61851709699d5e8 | [
"MIT"
] | null | null | null | src/components/navbar.js | zwwuu/gh-stats | d285f602c5c17765b71e37e0c61851709699d5e8 | [
"MIT"
] | null | null | null | src/components/navbar.js | zwwuu/gh-stats | d285f602c5c17765b71e37e0c61851709699d5e8 | [
"MIT"
] | null | null | null | import { Flex, Icon, Image, Link } from "@chakra-ui/react";
import { RiGithubFill } from "react-icons/ri";
import logo from "../assets/images/logo.png";
const Navbar = () => (
<Flex as={"header"} bg={"gray.800"} color={"white"} p={4} alignItems={"center"} justifyContent={"space-between"}>
<Link href={"/"} display={"flex"} alignItems={"center"} variant={"styleless"} color={"white"}>
<Image src={logo} alt="logo" mr={2} boxSize={10} htmlWidth={40} htmlHeight={40} />
GH Stats
</Link>
<Link
href={"https://github.com/zwwuu/gh-stats"}
title={"Source Code"}
variant={"styleless"}
color={"white"}
isExternal
>
<Icon as={RiGithubFill} boxSize={"24px"} verticalAlign={"middle"} />
</Link>
</Flex>
);
export default Navbar;
| 33 | 115 | 0.604798 |
b84f50700c5a32e1a091dfc000667fb17cbb1b79 | 1,054 | js | JavaScript | packages/ckeditor5-build-decoupled-document/build/translations/de.js | schambeck/ckeditor5 | 75f1b67a7bf264ccde7b81996bb82cf5d52eb8d9 | [
"MIT"
] | null | null | null | packages/ckeditor5-build-decoupled-document/build/translations/de.js | schambeck/ckeditor5 | 75f1b67a7bf264ccde7b81996bb82cf5d52eb8d9 | [
"MIT"
] | null | null | null | packages/ckeditor5-build-decoupled-document/build/translations/de.js | schambeck/ckeditor5 | 75f1b67a7bf264ccde7b81996bb82cf5d52eb8d9 | [
"MIT"
] | null | null | null | (function(d){ const l = d['de'] = d['de'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"%0 von %1",Bold:"Fett","Bulleted List":"Aufzählungsliste",Cancel:"Abbrechen","Change image text alternative":"Alternativ Text ändern","Choose heading":"Überschrift auswählen","Dropdown toolbar":"Dropdown-Liste Werkzeugleiste","Editor toolbar":"Editor Werkzeugleiste","Enter image caption":"Bildunterschrift eingeben",Heading:"Überschrift","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4","Heading 5":"Überschrift 5","Heading 6":"Überschrift 6","image widget":"Bild-Steuerelement",Italic:"Kursiv",Next:"Nächste","Numbered List":"Nummerierte Liste",Paragraph:"Absatz",Previous:"vorherige",Redo:"Wiederherstellen","Rich Text Editor, %0":"Rich-Text-Editor, %0",Save:"Speichern","Show more items":"Mehr anzeigen","Text alternative":"Textalternative",Undo:"Rückgängig"} );l.getPluralForm=function(n){return (n != 1);;};})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); | 1,054 | 1,054 | 0.736243 |
b84fd439b1a9877148496bab5b839167976a6fb4 | 6,180 | js | JavaScript | src/index.js | clburlison/MapJS | 5803ad6ea222286fc1eecde7b402c3c44c8d912b | [
"FSFAP"
] | null | null | null | src/index.js | clburlison/MapJS | 5803ad6ea222286fc1eecde7b402c3c44c8d912b | [
"FSFAP"
] | null | null | null | src/index.js | clburlison/MapJS | 5803ad6ea222286fc1eecde7b402c3c44c8d912b | [
"FSFAP"
] | null | null | null | 'use strict';
const path = require('path');
const compression = require('compression');
const express = require('express');
//const cookieSession = require('cookie-session');
const session = require('express-session');
const app = express();
const mustacheExpress = require('mustache-express');
const i18n = require('i18n');
const helmet = require('helmet');
const rateLimit = require('express-rate-limit');
const config = require('./services/config.js');
const defaultData = require('./data/default.js');
const apiRoutes = require('./routes/api.js');
const discordRoutes = require('./routes/discord.js');
const uiRoutes = require('./routes/ui.js');
const { sessionStore, isValidSession, clearOtherSessions } = require('./services/session-store.js');
// TODO: Check sessions table and parse json
const RateLimitTime = config.ratelimit.time * 60 * 1000;
const MaxRequestsPerHour = config.ratelimit.requests * (RateLimitTime / 1000);
const rateLimitOptions = {
windowMs: RateLimitTime, // Time window in milliseconds
max: MaxRequestsPerHour, // Start blocking after x requests
headers: true,
message: {
status: 429, // optional, of course
limiter: true,
type: 'error',
message: `Too many requests from this IP, please try again in ${config.ratelimit.time} minutes.`
},
/* eslint-disable no-unused-vars */
onLimitReached: (req, res, options) => {
/* eslint-enable no-unused-vars */
//console.error('Rate limit reached! Redirect to landing page.');
//res.status(options.message.status).send(options.message.message);
// TODO: Fix redirect
res.redirect('/429');
}
};
const requestRateLimiter = rateLimit(rateLimitOptions);
// Basic security protection middleware
app.use(helmet());
// View engine
app.set('view engine', 'mustache');
app.set('views', path.resolve(__dirname, 'views'));
app.engine('mustache', mustacheExpress());
// Compression middleware
app.use(compression());
// Static paths
app.use(express.static(path.resolve(__dirname, '../static')));
// Body parser middlewares
app.use(express.json({ limit: '500mb' }));
app.use(express.urlencoded({ extended: false, limit: '500mb' }));
// Initialize localzation handler
i18n.configure({
locales:['en', 'es', 'de'],
directory: path.resolve(__dirname, '../static/locales')
});
app.use(i18n.init);
// Register helper as a locals function wrroutered as mustache expects
app.use((req, res, next) => {
// Mustache helper
res.locals.__ = () => {
/* eslint-disable no-unused-vars */
return (text, render) => {
/* eslint-enable no-unused-vars */
return i18n.__.routerly(req, arguments);
};
};
next();
});
// Set locale
i18n.setLocale(config.locale);
// Sessions middleware
/*
app.use(cookieSession({
name: 'session',
keys: [config.sessionSecret],
maxAge: 518400000,
store: sessionStore
}));
*/
app.use(session({
key: 'session',
secret: config.sessionSecret,
store: sessionStore,
resave: true,
saveUninitialized: false
}));
if (config.discord.enabled) {
app.use('/api/discord', discordRoutes);
// Discord error middleware
/* eslint-disable no-unused-vars */
app.use((err, req, res, next) => {
switch (err.message) {
case 'NoCodeProvided':
return res.status(400).send({
status: 'ERROR',
error: err.message,
});
default:
return res.status(500).send({
status: 'ERROR',
error: err.message,
});
}
});
/* eslint-enable no-unused-vars */
}
// Login middleware
app.use(async (req, res, next) => {
if (config.discord.enabled && (req.path === '/api/discord/login' || req.path === '/login')) {
return next();
}
if (!config.discord.enabled || req.session.logged_in) {
defaultData.logged_in = true;
defaultData.username = req.session.username;
if (!config.discord.enabled) {
return next();
}
if (!config.allowMultipleSessions) {
// Check if there are any other sessions in the database that are for the same user_id,
// if so delete all other sessions other than the current session.
if (!(await isValidSession(req.session.user_id))) {
console.debug('[Session] Detected multiple sessions, clearing old ones...');
await clearOtherSessions(req.session.user_id, req.sessionID);
}
}
if (!req.session.valid) {
console.error('Invalid user authenticated', req.session.user_id);
res.redirect('/login');
return;
}
const perms = req.session.perms;
defaultData.hide_map = !perms.map;
if (defaultData.hide_map) {
// No view map permissions, go to login screen
console.error('Invalid view map permissions for user', req.session.user_id);
res.redirect('/login');
return;
}
defaultData.hide_pokemon = !perms.pokemon;
defaultData.hide_raids = !perms.raids;
defaultData.hide_gyms = !perms.gyms;
defaultData.hide_pokestops = !perms.pokestops;
defaultData.hide_quests = !perms.quests;
defaultData.hide_lures = !perms.lures;
defaultData.hide_invasions = !perms.invasions;
defaultData.hide_spawnpoints = !perms.spawnpoints;
defaultData.hide_iv = !perms.iv;
defaultData.hide_cells = !perms.s2cells;
defaultData.hide_submission_cells = !perms.submissionCells;
defaultData.hide_nests = !perms.nests;
defaultData.hide_scan_areas = !perms.scanAreas;
defaultData.hide_weather = !perms.weather;
defaultData.hide_devices = !perms.devices;
return next();
}
res.redirect('/login');
});
// UI routes
app.use('/', uiRoutes);
app.use('/api', requestRateLimiter);
// API routes
app.use('/api', apiRoutes);
// Start listener
app.listen(config.port, config.interface, () => console.log(`Listening on port ${config.port}...`));
| 32.698413 | 104 | 0.628317 |
b851f83506434312c658a7a7141bbcc64acdc593 | 2,557 | js | JavaScript | src/popup/shared/PageMissing.js | podnoms/podnoms-extension | 5a68a2bcf1475c503b69345cab9c2103c1db964a | [
"MIT"
] | null | null | null | src/popup/shared/PageMissing.js | podnoms/podnoms-extension | 5a68a2bcf1475c503b69345cab9c2103c1db964a | [
"MIT"
] | null | null | null | src/popup/shared/PageMissing.js | podnoms/podnoms-extension | 5a68a2bcf1475c503b69345cab9c2103c1db964a | [
"MIT"
] | null | null | null | import React, {useState} from 'react';
import {flagPage} from '../../services/apiService';
const PageMissing = (props) => {
const [pageStatus, setPageStatus] = useState('info');
const submitUrlForChecking = (url) => {
console.log('Submitting page');
flagPage(url)
.then((r) => setPageStatus('submitted'))
}
return pageStatus === 'info' ? (
<div className="block-content main-content page-wrapper">
<div className="block">
<div className="block-content block-content-full">
<div className="py-20 text-center">
<div className="mb-20">
<img className="bad-news" src="/img/sad-robot.jpg"/>
</div>
<div className="font-size-h4 font-w600">Bad news...</div>
<div className="text-muted">I could not find any audio on this page!</div>
<div className="pt-20">
<button className="btn btn-rounded btn-alt-info"
onClick={() => submitUrlForChecking(props.url)}>
<i className="fa fas fa-search-plus mr-5"/> Submit URL for checking
</button>
</div>
</div>
</div>
</div>
</div>
) : (
<div className="block-content main-content page-wrapper">
<div className="block">
<div className="block-content block-content-full">
<div className="py-20 text-center">
<div className="mb-20">
<img className="bad-news" src="/img/sad-robot.jpg"/>
</div>
<div className="font-size-h4 font-w600">Thank you...</div>
<div className="text-muted">
We received your request and
will get back to you as soon as we can!
</div>
<div className="pt-20">
<button className="btn btn-rounded btn-alt-info"
onClick={() => window.close()}>
<i className="fa fa-thumbs-up mr-5"/> Done
</button>
</div>
</div>
</div>
</div>
</div>
);
};
export default PageMissing;
| 43.338983 | 99 | 0.438795 |
b8544f3ee66e36dcad8c833f8f4ade95bef77845 | 1,115 | js | JavaScript | slb/src/main/web/static-new/repository/user/user-repository.js | sdgdsffdsfff/zeus | d77dda1bc523d62d1b087988324636b3cea36ce0 | [
"Apache-2.0"
] | 55 | 2015-03-03T09:55:31.000Z | 2021-09-16T09:26:38.000Z | slb/src/main/web/static-new/repository/user/user-repository.js | sdgdsffdsfff/zeus | d77dda1bc523d62d1b087988324636b3cea36ce0 | [
"Apache-2.0"
] | 8 | 2016-11-19T14:26:01.000Z | 2021-12-09T19:43:22.000Z | slb/src/main/web/static-new/repository/user/user-repository.js | ctripcorp/zeus | d3b8bdc25cc981765814ec8b9cdfaa867583267d | [
"Apache-2.0"
] | 43 | 2015-03-24T08:01:35.000Z | 2022-01-27T03:55:52.000Z | var UserRepository = Repository.extend(
{
init: function ($http, command) {
command = command || new RestCommand();
this.callSuper($http, command);
this.base = G.baseUrl;
},
getUsers: function () {
var path = this.base + '/api/auth/users';
return this.get(path);
},
current: function () {
var path = '/api/auth/current/user';
return this.get(path);
},
metas: function () {
var path = this.base + '/api/meta/users';
var params = {
q: '',
timestamp: new Date().getTime()
};
this.get(path, params);
},
detail: function (userName) {
var path = '/api/auth/user';
var params = {
userName: userName
};
return this.get(path, params);
},
resources: function () {
var path = '/api/auth/user/resources';
return this.get(path, {});
}
}); | 31.857143 | 54 | 0.430493 |
b85474e464e156e79a56af83c462017d3498777e | 510 | js | JavaScript | server/config/options.js | oksas/phodome | b20e2b427c3ef2ff8fb9486ce6f68b42b28b5e82 | [
"Unlicense"
] | null | null | null | server/config/options.js | oksas/phodome | b20e2b427c3ef2ff8fb9486ce6f68b42b28b5e82 | [
"Unlicense"
] | null | null | null | server/config/options.js | oksas/phodome | b20e2b427c3ef2ff8fb9486ce6f68b42b28b5e82 | [
"Unlicense"
] | null | null | null | var path = require('path');
var basePath = path.resolve(__dirname, '..');
module.exports = {
tmpDir: basePath + '/tmp',
publicDir: basePath + '/public',
uploadDir: basePath + '/public/images',
uploadUrl: '/api/images/',
minFileSize: 1,
maxFileSize: 10485760, // 10MB
maxPostSize: 10485760, // 10MB
acceptFileTypes: /.+/i,
imageTypes: /\.(gif|jpe?g|png|bmp|swf)$/i,
imageVersions: {
'thumbnails': {
width: 80,
height: 80
}
},
nodeStatic: {
cache: 3600
}
};
| 20.4 | 45 | 0.601961 |
b855e734095eeb95f09c9bf2bd5afdd524a3eefc | 3,700 | js | JavaScript | app.js | idesmar/test-cursor-mobile | 97affbcccfbf3492a25259fac937ae528d4d8c83 | [
"MIT"
] | null | null | null | app.js | idesmar/test-cursor-mobile | 97affbcccfbf3492a25259fac937ae528d4d8c83 | [
"MIT"
] | null | null | null | app.js | idesmar/test-cursor-mobile | 97affbcccfbf3492a25259fac937ae528d4d8c83 | [
"MIT"
] | null | null | null | // console.clear()
const log = console.log
inputElement = document.querySelector('input')
document.querySelector('button').addEventListener('click', (e) => {
inputElement.value = ''
console.clear()
})
const DEC = '.'
const SEP = ','
// TODO whole number limit may be required for each input (bill, rate, divisor)
// format to currency
const mask = (num) => {
let output = []
let wholeNum = num.includes(DEC) ?
num.slice(0, num.indexOf(DEC)) : num
let decNum = num.includes(DEC) ?
num.slice(num.indexOf(DEC)) : ''
let len = wholeNum.length
for (let i = 0; i < len; i++) {
if (i !== 0 && (len - i) % 3 === 0) {
output.push(SEP)
}
output.push(wholeNum[i])
}
return output.join('').concat(decNum)
}
// reformat num from currency to base form
const unmask = (num) => {
// log(arguments.callee.caller.name)
let output = []
let numRE = new RegExp(/\d|\./)
for (let i = 0; i < num.length; i++) {
let char = num.charAt(i)
if (numRE.test(char) === true) {
if (char === DEC && output.includes(DEC)) {//|| // removes excess decimal
// char === DEC && i === 0) { // removes decimal at 0 index
output.push("")
} else {
output.push(char)
}
}
}
output = output.join("")
// removes leading 0
if (output.indexOf(0) === 0 && output.length > 1) {
let firstNonZeroIndex = Array.from(output).findIndex((a) => a > 0)
if (output.charAt(1) === DEC) {
// do nothing
} else {
output = output.slice(firstNonZeroIndex)
}
}
// removes decimal numbers beyond 2 places
// note: length > 3 allows output = .xx
if (output.includes(DEC) && output.length > 3) {
output = output.slice(0, output.indexOf(DEC) + 3)
}
return output
}
let oldCursor
let oldValue
const keydownHandler = (e) => {
let el = e.target
oldCursor = el.selectionStart
oldValue = el.value
// oldValue = mask(oldValue)
}
// optional
const checkSeparator = (position, len, interval) => {
let posFromTail = len - position
return len - Math.floor(posFromTail / (interval + 1))
}
// counter for testing
const separatorCount = (el) => {
return Array.from(el).filter(a => a === SEP).length
}
const inputHandler = (e) => {
let el = e.target
let newCursorPosition
let newValue = unmask(el.value)
// let newValue = el.value
newValue = mask(newValue)
el.value = newValue
// newValue !== '' ? el.value = newValue : el.value = ''
let oldLen = oldValue.length
let newLen = newValue.length
let foo = Math.floor((oldLen + newLen) / 2)
let testCursor = oldCursor - checkSeparator(oldCursor, oldLen, 3) + checkSeparator(oldCursor + (newValue.length - oldValue.length), foo, 3) + (unmask(newValue).length - unmask(oldValue).length)
// ISSUE: cursor moves backwards by 1 when backspacing on desktop
newCursorPosition = oldCursor + (newValue.length - oldValue.length)
if (newCursorPosition === -1) {
newCursorPosition = 0
}
el.setSelectionRange(newCursorPosition, newCursorPosition)
// log(`
// key pressed | ${e.data}
// oldCursor (el.ss) | ${oldCursor}
// computed newCursor | ${newCursorPosition} *
// testCursor | ${testCursor} **
// newCursor (el.ss) | ${el.selectionStart}
// newCursorAtEnd | ${el.selectionStart === el.value.length}
// oldValue | ${oldValue}
// newValue | ${newValue}
// old length | ${oldValue.length}
// new length | ${newValue.length}
// len change | ${newValue.length - oldValue.length}
// oldSepCount | ${separatorCount(oldValue)}
// newSepCount | ${separatorCount(newValue)}
// `)
}
inputElement.addEventListener('keydown', keydownHandler)
inputElement.addEventListener('input', inputHandler)
| 26.241135 | 194 | 0.632703 |
b858ca2b1e59b4c89700f1730b35bceb272efc9a | 1,172 | js | JavaScript | src/plain/PlainOption.js | nerdbeere/elix | faf744da18207be4863e0b95d2a82ed4408a0347 | [
"MIT"
] | 678 | 2017-02-05T07:33:19.000Z | 2022-03-26T01:22:17.000Z | src/plain/PlainOption.js | nerdbeere/elix | faf744da18207be4863e0b95d2a82ed4408a0347 | [
"MIT"
] | 144 | 2016-12-06T21:24:02.000Z | 2022-03-21T11:37:57.000Z | src/plain/PlainOption.js | nerdbeere/elix | faf744da18207be4863e0b95d2a82ed4408a0347 | [
"MIT"
] | 43 | 2016-11-28T23:57:12.000Z | 2022-03-11T16:46:56.000Z | import { template } from "../base/internal.js";
import Option from "../base/Option.js";
import { fragmentFrom } from "../core/htmlLiterals.js";
/**
* An option in a list in the Plain reference design system
*
* @inherits Option
*/
class PlainChoice extends Option {
get [template]() {
const result = super[template];
// Replace default slot with icon + slot.
const defaultSlot = result.content.querySelector("slot:not([name])");
if (defaultSlot) {
defaultSlot.replaceWith(fragmentFrom.html`
<svg id="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="4 6 18 12">
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>
</svg>
<slot></slot>
`);
}
result.content.append(fragmentFrom.html`
<style>
:host {
white-space: nowrap;
}
#checkmark {
height: 1em;
visibility: hidden;
width: 1em;
}
:host([selected]) #checkmark {
visibility: visible;
}
</style>
`);
return result;
}
}
export default PlainChoice;
| 23.44 | 83 | 0.574232 |
b85997c57d63edcfc0973b60ee9c4ff7f9233345 | 1,085 | js | JavaScript | src/components/component/Area/header.js | juntaekHong/Hongs | b22b099c8888c40e40cbe603addacfd5fe36dc56 | [
"RSA-MD"
] | null | null | null | src/components/component/Area/header.js | juntaekHong/Hongs | b22b099c8888c40e40cbe603addacfd5fe36dc56 | [
"RSA-MD"
] | null | null | null | src/components/component/Area/header.js | juntaekHong/Hongs | b22b099c8888c40e40cbe603addacfd5fe36dc56 | [
"RSA-MD"
] | null | null | null | import React from "react"
const Header = props => {
const { leftStyle, titleStyle, rightStyle } = props
const { title, leftComponent, rightComponent } = props
return (
<div
style={{
width: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "60px",
}}
>
<section
style={{
flex: 1,
display: "flex",
alignItems: "center",
justifyContent: "flex-start",
...leftStyle,
}}
>
{leftComponent}
</section>
<section
style={{
flex: 4,
display: "flex",
alignItems: "center",
justifyContent: "center",
...titleStyle,
}}
>
{title}
</section>
<section
style={{
flex: 1,
display: "flex",
alignItems: "center",
justifyContent: "flex-end",
...rightStyle,
}}
>
{rightComponent}
</section>
</div>
)
}
export default Header
| 18.706897 | 56 | 0.457143 |
b8599abe00f17a143e7e13693937ca933dd1469f | 586 | js | JavaScript | src/js/icons/Gateway.js | Infoto/grommet-icons | 3f2e5a2e375bb97457d85c2d8d509a68b9713be4 | [
"Apache-2.0"
] | 290 | 2017-09-05T15:44:02.000Z | 2022-03-23T01:26:31.000Z | src/js/icons/Gateway.js | Infoto/grommet-icons | 3f2e5a2e375bb97457d85c2d8d509a68b9713be4 | [
"Apache-2.0"
] | 182 | 2017-09-05T21:43:43.000Z | 2022-03-02T11:46:18.000Z | src/js/icons/Gateway.js | Infoto/grommet-icons | 3f2e5a2e375bb97457d85c2d8d509a68b9713be4 | [
"Apache-2.0"
] | 74 | 2017-09-26T15:57:24.000Z | 2022-03-12T15:20:35.000Z | import React, { forwardRef } from 'react';
import { StyledIcon } from '../StyledIcon';
const Gateway = forwardRef((props, ref) => (
<StyledIcon ref={ref} viewBox="0 0 24 24" a11yTitle="Gateway" {...props}>
<path stroke="#000" strokeWidth="2" d="M12 20v-5m0-6V4m-7 8h5m9 0h-5m-.969-4.031L12 9.344l-1.031-1.375h2.062zm-2.062 8.07L12 14.664l1.031 1.375H10.97zM6 13.031 4.625 12 6 10.969v2.062zm12-2.062L19.375 12 18 13.031V10.97zM12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1z" />
</StyledIcon>
));
Gateway.displayName = 'Gateway';
export { Gateway };
| 41.857143 | 300 | 0.682594 |
b859e0942f39b34dece66f289f0cf66396842d72 | 1,439 | js | JavaScript | server/controllers/viewController.js | pbrejcha/bunker | f7e9f1afca7e193d59ac3ecc9b03c0c9177cff13 | [
"MIT"
] | null | null | null | server/controllers/viewController.js | pbrejcha/bunker | f7e9f1afca7e193d59ac3ecc9b03c0c9177cff13 | [
"MIT"
] | null | null | null | server/controllers/viewController.js | pbrejcha/bunker | f7e9f1afca7e193d59ac3ecc9b03c0c9177cff13 | [
"MIT"
] | null | null | null | var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('fs'));
var config = require('./../config/config');
var UserSettings = require('./../models/UserSettings');
var emoticonService = require('./../services/emoticonService');
module.exports.index = function (req, res) {
var userId = _.isString(req.session.userId) ? req.session.userId.toObjectId() : req.session.userId;
Promise.join(
emoticonService.getEmoticonNamesFromDisk(),
UserSettings.findOne({user: userId}),
fs.readdirAsync('./assets/bundled').catch(_.noop)
)
.spread(function (emoticons, settings, bundledFiles) {
var templates = _.find(bundledFiles, function (file) {
return _.includes(file, 'templates');
});
//no template caching for dev
if (!config.useJavascriptBundle) {
templates = null;
}
res.render(config.useJavascriptBundle ? 'index-prod' : 'index', {
templates: templates,
userId: userId,
useJavascriptBundle: config.useJavascriptBundle,
emoticons: emoticons,
loadingEmote: emoticonService.getLoadScreenEmoticon(),
debugging: settings.showDebugging
});
})
.catch(res.serverError);
};
module.exports.login = function (req, res) {
res.render('login', {
clientID: config.google.clientID
});
};
module.exports.loginBasic = function (req, res) {
res.render('LoginBasic');
};
module.exports.logout = function (req, res) {
req.session.destroy();
res.redirect('/login');
};
| 27.673077 | 100 | 0.699097 |
b85ad39992c3f53111b66db48216e86fdce30731 | 1,019 | js | JavaScript | elements/signin/signinflow/LockedField.js | developedbyme/wprr | 94b332fe19b7df1bc058b2afce17607465ef9445 | [
"MIT"
] | 1 | 2018-06-23T01:20:05.000Z | 2018-06-23T01:20:05.000Z | elements/signin/signinflow/LockedField.js | developedbyme/wprr | 94b332fe19b7df1bc058b2afce17607465ef9445 | [
"MIT"
] | 6 | 2018-10-13T21:31:07.000Z | 2021-11-08T10:20:28.000Z | elements/signin/signinflow/LockedField.js | developedbyme/wprr | 94b332fe19b7df1bc058b2afce17607465ef9445 | [
"MIT"
] | null | null | null | import React from "react";
import Wprr from "wprr/Wprr";
import Layout from "wprr/elements/layout/Layout";
export default class LockedField extends Layout {
constructor(aProps) {
super(aProps);
}
_getLayout(aSlots) {
return React.createElement(Wprr.layout.form.LabelledArea, {
label: aSlots.prop("label", Wprr.sourceTranslation("Email", "site.email"))
}, /*#__PURE__*/React.createElement("div", {
className: "standard-field standard-field-padding uneditable"
}, /*#__PURE__*/React.createElement(Wprr.FlexRow, {
className: "small-item-spacing justify-between"
}, aSlots.default(Wprr.text(Wprr.sourceReference("externalStorage", aSlots.prop("fieldName", "email")))), /*#__PURE__*/React.createElement(Wprr.CommandButton, {
commands: Wprr.commands.callFunction(Wprr.sourceReference("steppedPaths"), "changeStep", [aSlots.prop("step", "changeEmail")])
}, /*#__PURE__*/React.createElement("div", {
className: "action-link secondary cursor-pointer"
}, Wprr.idText("Change", "site.change"))))));
}
}
| 37.740741 | 160 | 0.73209 |
b85ae79a1d3cbf5108116b095b1253ebdcd6d662 | 617,042 | js | JavaScript | build/static/js/main.9b2e3795.js | TheOther98/dearest-justin | 040320e487a8d8d80a56aace17ec7499b25c5d84 | [
"MIT",
"Unlicense"
] | 1 | 2020-07-27T00:45:47.000Z | 2020-07-27T00:45:47.000Z | build/static/js/main.9b2e3795.js | pixelcollective/dearest-justin | 040320e487a8d8d80a56aace17ec7499b25c5d84 | [
"MIT",
"Unlicense"
] | 14 | 2018-01-24T06:58:35.000Z | 2018-02-15T22:56:18.000Z | build/static/js/main.9b2e3795.js | TheOther98/dearest-justin | 040320e487a8d8d80a56aace17ec7499b25c5d84 | [
"MIT",
"Unlicense"
] | null | null | null | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=64)}([function(e,t,n){"use strict";e.exports=n(71)},function(e,t,n){e.exports=n(83)()},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e){return"[object Array]"===k.call(e)}function o(e){return"[object ArrayBuffer]"===k.call(e)}function a(e){return"undefined"!==typeof FormData&&e instanceof FormData}function i(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"===typeof e}function l(e){return"number"===typeof e}function c(e){return"undefined"===typeof e}function u(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===k.call(e)}function f(e){return"[object File]"===k.call(e)}function d(e){return"[object Blob]"===k.call(e)}function h(e){return"[object Function]"===k.call(e)}function m(e){return u(e)&&h(e.pipe)}function y(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function w(){function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=w(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function E(e,t,n){return b(t,function(t,r){e[r]=n&&"function"===typeof t?O(t,n):t}),e}var O=n(50),T=n(142),k=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:T,isFormData:a,isArrayBufferView:i,isString:s,isNumber:l,isObject:u,isUndefined:c,isDate:p,isFile:f,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:g,forEach:b,merge:w,extend:E,trim:v}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=e.match(E);if(t){var n=t[1];if(n.match(O))return i(n);if(T.test(n))return parseInt(n,10)}return 0}function i(e){for(var t=0,n=O.exec(e);null!==n;){var r=n,o=m(r,3),a=o[1],i=o[2];"h"===i&&(t+=60*parseInt(a,10)*60),"m"===i&&(t+=60*parseInt(a,10)),"s"===i&&(t+=parseInt(a,10)),n=O.exec(e)}return t}function s(){return Math.random().toString(36).substr(2,5)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};return window[t]&&r(window[t])?Promise.resolve(window[t]):new Promise(function(r,o){if(n){var a=window[n];window[n]=function(){a&&a(),r(window[t])}}(0,v.default)(e,function(e){e&&o(e),n||r(window[t])})})}function c(e,t,n){var r=(0,b.default)(t.config,e.config),a=!0,i=!1,s=void 0;try{for(var l,c=w.DEPRECATED_CONFIG_PROPS[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=l.value;if(e[u]){var p=u.replace(/Config$/,"");if(r=(0,b.default)(r,o({},p,e[u])),n){var f="ReactPlayer: %c"+u+" %cis deprecated, please use the config prop instead \u2013 https://github.com/CookPete/react-player#config-prop";console.warn(f,"font-weight: bold","")}}}}catch(e){i=!0,s=e}finally{try{!a&&c.return&&c.return()}finally{if(i)throw s}}return r}function u(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=(t=[]).concat.apply(t,r),i={},s=Object.keys(e),l=!0,c=!1,u=void 0;try{for(var p,f=s[Symbol.iterator]();!(l=(p=f.next()).done);l=!0){var d=p.value;-1===a.indexOf(d)&&(i[d]=e[d])}}catch(e){c=!0,u=e}finally{try{!l&&f.return&&f.return()}finally{if(c)throw u}}return i}function p(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: "+this.constructor.displayName+" player could not call %c"+e+"%c \u2013 ";return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return(t=this.player)[e].apply(t,o)}function f(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":h(e))}function d(e,t){if("function"===typeof e&&"function"===typeof t)return!0;if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;n!==e.length;n++)if(!d(e[n],t[n]))return!1;return!0}if(f(e)&&f(t)){var r=!0,o=!1,a=void 0;try{for(var i,s=Object.keys(e)[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;if(!d(e[l],t[l]))return!1}}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return!0}return e===t}Object.defineProperty(t,"__esModule",{value:!0});var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.parseStartTime=a,t.randomString=s,t.getSDK=l,t.getConfig=c,t.omit=u,t.callPlayer=p,t.isObject=f,t.isEqual=d;var y=n(183),v=r(y),g=n(184),b=r(g),w=n(29),E=/[?&#](?:start|t)=([0-9hms]+)/,O=/(\d+)(h|m|s)/g,T=/^\d+$/},function(e,t,n){"use strict";var r=n(110),o=(n(42),n(112));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return o.a})},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function o(e){document.body.style.paddingRight=e>0?e+"px":null}function a(){return document.body.clientWidth<window.innerWidth}function i(){return parseInt(window.getComputedStyle(document.body,null).getPropertyValue("padding-right")||0,10)}function s(){var e=r(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;a()&&o(n+e)}function l(e,t){return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}function c(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function u(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o=void 0,a={};r>0;)r-=1,o=n[r],a[o]=e[o];return a}function p(e){U[e]||("undefined"!==typeof console&&console.error(e),U[e]=!0)}function f(e,t){return function(n,r,o){null!==n[r]&&"undefined"!==typeof n[r]&&p('"'+r+'" property of "'+o+'" has been deprecated.\n'+t);for(var a=arguments.length,i=Array(a>3?a-3:0),s=3;s<a;s++)i[s-3]=arguments[s];return e.apply(void 0,[n,r,o].concat(i))}}function d(e,t,n){if(!(e[t]instanceof Element))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}function h(e){if(j()(e))return e();if("string"===typeof e&&document){var t=document.querySelector(e);if(null===t&&(t=document.querySelector("#"+e)),null===t)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function m(e){return p('The "NavDropdown" component has been deprecated.\nPlease use component "Dropdown" with nav prop.'),C.a.createElement(Re,G({nav:!0},e))}function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e,t){return t={exports:{}},e(t,t.exports),t.exports}function g(e){var t=e.tag,n=e.baseClass,r=e.baseClassActive,o=e.className,a=e.cssModule,i=e.children,s=X(e,["tag","baseClass","baseClassActive","className","cssModule","children"]),p=u(s,H),f=c(s,H);return C.a.createElement(yt,p,function(e){var s="entered"===e,c=l(S()(o,n,s&&r),a);return C.a.createElement(t,G({className:c},f),i)})}function b(){}function w(e,t){var n=e.className,r=e.cssModule,o=e.tabId,a=e.tag,i=X(e,["className","cssModule","tabId","tag"]),s=l(S()("tab-pane",n,{active:o===t.activeTabId}),r);return C.a.createElement(a,G({},i,{className:s}))}function E(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,o=e.cssModule,a=e.tag,i=e.color,s=e.isOpen,c=e.toggle,u=e.children,p=e.transition,f=X(e,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition"]),d=l(S()(t,"alert","alert-"+i,{"alert-dismissible":c}),o),h=l(S()("close",n),o);return C.a.createElement(g,G({},f,p,{tag:a,className:d,in:s,role:"alert"}),c?C.a.createElement("button",{type:"button",className:h,"aria-label":r,onClick:c},C.a.createElement("span",{"aria-hidden":"true"},"\xd7")):null,u)}function O(e){return ao[e]||"collapse"}function T(e){return e.scrollHeight}n.d(t,"a",function(){return E}),n.d(t,"i",function(){return te}),n.d(t,"l",function(){return oe}),n.d(t,"h",function(){return pe}),n.d(t,"b",function(){return Et}),n.d(t,"c",function(){return kt}),n.d(t,"d",function(){return It}),n.d(t,"e",function(){return ln}),n.d(t,"f",function(){return pn}),n.d(t,"g",function(){return hn}),n.d(t,"m",function(){return Zn}),n.d(t,"j",function(){return ar}),n.d(t,"k",function(){return pr});var k=n(0),C=n.n(k),x=n(1),P=n.n(x),_=n(161),S=n.n(_),N=n(162),j=n.n(N),M=n(163),A=n.n(M),R=n(32),D=n.n(R),I=n(164),L=(n.n(I),n(170)),z=n.n(L),U={},F={Fade:150,Collapse:350,Modal:300,Carousel:600},H=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],B={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},V={esc:27,space:32,tab:9,up:38,down:40},W=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Y=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},X=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Q=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},Z={tag:P.a.oneOfType([P.a.func,P.a.string]),fluid:P.a.bool,className:P.a.string,cssModule:P.a.object},ee={tag:"div"},te=function(e){var t=e.className,n=e.cssModule,r=e.fluid,o=e.tag,a=X(e,["className","cssModule","fluid","tag"]),i=l(S()(t,r?"container-fluid":"container"),n);return C.a.createElement(o,G({},a,{className:i}))};te.propTypes=Z,te.defaultProps=ee;var ne={tag:P.a.oneOfType([P.a.func,P.a.string]),noGutters:P.a.bool,className:P.a.string,cssModule:P.a.object},re={tag:"div"},oe=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,o=e.tag,a=X(e,["className","cssModule","noGutters","tag"]),i=l(S()(t,r?"no-gutters":null,"row"),n);return C.a.createElement(o,G({},a,{className:i}))};oe.propTypes=ne,oe.defaultProps=re;var ae=["xs","sm","md","lg","xl"],ie=P.a.oneOfType([P.a.number,P.a.string]),se=P.a.oneOfType([P.a.bool,P.a.number,P.a.string,P.a.shape({size:P.a.oneOfType([P.a.bool,P.a.number,P.a.string]),push:ie,pull:ie,offset:ie})]),le={tag:P.a.oneOfType([P.a.func,P.a.string]),xs:se,sm:se,md:se,lg:se,xl:se,className:P.a.string,cssModule:P.a.object,widths:P.a.array},ce={tag:"div",widths:ae},ue=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},pe=function(e){var t=e.className,n=e.cssModule,r=e.widths,o=e.tag,a=X(e,["className","cssModule","widths","tag"]),i=[];r.forEach(function(t,r){var o=e[t];if(r||void 0!==o||(o=!0),delete a[t],o||""===o){var s=!r,c=void 0;if(A()(o)){var u,p=s?"-":"-"+t+"-";c=ue(s,t,o.size),i.push(l(S()((u={},Y(u,c,o.size||""===o.size),Y(u,"push"+p+o.push,o.push||0===o.push),Y(u,"pull"+p+o.pull,o.pull||0===o.pull),Y(u,"offset"+p+o.offset,o.offset||0===o.offset),u))),n)}else c=ue(s,t,o),i.push(c)}});var s=l(S()(t,i),n);return C.a.createElement(o,G({},a,{className:s}))};pe.propTypes=le,pe.defaultProps=ce;var fe={light:P.a.bool,dark:P.a.bool,inverse:f(P.a.bool,'Please use the prop "dark"'),full:P.a.bool,fixed:P.a.string,sticky:P.a.string,color:P.a.string,role:P.a.string,tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object,toggleable:f(P.a.oneOfType([P.a.bool,P.a.string]),'Please use the prop "expand"'),expand:P.a.oneOfType([P.a.bool,P.a.string])},de={tag:"nav",expand:!1},he=function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-"+e)},me={xs:"sm",sm:"md",md:"lg",lg:"xl"},ye=function(e){return void 0!==e&&"xl"!==e&&(!1===e?"navbar-expand":"navbar-expand-"+(!0===e?"sm":me[e]||e))},ve=function(e){var t,n=e.toggleable,r=e.expand,o=e.className,a=e.cssModule,i=e.light,s=e.dark,c=e.inverse,u=e.fixed,p=e.sticky,f=e.color,d=e.tag,h=X(e,["toggleable","expand","className","cssModule","light","dark","inverse","fixed","sticky","color","tag"]),m=l(S()(o,"navbar",he(r)||ye(n),(t={"navbar-light":i,"navbar-dark":c||s},Y(t,"bg-"+f,f),Y(t,"fixed-"+u,u),Y(t,"sticky-"+p,p),t)),a);return C.a.createElement(d,G({},h,{className:m}))};ve.propTypes=fe,ve.defaultProps=de;var ge={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},be={tag:"a"},we=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"navbar-brand"),n);return C.a.createElement(r,G({},o,{className:a}))};we.propTypes=ge,we.defaultProps=be;var Ee={tag:P.a.oneOfType([P.a.func,P.a.string]),type:P.a.string,className:P.a.string,cssModule:P.a.object,children:P.a.node},Oe={tag:"button",type:"button"},Te=function(e){var t=e.className,n=e.cssModule,r=e.children,o=e.tag,a=X(e,["className","cssModule","children","tag"]),i=l(S()(t,"navbar-toggler"),n);return C.a.createElement(o,G({},a,{className:i}),r||C.a.createElement("span",{className:l("navbar-toggler-icon",n)}))};Te.propTypes=Ee,Te.defaultProps=Oe;var ke={tabs:P.a.bool,pills:P.a.bool,vertical:P.a.oneOfType([P.a.bool,P.a.string]),horizontal:P.a.string,justified:P.a.bool,fill:P.a.bool,navbar:P.a.bool,card:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Ce={tag:"ul",vertical:!1},xe=function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")},Pe=function(e){var t=e.className,n=e.cssModule,r=e.tabs,o=e.pills,a=e.vertical,i=e.horizontal,s=e.justified,c=e.fill,u=e.navbar,p=e.card,f=e.tag,d=X(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),h=l(S()(t,u?"navbar-nav":"nav",!!i&&"justify-content-"+i,xe(a),{"nav-tabs":r,"card-header-tabs":p&&r,"nav-pills":o,"card-header-pills":p&&o,"nav-justified":s,"nav-fill":c}),n);return C.a.createElement(f,G({},d,{className:h}))};Pe.propTypes=ke,Pe.defaultProps=Ce;var _e={tag:P.a.oneOfType([P.a.func,P.a.string]),active:P.a.bool,className:P.a.string,cssModule:P.a.object},Se={tag:"li"},Ne=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=X(e,["className","cssModule","active","tag"]),i=l(S()(t,"nav-item",!!r&&"active"),n);return C.a.createElement(o,G({},a,{className:i}))};Ne.propTypes=_e,Ne.defaultProps=Se;var je={disabled:P.a.bool,dropup:P.a.bool,group:P.a.bool,isOpen:P.a.bool,nav:P.a.bool,size:P.a.string,tag:P.a.string,toggle:P.a.func,children:P.a.node,className:P.a.string,cssModule:P.a.object},Me={isOpen:!1,dropup:!1,nav:!1},Ae={toggle:P.a.func.isRequired,isOpen:P.a.bool.isRequired,dropup:P.a.bool.isRequired},Re=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addEvents=n.addEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.removeEvents=n.removeEvents.bind(n),n.toggle=n.toggle.bind(n),n}return J(t,e),$(t,[{key:"getChildContext",value:function(){return{toggle:this.props.toggle,isOpen:this.props.isOpen,dropup:this.props.dropup}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return D.a.findDOMNode(this)}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===V.tab)){var t=this.getContainer();(!t.contains(e.target)||t===e.target||"keyup"===e.type&&e.which!==V.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){if(!(-1===[V.esc,V.up,V.down,V.space].indexOf(e.which)||/button/i.test(e.target.tagName)&&e.which===V.space||/input|textarea/i.test(e.target.tagName))&&(e.preventDefault(),!this.props.disabled)){var t=this.getContainer();if(e.which===V.space&&this.props.isOpen&&t!==e.target&&e.target.click(),e.which===V.esc||!this.props.isOpen)return this.toggle(e),void t.querySelector("[aria-expanded]").focus();var n=l("dropdown-menu",this.props.cssModule),r=l("dropdown-item",this.props.cssModule),o=l("disabled",this.props.cssModule),a=t.querySelectorAll("."+n+" ."+r+":not(."+o+")");if(a.length){for(var i=-1,s=0;s<a.length;s+=1)if(a[s]===e.target){i=s;break}e.which===V.up&&i>0&&(i-=1),e.which===V.down&&i<a.length-1&&(i+=1),i<0&&(i=0),a[i].focus()}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t=c(this.props,["toggle","disabled"]),n=t.className,r=t.cssModule,o=t.dropup,a=t.isOpen,i=t.group,s=t.size,u=t.nav,p=X(t,["className","cssModule","dropup","isOpen","group","size","nav"]);p.tag=p.tag||(u?"li":"div");var f=l(S()(n,(e={"btn-group":i},Y(e,"btn-group-"+s,!!s),Y(e,"dropdown",!i),Y(e,"show",a),Y(e,"dropup",o),Y(e,"nav-item",u),e)),r);return C.a.createElement(I.Manager,G({},p,{className:f,onKeyDown:this.handleKeyDown}))}}]),t}(C.a.Component);Re.propTypes=je,Re.defaultProps=Me,Re.childContextTypes=Ae;var De={tag:P.a.oneOfType([P.a.func,P.a.string]),innerRef:P.a.oneOfType([P.a.func,P.a.string]),disabled:P.a.bool,active:P.a.bool,className:P.a.string,cssModule:P.a.object,onClick:P.a.func,href:P.a.any},Ie={tag:"a"},Le=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return J(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();"#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=e.innerRef,i=X(e,["className","cssModule","active","tag","innerRef"]),s=l(S()(t,"nav-link",{disabled:i.disabled,active:r}),n);return C.a.createElement(o,G({},i,{ref:a,onClick:this.onClick,className:s}))}}]),t}(C.a.Component);Le.propTypes=De,Le.defaultProps=Ie;var ze={tag:P.a.string,className:P.a.string,cssModule:P.a.object},Ue={tag:"ol"},Fe=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"breadcrumb"),n);return C.a.createElement(r,G({},o,{className:a}))};Fe.propTypes=ze,Fe.defaultProps=Ue;var He={tag:P.a.oneOfType([P.a.func,P.a.string]),active:P.a.bool,className:P.a.string,cssModule:P.a.object},Be={tag:"li"},Ve=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=X(e,["className","cssModule","active","tag"]),i=l(S()(t,!!r&&"active","breadcrumb-item"),n);return C.a.createElement(o,G({},a,{className:i}))};Ve.propTypes=He,Ve.defaultProps=Be;var We={active:P.a.bool,block:P.a.bool,color:P.a.string,disabled:P.a.bool,outline:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),innerRef:P.a.oneOfType([P.a.func,P.a.string]),onClick:P.a.func,size:P.a.string,children:P.a.node,className:P.a.string,cssModule:P.a.object},qe={color:"secondary",tag:"button"},Ke=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return J(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.block,r=e.className,o=e.cssModule,a=e.color,i=e.outline,s=e.size,c=e.tag,u=e.innerRef,p=X(e,["active","block","className","cssModule","color","outline","size","tag","innerRef"]),f=l(S()(r,"btn","btn"+(i?"-outline":"")+"-"+a,!!s&&"btn-"+s,!!n&&"btn-block",{active:t,disabled:this.props.disabled}),o);return p.href&&"button"===c&&(c="a"),C.a.createElement(c,G({type:"button"===c&&p.onClick?"button":void 0},p,{className:f,ref:u,onClick:this.onClick}))}}]),t}(C.a.Component);Ke.propTypes=We,Ke.defaultProps=qe;var $e={children:P.a.node},Ye=function(e){return C.a.createElement(Re,G({group:!0},e))};Ye.propTypes=$e;var Ge={tag:P.a.oneOfType([P.a.func,P.a.string]),"aria-label":P.a.string,className:P.a.string,cssModule:P.a.object,role:P.a.string,size:P.a.string,vertical:P.a.bool},Je={tag:"div",role:"group"},Xe=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.vertical,a=e.tag,i=X(e,["className","cssModule","size","vertical","tag"]),s=l(S()(t,!!r&&"btn-group-"+r,o?"btn-group-vertical":"btn-group"),n);return C.a.createElement(a,G({},i,{className:s}))};Xe.propTypes=Ge,Xe.defaultProps=Je;var Qe={tag:P.a.oneOfType([P.a.func,P.a.string]),"aria-label":P.a.string,className:P.a.string,cssModule:P.a.object,role:P.a.string},Ze={tag:"div",role:"toolbar"},et=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"btn-toolbar"),n);return C.a.createElement(r,G({},o,{className:a}))};et.propTypes=Qe,et.defaultProps=Ze;var tt={children:P.a.node,active:P.a.bool,disabled:P.a.bool,divider:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),header:P.a.bool,onClick:P.a.func,className:P.a.string,cssModule:P.a.object,toggle:P.a.bool},nt={toggle:P.a.func},rt={tag:"button",toggle:!0},ot=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n.getTabIndex=n.getTabIndex.bind(n),n}return J(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled||this.props.header||this.props.divider)return void e.preventDefault();this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e)}},{key:"getTabIndex",value:function(){return this.props.disabled||this.props.header||this.props.divider?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=c(this.props,["toggle"]),n=t.className,r=t.cssModule,o=t.divider,a=t.tag,i=t.header,s=t.active,u=X(t,["className","cssModule","divider","tag","header","active"]),p=l(S()(n,{disabled:u.disabled,"dropdown-item":!o&&!i,active:s,"dropdown-header":i,"dropdown-divider":o}),r);return"button"===a&&(i?a="h6":o?a="div":u.href&&(a="a")),C.a.createElement(a,G({type:"button"===a&&(u.onClick||this.props.toggle)?"button":void 0},u,{tabIndex:e,className:p,onClick:this.onClick}))}}]),t}(C.a.Component);ot.propTypes=tt,ot.defaultProps=rt,ot.contextTypes=nt;var at={tag:P.a.string,children:P.a.node.isRequired,right:P.a.bool,flip:P.a.bool,className:P.a.string,cssModule:P.a.object},it={tag:"div",flip:!0},st={isOpen:P.a.bool.isRequired,dropup:P.a.bool.isRequired},lt={flip:{enabled:!1}},ct=function(e,t){var n=e.className,r=e.cssModule,o=e.right,a=e.tag,i=e.flip,s=X(e,["className","cssModule","right","tag","flip"]),c=l(S()(n,"dropdown-menu",{"dropdown-menu-right":o,show:t.isOpen}),r),u=a;if(t.isOpen){u=I.Popper;var p=t.dropup?"top":"bottom",f=o?"end":"start";s.placement=p+"-"+f,s.component=a,s.modifiers=i?void 0:lt}return C.a.createElement(u,G({tabIndex:"-1",role:"menu"},s,{"aria-hidden":!t.isOpen,className:c}))};ct.propTypes=at,ct.defaultProps=it,ct.contextTypes=st;var ut={caret:P.a.bool,color:P.a.string,children:P.a.node,className:P.a.string,cssModule:P.a.object,disabled:P.a.bool,onClick:P.a.func,"aria-haspopup":P.a.bool,split:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),nav:P.a.bool},pt={"aria-haspopup":!0,color:"secondary"},ft={isOpen:P.a.bool.isRequired,toggle:P.a.func.isRequired},dt=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return J(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.color,r=e.cssModule,o=e.caret,a=e.split,i=e.nav,s=e.tag,c=X(e,["className","color","cssModule","caret","split","nav","tag"]),u=c["aria-label"]||"Toggle Dropdown",p=l(S()(t,{"dropdown-toggle":o||a,"dropdown-toggle-split":a,"nav-link":i}),r),f=c.children||C.a.createElement("span",{className:"sr-only"},u),d=void 0;return i&&!s?(d="a",c.href="#"):s?d=s:(d=Ke,c.color=n,c.cssModule=r),C.a.createElement(I.Target,G({},c,{className:p,component:d,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:f}))}}]),t}(C.a.Component);dt.propTypes=ut,dt.defaultProps=pt,dt.contextTypes=ft;var ht=v(function(e,t){function n(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" 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 e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=n;var r=function(e){return e&&e.__esModule?e:{default:e}}(P.a);t.timeoutsShape=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]),t.classNamesShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,exit:r.default.string,exitActive:r.default.string})])});y(ht);var mt=v(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":q(t))&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":q(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){}t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(P.a),c=n(C.a),u=n(D.a),p=t.UNMOUNTED="unmounted",f=t.EXITED="exited",d=t.ENTERING="entering",h=t.ENTERED="entered",m=t.EXITING="exiting",y=function(e){function t(n,r){o(this,t);var i=a(this,e.call(this,n,r)),s=r.transitionGroup,l=s&&!s.isMounting?n.enter:n.appear,c=void 0;return i.nextStatus=null,n.in?l?(c=f,i.nextStatus=d):c=h:c=n.unmountOnExit||n.mountOnEnter?p:f,i.state={status:c},i.nextCallback=null,i}return i(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=this.pendingState||this.state,n=t.status;e.in?(n===p&&this.setState({status:f}),n!==d&&n!==h&&(this.nextStatus=d)):n!==d&&n!==h||(this.nextStatus=m)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!==typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=u.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:p})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:d},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,o)})})})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:f},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:m},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(e)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,n=t.children,o=r(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"===typeof n)return n(e,o);var a=c.default.Children.only(n);return c.default.cloneElement(a,o)},t}(c.default.Component);y.contextTypes={transitionGroup:l.object},y.childContextTypes={transitionGroup:function(){}},y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},y.UNMOUNTED=0,y.EXITED=1,y.ENTERING=2,y.ENTERED=3,y.EXITING=4,t.default=y}),yt=y(mt),vt=G({},yt.propTypes,{children:P.a.oneOfType([P.a.arrayOf(P.a.node),P.a.node]),tag:P.a.oneOfType([P.a.string,P.a.func]),baseClass:P.a.string,baseClassActive:P.a.string,className:P.a.string,cssModule:P.a.object}),gt=G({},yt.defaultProps,{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:F.Fade,appear:!0,enter:!0,exit:!0,in:!0});g.propTypes=vt,g.defaultProps=gt;var bt={color:P.a.string,pill:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),children:P.a.node,className:P.a.string,cssModule:P.a.object},wt={color:"secondary",pill:!1,tag:"span"},Et=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.pill,a=e.tag,i=X(e,["className","cssModule","color","pill","tag"]),s=l(S()(t,"badge","badge-"+r,!!o&&"badge-pill"),n);return i.href&&"span"===a&&(a="a"),C.a.createElement(a,G({},i,{className:s}))};Et.propTypes=bt,Et.defaultProps=wt;var Ot={tag:P.a.oneOfType([P.a.func,P.a.string]),inverse:P.a.bool,color:P.a.string,block:f(P.a.bool,'Please use the props "body"'),body:P.a.bool,outline:P.a.bool,className:P.a.string,cssModule:P.a.object},Tt={tag:"div"},kt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.block,a=e.body,i=e.inverse,s=e.outline,c=e.tag,u=X(e,["className","cssModule","color","block","body","inverse","outline","tag"]),p=l(S()(t,"card",!!i&&"text-white",!(!o&&!a)&&"card-body",!!r&&(s?"border":"bg")+"-"+r),n);return C.a.createElement(c,G({},u,{className:p}))};kt.propTypes=Ot,kt.defaultProps=Tt;var Ct={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},xt={tag:"div"},Pt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-group"),n);return C.a.createElement(r,G({},o,{className:a}))};Pt.propTypes=Ct,Pt.defaultProps=xt;var _t={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},St={tag:"div"},Nt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-deck"),n);return C.a.createElement(r,G({},o,{className:a}))};Nt.propTypes=_t,Nt.defaultProps=St;var jt={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Mt={tag:"div"},At=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-columns"),n);return C.a.createElement(r,G({},o,{className:a}))};At.propTypes=jt,At.defaultProps=Mt;var Rt={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Dt={tag:"div"},It=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-body"),n);return C.a.createElement(r,G({},o,{className:a}))};It.propTypes=Rt,It.defaultProps=Dt;var Lt={tag:P.a.oneOfType([P.a.func,P.a.string]),innerRef:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},zt={tag:"a"},Ut=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.innerRef,a=X(e,["className","cssModule","tag","innerRef"]),i=l(S()(t,"card-link"),n);return C.a.createElement(r,G({},a,{ref:o,className:i}))};Ut.propTypes=Lt,Ut.defaultProps=zt;var Ft={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Ht={tag:"div"},Bt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-footer"),n);return C.a.createElement(r,G({},o,{className:a}))};Bt.propTypes=Ft,Bt.defaultProps=Ht;var Vt={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Wt={tag:"div"},qt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-header"),n);return C.a.createElement(r,G({},o,{className:a}))};qt.propTypes=Vt,qt.defaultProps=Wt;var Kt={tag:P.a.oneOfType([P.a.func,P.a.string]),top:P.a.bool,bottom:P.a.bool,className:P.a.string,cssModule:P.a.object},$t={tag:"img"},Yt=function(e){var t=e.className,n=e.cssModule,r=e.top,o=e.bottom,a=e.tag,i=X(e,["className","cssModule","top","bottom","tag"]),s="card-img";r&&(s="card-img-top"),o&&(s="card-img-bottom");var c=l(S()(t,s),n);return C.a.createElement(a,G({},i,{className:c}))};Yt.propTypes=Kt,Yt.defaultProps=$t;var Gt={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Jt={tag:"div"},Xt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-img-overlay"),n);return C.a.createElement(r,G({},o,{className:a}))};Xt.propTypes=Gt,Xt.defaultProps=Jt;var Qt=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,o=e.className,a=l(S()(o,"carousel-caption","d-none","d-md-block"),r);return C.a.createElement("div",{className:a},C.a.createElement("h3",null,t),C.a.createElement("p",null,n))};Qt.propTypes={captionHeader:P.a.string,captionText:P.a.string.isRequired,cssModule:P.a.object,className:P.a.string};var Zt=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={startAnimation:!1},n.onEnter=n.onEnter.bind(n),n.onEntering=n.onEntering.bind(n),n.onExit=n.onExit.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return J(t,e),$(t,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.altText,o=t.in,a=t.children,i=t.cssModule,s=t.slide,c=t.tag,u=t.className,p=X(t,["src","altText","in","children","cssModule","slide","tag","className"]),f=l(S()(u,"d-block","img-fluid"),i);return C.a.createElement(yt,G({},p,{enter:s,exit:s,in:o,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var o=e.context.direction,s=t===B.ENTERED||t===B.EXITING,u=(t===B.ENTERING||t===B.EXITING)&&e.state.startAnimation&&("right"===o?"carousel-item-left":"carousel-item-right"),p=t===B.ENTERING&&("right"===o?"carousel-item-next":"carousel-item-prev"),d=l(S()("carousel-item",s&&"active",u,p),i);return C.a.createElement("div",{className:d},C.a.createElement(c,{className:f,src:n,alt:r}),a)})}}]),t}(C.a.Component);Zt.propTypes=G({},yt.propTypes,{tag:P.a.oneOfType([P.a.func,P.a.string]),in:P.a.bool,src:P.a.string,altText:P.a.string,cssModule:P.a.object,children:P.a.shape({type:P.a.oneOf([Qt])}),slide:P.a.bool,className:P.a.string}),Zt.defaultProps=G({},yt.defaultProps,{tag:"img",timeout:F.Carousel,slide:!0}),Zt.contextTypes={direction:P.a.string};var en=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyPress=n.handleKeyPress.bind(n),n.renderItems=n.renderItems.bind(n),n.hoverStart=n.hoverStart.bind(n),n.hoverEnd=n.hoverEnd.bind(n),n.state={direction:"right"},n}return J(t,e),$(t,[{key:"getChildContext",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentWillReceiveProps",value:function(e){this.setInterval(e),this.props.activeIndex+1===e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex-1===e.activeIndex?this.setState({direction:"left"}):this.props.activeIndex>e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex!==e.activeIndex&&this.setState({direction:"left"})}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval(function(){e.next()},parseInt(e.interval,10)))})},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){clearInterval(this.cycleInterval)})},{key:"hoverStart",value:function(){if("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter){var e;(e=this.props).mouseEnter.apply(e,arguments)}}},{key:"hoverEnd",value:function(){if("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave){var e;(e=this.props).mouseLeave.apply(e,arguments)}}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return C.a.createElement("div",{role:"listbox",className:t},e.map(function(e,t){var o=t===n.props.activeIndex;return C.a.cloneElement(e,{in:o,slide:r})}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.cssModule,r=e.slide,o=e.className,a=l(S()(o,"carousel",r&&"slide"),n),i=l(S()("carousel-inner"),n);if(t.every(function(e){return e.type===Zt}))return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(t,i));if(t[0]instanceof Array){var s=t[0],c=t[1],u=t[2];return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(s,i),c,u)}var p=t[0],f=t[1],d=t[2],h=t[3];return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},p,this.renderItems(f,i),d,h)}}]),t}(C.a.Component);en.propTypes={activeIndex:P.a.number,next:P.a.func.isRequired,previous:P.a.func.isRequired,keyboard:P.a.bool,pause:P.a.oneOf(["hover",!1]),ride:P.a.oneOf(["carousel"]),interval:P.a.oneOfType([P.a.number,P.a.string,P.a.bool]),children:P.a.array,mouseEnter:P.a.func,mouseLeave:P.a.func,slide:P.a.bool,cssModule:P.a.object,className:P.a.string},en.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0},en.childContextTypes={direction:P.a.string};var tn=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,o=e.directionText,a=e.className,i=l(S()(a,"carousel-control-"+t),r),s=l(S()("carousel-control-"+t+"-icon"),r),c=l(S()("sr-only"),r);return C.a.createElement("a",{className:i,role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},C.a.createElement("span",{className:s,"aria-hidden":"true"}),C.a.createElement("span",{className:c},o||t))};tn.propTypes={direction:P.a.oneOf(["prev","next"]).isRequired,onClickHandler:P.a.func.isRequired,cssModule:P.a.object,directionText:P.a.string,className:P.a.string};var nn=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,o=e.onClickHandler,a=e.className,i=l(S()(a,"carousel-indicators",r)),s=t.map(function(e,t){var a=l(S()({active:n===t}),r);return C.a.createElement("li",{key:""+(e.key||e.src)+e.caption+e.altText,onClick:function(e){e.preventDefault(),o(t)},className:a})});return C.a.createElement("ol",{className:i},s)};nn.propTypes={items:P.a.array.isRequired,activeIndex:P.a.number.isRequired,cssModule:P.a.object,onClickHandler:P.a.func.isRequired,className:P.a.string};var rn={items:P.a.array.isRequired,indicators:P.a.bool,controls:P.a.bool,autoPlay:P.a.bool,activeIndex:P.a.number,next:P.a.func,previous:P.a.func,goToIndex:P.a.func},on=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.animating=!1,n.state={activeIndex:0},n.next=n.next.bind(n),n.previous=n.previous.bind(n),n.goToIndex=n.goToIndex.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return J(t,e),$(t,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.indicators,o=t.controls,a=t.items,i=t.goToIndex,s=X(t,["autoPlay","indicators","controls","items","goToIndex"]),l=this.state.activeIndex,c=a.map(function(t){return C.a.createElement(Zt,{onExiting:e.onExiting,onExited:e.onExited,key:t.src,src:t.src,altText:t.altText},C.a.createElement(Qt,{captionText:t.caption,captionHeader:t.caption}))});return C.a.createElement(en,G({activeIndex:l,next:this.next,previous:this.previous,ride:n?"carousel":void 0},s),r&&C.a.createElement(nn,{items:a,activeIndex:s.activeIndex||l,onClickHandler:i||this.goToIndex}),c,o&&C.a.createElement(tn,{direction:"prev",directionText:"Previous",onClickHandler:s.previous||this.previous}),o&&C.a.createElement(tn,{direction:"next",directionText:"Next",onClickHandler:s.next||this.next}))}}]),t}(k.Component);on.propTypes=rn,on.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var an={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},sn={tag:"h6"},ln=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-subtitle"),n);return C.a.createElement(r,G({},o,{className:a}))};ln.propTypes=an,ln.defaultProps=sn;var cn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},un={tag:"p"},pn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-text"),n);return C.a.createElement(r,G({},o,{className:a}))};pn.propTypes=cn,pn.defaultProps=un;var fn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},dn={tag:"h4"},hn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"card-title"),n);return C.a.createElement(r,G({},o,{className:a}))};hn.propTypes=fn,hn.defaultProps=dn;var mn={children:P.a.node.isRequired,className:P.a.string,placement:P.a.string,placementPrefix:P.a.string,tag:P.a.string,isOpen:P.a.bool.isRequired,cssModule:P.a.object,offset:P.a.oneOfType([P.a.string,P.a.number]),fallbackPlacement:P.a.oneOfType([P.a.string,P.a.array]),flip:P.a.bool,container:P.a.oneOfType([P.a.string,P.a.func,d]),target:P.a.oneOfType([P.a.string,P.a.func,d]).isRequired},yn={placement:"auto",isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body"},vn={popperManager:P.a.object.isRequired},gn=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handlePlacementChange=n.handlePlacementChange.bind(n),n.setTargetNode=n.setTargetNode.bind(n),n.getTargetNode=n.getTargetNode.bind(n),n.state={},n}return J(t,e),$(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this.setTargetNode,getTargetNode:this.getTargetNode}}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen?this.handleProps():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.hide()}},{key:"setTargetNode",value:function(e){this.targetNode=e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return h(this.props.container)}},{key:"handlePlacementChange",value:function(e){return this.state.placement!==e.placement&&this.setState({placement:e.placement}),e}},{key:"handleProps",value:function(){"inline"!==this.props.container&&(this.props.isOpen?this.show():this.hide())}},{key:"hide",value:function(){this._element&&(this.getContainerNode().removeChild(this._element),D.a.unmountComponentAtNode(this._element),this._element=null)}},{key:"show",value:function(){this._element=document.createElement("div"),this.getContainerNode().appendChild(this._element),this.renderIntoSubtree(),this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"renderIntoSubtree",value:function(){D.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element)}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=(e.isOpen,e.flip),o=(e.target,e.offset),a=e.fallbackPlacement,i=e.placementPrefix,s=e.className,c=e.tag,u=(e.container,X(e,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","className","tag","container"])),p=l("arrow",t),f=(this.state.placement||u.placement).split("-")[0],d=l(S()(s,i?i+"-"+f:f),this.props.cssModule),h={offset:{offset:o},flip:{enabled:r,behavior:a},update:{enabled:!0,order:950,fn:this.handlePlacementChange}};return C.a.createElement(I.Popper,G({modifiers:h},u,{component:c,className:d}),n,C.a.createElement(I.Arrow,{className:p}))}},{key:"render",value:function(){return this.setTargetNode(h(this.props.target)),"inline"===this.props.container&&this.props.isOpen?this.renderChildren():null}}]),t}(C.a.Component);gn.propTypes=mn,gn.defaultProps=yn,gn.childContextTypes=vn;var bn=function(e,t){return t.popperManager.setTargetNode(h(e.target)),null};bn.contextTypes={popperManager:P.a.object.isRequired},bn.propTypes={target:P.a.oneOfType([P.a.string,P.a.func,d]).isRequired};var wn={placement:P.a.oneOf(W),target:P.a.oneOfType([P.a.string,P.a.func,d]).isRequired,container:P.a.oneOfType([P.a.string,P.a.func,d]),isOpen:P.a.bool,disabled:P.a.bool,className:P.a.string,innerClassName:P.a.string,placementPrefix:P.a.string,cssModule:P.a.object,toggle:P.a.func,delay:P.a.oneOfType([P.a.shape({show:P.a.number,hide:P.a.number}),P.a.number])},En={show:0,hide:0},On={isOpen:!1,placement:"right",placementPrefix:"bs-popover",delay:En,toggle:function(){}},Tn=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.getRef=n.getRef.bind(n),n.toggle=n.toggle.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return J(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=h(this.props.target),this.handleProps()}},{key:"componentDidUpdate",value:function(){this.handleProps()}},{key:"componentWillUnmount",value:function(){this.clearShowTimeout(),this.clearHideTimeout(),this.removeTargetEvents()}},{key:"getRef",value:function(e){this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":q(t))?isNaN(t[e])?En[e]:t[e]:t}},{key:"handleProps",value:function(){this.props.isOpen?this.show():this.hide()}},{key:"show",value:function(){this.clearHideTimeout(),this.addTargetEvents(),this.props.isOpen||(this.clearShowTimeout(),this._showTimeout=setTimeout(this.toggle,this.getDelay("show")))}},{key:"hide",value:function(){this.clearShowTimeout(),this.removeTargetEvents(),this.props.isOpen&&(this.clearHideTimeout(),this._hideTimeout=setTimeout(this.toggle,this.getDelay("hide")))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){e.target===this._target||this._target.contains(e.target)||e.target===this._popover||this._popover&&this._popover.contains(e.target)||(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&this.toggle())}},{key:"addTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle()}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys(wn)),t=l(S()("popover-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("popover","show",this.props.className),this.props.cssModule);return C.a.createElement(gn,{className:n,target:this.props.target,isOpen:this.props.isOpen,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container},C.a.createElement("div",G({},e,{className:t,ref:this.getRef})))}}]),t}(C.a.Component);Tn.propTypes=wn,Tn.defaultProps=On;var kn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Cn={tag:"h3"},xn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"popover-header"),n);return C.a.createElement(r,G({},o,{className:a}))};xn.propTypes=kn,xn.defaultProps=Cn;var Pn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},_n={tag:"div"},Sn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"popover-body"),n);return C.a.createElement(r,G({},o,{className:a}))};Sn.propTypes=Pn,Sn.defaultProps=_n;var Nn={children:P.a.node,bar:P.a.bool,multi:P.a.bool,tag:P.a.string,value:P.a.oneOfType([P.a.string,P.a.number]),max:P.a.oneOfType([P.a.string,P.a.number]),animated:P.a.bool,striped:P.a.bool,color:P.a.string,className:P.a.string,barClassName:P.a.string,cssModule:P.a.object},jn={tag:"div",value:0,max:100},Mn=function(e){var t=e.children,n=e.className,r=e.barClassName,o=e.cssModule,a=e.value,i=e.max,s=e.animated,c=e.striped,u=e.color,p=e.bar,f=e.multi,d=e.tag,h=X(e,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),m=z()(a)/z()(i)*100,y=l(S()(n,"progress"),o),v=l(S()("progress-bar",p?n||r:r,s?"progress-bar-animated":null,u?"bg-"+u:null,c||s?"progress-bar-striped":null),o),g=f?t:C.a.createElement("div",{className:v,style:{width:m+"%"},role:"progressbar","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":i,children:t});return p?g:C.a.createElement(d,G({},h,{className:y,children:g}))};Mn.propTypes=Nn,Mn.defaultProps=jn;var An=P.a.shape(g.propTypes),Rn={isOpen:P.a.bool,autoFocus:P.a.bool,size:P.a.string,toggle:P.a.func,keyboard:P.a.bool,role:P.a.string,labelledBy:P.a.string,backdrop:P.a.oneOfType([P.a.bool,P.a.oneOf(["static"])]),onEnter:P.a.func,onExit:P.a.func,onOpened:P.a.func,onClosed:P.a.func,children:P.a.node,className:P.a.string,wrapClassName:P.a.string,modalClassName:P.a.string,backdropClassName:P.a.string,contentClassName:P.a.string,fade:P.a.bool,cssModule:P.a.object,zIndex:P.a.oneOfType([P.a.number,P.a.string]),backdropTransition:An,modalTransition:An},Dn=Object.keys(Rn),In={isOpen:!1,autoFocus:!0,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:b,onClosed:b,modalTransition:{timeout:F.Modal},backdropTransition:{mountOnEnter:!0,timeout:F.Fade}},Ln=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.originalBodyPadding=null,n.isBodyOverflowing=!1,n.togglePortal=n.togglePortal.bind(n),n.handleBackdropClick=n.handleBackdropClick.bind(n),n.handleEscape=n.handleEscape.bind(n),n.destroy=n.destroy.bind(n),n.onOpened=n.onOpened.bind(n),n.onClosed=n.onClosed.bind(n),n}return J(t,e),$(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.togglePortal(),this.props.onEnter&&this.props.onEnter()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen?this.togglePortal():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.destroy(),this.props.onExit&&this.props.onExit()}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||b)(e,t)}},{key:"onClosed",value:function(e){var t=this;setTimeout(function(){return t.destroy()},0),this.props.onClosed(),(this.props.modalTransition.onExited||b)(e)}},{key:"handleEscape",value:function(e){this.props.keyboard&&27===e.keyCode&&this.props.toggle&&this.props.toggle()}},{key:"handleBackdropClick",value:function(e){if(!0===this.props.backdrop){var t=this._dialog;e.target&&!t.contains(e.target)&&this.props.toggle&&this.props.toggle()}}},{key:"togglePortal",value:function(){this.props.isOpen?(this.props.autoFocus&&(this._focus=!0),this.show()):this.hide()}},{key:"destroy",value:function(){this._element&&(D.a.unmountComponentAtNode(this._element),document.body.removeChild(this._element),this._element=null);var e=document.body.className.replace(/(^| )modal-open( |$)/," ");document.body.className=l(S()(e).trim(),this.props.cssModule),o(this.originalBodyPadding)}},{key:"hide",value:function(){this.renderIntoSubtree()}},{key:"show",value:function(){if(this._dialog)return void this.props.toggle(!0);var e=document.body.className;this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this.originalBodyPadding=i(),s(),document.body.appendChild(this._element),document.body.className=l(S()(e,"modal-open"),this.props.cssModule),this.renderIntoSubtree()}},{key:"renderModalDialog",value:function(){var e=this,t=c(this.props,Dn);return C.a.createElement("div",G({className:l(S()("modal-dialog",this.props.className,Y({},"modal-"+this.props.size,this.props.size)),this.props.cssModule),role:"document",ref:function(t){e._dialog=t}},t),C.a.createElement("div",{className:l(S()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"renderIntoSubtree",value:function(){D.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element),this._focus&&(this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus(),this._focus=!1)}},{key:"renderChildren",value:function(){var e=this.props,t=e.wrapClassName,n=e.modalClassName,r=e.backdropClassName,o=e.cssModule,a=e.isOpen,i=e.backdrop,s=e.role,c=e.labelledBy,u={onClickCapture:this.handleBackdropClick,onKeyUp:this.handleEscape,style:{display:"block"},"aria-labelledby":c,role:s,tabIndex:"-1"},p=this.props.fade,f=G({},g.defaultProps,this.props.modalTransition,{baseClass:p?this.props.modalTransition.baseClass:"",timeout:p?this.props.modalTransition.timeout:0}),d=G({},g.defaultProps,this.props.backdropTransition,{baseClass:p?this.props.backdropTransition.baseClass:"",timeout:p?this.props.backdropTransition.timeout:0});return C.a.createElement("div",{className:l(t)},C.a.createElement(g,G({},u,f,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:l(S()("modal",n),o)}),this.renderModalDialog()),C.a.createElement(g,G({},d,{in:a&&!!i,cssModule:o,className:l(S()("modal-backdrop",r),o)})))}},{key:"render",value:function(){return null}}]),t}(C.a.Component);Ln.propTypes=Rn,Ln.defaultProps=In;var zn={tag:P.a.oneOfType([P.a.func,P.a.string]),wrapTag:P.a.oneOfType([P.a.func,P.a.string]),toggle:P.a.func,className:P.a.string,cssModule:P.a.object,children:P.a.node,closeAriaLabel:P.a.string},Un={tag:"h4",wrapTag:"div",closeAriaLabel:"Close"},Fn=function(e){var t=void 0,n=e.className,r=e.cssModule,o=e.children,a=e.toggle,i=e.tag,s=e.wrapTag,c=e.closeAriaLabel,u=X(e,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel"]),p=l(S()(n,"modal-header"),r);return a&&(t=C.a.createElement("button",{type:"button",onClick:a,className:l("close",r),"aria-label":c},C.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),C.a.createElement(s,G({},u,{className:p}),C.a.createElement(i,{className:l("modal-title",r)},o),t)};Fn.propTypes=zn,Fn.defaultProps=Un;var Hn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Bn={tag:"div"},Vn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"modal-body"),n);return C.a.createElement(r,G({},o,{className:a}))};Vn.propTypes=Hn,Vn.defaultProps=Bn;var Wn={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},qn={tag:"div"},Kn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"modal-footer"),n);return C.a.createElement(r,G({},o,{className:a}))};Kn.propTypes=Wn,Kn.defaultProps=qn;var $n={placement:P.a.oneOf(W),target:P.a.oneOfType([P.a.string,P.a.func,d]).isRequired,container:P.a.oneOfType([P.a.string,P.a.func,d]),isOpen:P.a.bool,disabled:P.a.bool,className:P.a.string,innerClassName:P.a.string,cssModule:P.a.object,toggle:P.a.func,autohide:P.a.bool,placementPrefix:P.a.string,delay:P.a.oneOfType([P.a.shape({show:P.a.number,hide:P.a.number}),P.a.number])},Yn={show:0,hide:250},Gn={isOpen:!1,placement:"top",placementPrefix:"bs-tooltip",delay:Yn,autohide:!0,toggle:function(){}},Jn=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.toggle=n.toggle.bind(n),n.onMouseOverTooltip=n.onMouseOverTooltip.bind(n),n.onMouseLeaveTooltip=n.onMouseLeaveTooltip.bind(n),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(n),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return J(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=h(this.props.target),this.addTargetEvents()}},{key:"componentWillUnmount",value:function(){this.removeTargetEvents()}},{key:"onMouseOverTooltip",value:function(){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show,this.getDelay("show"))}},{key:"onMouseLeaveTooltip",value:function(){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide"))}},{key:"onMouseOverTooltipContent",value:function(){this.props.autohide||this._hideTimeout&&this.clearHideTimeout()}},{key:"onMouseLeaveTooltipContent",value:function(){this.props.autohide||(this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide")))}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":q(t))?isNaN(t[e])?Yn[e]:t[e]:t}},{key:"show",value:function(){this.props.isOpen||(this.clearShowTimeout(),this.toggle())}},{key:"hide",value:function(){this.props.isOpen&&(this.clearHideTimeout(),this.toggle())}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){(e.target===this._target||this._target.contains(e.target))&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen||this.toggle())}},{key:"addTargetEvents",value:function(){var e=this;this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;this._target.removeEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.removeEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle()}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys($n)),t=l(S()("tooltip-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("tooltip","show",this.props.className),this.props.cssModule);return C.a.createElement(gn,{className:n,target:this.props.target,isOpen:this.props.isOpen,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container},C.a.createElement("div",G({},e,{className:t,onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent})))}}]),t}(C.a.Component);Jn.propTypes=$n,Jn.defaultProps=Gn;var Xn={className:P.a.string,cssModule:P.a.object,size:P.a.string,bordered:P.a.bool,striped:P.a.bool,inverse:P.a.bool,hover:P.a.bool,reflow:P.a.bool,responsive:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),responsiveTag:P.a.oneOfType([P.a.func,P.a.string])},Qn={tag:"table",responsiveTag:"div"},Zn=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.bordered,a=e.striped,i=e.inverse,s=e.hover,c=e.reflow,u=e.responsive,p=e.tag,f=e.responsiveTag,d=X(e,["className","cssModule","size","bordered","striped","inverse","hover","reflow","responsive","tag","responsiveTag"]),h=l(S()(t,"table",!!r&&"table-"+r,!!o&&"table-bordered",!!a&&"table-striped",!!i&&"table-inverse",!!s&&"table-hover",!!c&&"table-reflow"),n),m=C.a.createElement(p,G({},d,{className:h}));return u?C.a.createElement(f,{className:"table-responsive"},m):m};Zn.propTypes=Xn,Zn.defaultProps=Qn;var er={tag:P.a.oneOfType([P.a.func,P.a.string]),flush:P.a.bool,className:P.a.string,cssModule:P.a.object},tr={tag:"ul"},nr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.flush,a=X(e,["className","cssModule","tag","flush"]),i=l(S()(t,"list-group",!!o&&"list-group-flush"),n);return C.a.createElement(r,G({},a,{className:i}))};nr.propTypes=er,nr.defaultProps=tr;var rr={children:P.a.node,inline:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),innerRef:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},or={tag:"form"},ar=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.tag,a=e.innerRef,i=X(e,["className","cssModule","inline","tag","innerRef"]),s=l(S()(t,!!r&&"form-inline"),n);return C.a.createElement(o,G({},i,{ref:a,className:s}))};ar.propTypes=rr,ar.defaultProps=or;var ir={children:P.a.node,tag:P.a.string,className:P.a.string,cssModule:P.a.object},sr={tag:"div"},lr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"invalid-feedback"),n);return C.a.createElement(r,G({},o,{className:a}))};lr.propTypes=ir,lr.defaultProps=sr;var cr={children:P.a.node,row:P.a.bool,check:P.a.bool,inline:P.a.bool,disabled:P.a.bool,tag:P.a.string,className:P.a.string,cssModule:P.a.object},ur={tag:"div"},pr=function(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,a=e.check,i=e.inline,s=e.tag,c=X(e,["className","cssModule","row","disabled","check","inline","tag"]),u=l(S()(t,!!r&&"row",a?"form-check":"form-group",!(!a||!i)&&"form-check-inline",!(!a||!o)&&"disabled"),n);return C.a.createElement(s,G({},c,{className:u}))};pr.propTypes=cr,pr.defaultProps=ur;var fr={children:P.a.node,inline:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),color:P.a.string,className:P.a.string,cssModule:P.a.object},dr={tag:"small",color:"muted"},hr=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.color,a=e.tag,i=X(e,["className","cssModule","inline","color","tag"]),s=l(S()(t,!r&&"form-text",!!o&&"text-"+o),n);return C.a.createElement(a,G({},i,{className:s}))};hr.propTypes=fr,hr.defaultProps=dr;var mr={children:P.a.node,type:P.a.string,size:P.a.string,bsSize:P.a.string,state:f(P.a.string,'Please use the prop "valid"'),valid:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),innerRef:P.a.oneOfType([P.a.func,P.a.string]),static:f(P.a.bool,'Please use the prop "plaintext"'),plaintext:P.a.bool,addon:P.a.bool,className:P.a.string,cssModule:P.a.object},yr={tag:"p",type:"text"},vr=function(e){function t(){return K(this,t),Q(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return J(t,e),$(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,o=e.bsSize,a=e.state,i=e.valid,s=e.tag,c=e.addon,u=e.static,f=e.plaintext,d=e.innerRef,h=X(e,["className","cssModule","type","bsSize","state","valid","tag","addon","static","plaintext","innerRef"]),m=["radio","checkbox"].indexOf(r)>-1,y=new RegExp("\\D","g"),v="file"===r,g="textarea"===r,b="select"===r,w=b||g?r:"input",E="form-control";f||u?(E+="-plaintext",w=s):v?E+="-file":m&&(E=c?null:"form-check-input"),a&&"undefined"===typeof i&&("danger"===a?i=!1:"success"===a&&(i=!0)),h.size&&y.test(h.size)&&(p('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=h.size,delete h.size);var O=l(S()(t,!1===i&&"is-invalid",i&&"is-valid",!!o&&"form-control-"+o,E),n);return"input"===w&&(h.type=r),C.a.createElement(w,G({},h,{ref:d,className:O}))}}]),t}(C.a.Component);vr.propTypes=mr,vr.defaultProps=yr;var gr={tag:P.a.oneOfType([P.a.func,P.a.string]),size:P.a.string,className:P.a.string,cssModule:P.a.object},br={tag:"div"},wr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.size,a=X(e,["className","cssModule","tag","size"]),i=l(S()(t,"input-group",o?"input-group-"+o:null),n);return C.a.createElement(r,G({},a,{className:i}))};wr.propTypes=gr,wr.defaultProps=br;var Er={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object},Or={tag:"div"},Tr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=X(e,["className","cssModule","tag"]),a=l(S()(t,"input-group-addon"),n);return C.a.createElement(r,G({},o,{className:a}))};Tr.propTypes=Er,Tr.defaultProps=Or;var kr={tag:P.a.oneOfType([P.a.func,P.a.string]),children:P.a.node,groupClassName:P.a.string,groupAttributes:P.a.object,className:P.a.string,cssModule:P.a.object},Cr={tag:"div"},xr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.children,a=e.groupClassName,i=e.groupAttributes,s=X(e,["className","cssModule","tag","children","groupClassName","groupAttributes"]);if("string"===typeof o){var c=l(S()(a,"input-group-btn"),n);return C.a.createElement(r,G({},i,{className:c}),C.a.createElement(Ke,G({},s,{className:t,children:o})))}var u=l(S()(t,"input-group-btn"),n);return C.a.createElement(r,G({},s,{className:u,children:o}))};xr.propTypes=kr,xr.defaultProps=Cr;var Pr=["xs","sm","md","lg","xl"],_r=P.a.oneOfType([P.a.number,P.a.string]),Sr=P.a.oneOfType([P.a.string,P.a.number,P.a.shape({size:_r,push:_r,pull:_r,offset:_r})]),Nr={children:P.a.node,hidden:P.a.bool,check:P.a.bool,size:P.a.string,for:P.a.string,tag:P.a.string,className:P.a.string,cssModule:P.a.object,xs:Sr,sm:Sr,md:Sr,lg:Sr,xl:Sr,widths:P.a.array},jr={tag:"label",widths:Pr},Mr=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},Ar=function(e){var t=e.className,n=e.cssModule,r=e.hidden,o=e.widths,a=e.tag,i=e.check,s=e.size,c=e.for,u=X(e,["className","cssModule","hidden","widths","tag","check","size","for"]),p=[];o.forEach(function(t,r){var o=e[t];if(delete u[t],o||""===o){var a=!r,i=void 0;if(A()(o)){var s,c=a?"-":"-"+t+"-";i=Mr(a,t,o.size),p.push(l(S()((s={},Y(s,i,o.size||""===o.size),Y(s,"push"+c+o.push,o.push||0===o.push),Y(s,"pull"+c+o.pull,o.pull||0===o.pull),Y(s,"offset"+c+o.offset,o.offset||0===o.offset),s))),n)}else i=Mr(a,t,o),p.push(i)}});var f=l(S()(t,!!r&&"sr-only",!!i&&"form-check-label",!!s&&"col-form-label-"+s,p,!!p.length&&"col-form-label",!i&&!p.length&&"form-control-label"),n);return C.a.createElement(a,G({htmlFor:c},u,{className:f}))};Ar.propTypes=Nr,Ar.defaultProps=jr;var Rr={body:P.a.bool,bottom:P.a.bool,children:P.a.node,className:P.a.string,cssModule:P.a.object,heading:P.a.bool,left:P.a.bool,list:P.a.bool,middle:P.a.bool,object:P.a.bool,right:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string]),top:P.a.bool};(function(e){var t=e.body,n=e.bottom,r=e.className,o=e.cssModule,a=e.heading,i=e.left,s=e.list,c=e.middle,u=e.object,p=e.right,f=e.tag,d=e.top,h=X(e,["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"]),m=void 0;m=a?"h4":i||p?"a":u?"img":s?"ul":"div";var y=f||m,v=l(S()(r,{"media-body":t,"media-heading":a,"media-left":i,"media-right":p,"media-top":d,"media-bottom":n,"media-middle":c,"media-object":u,"media-list":s,media:!t&&!a&&!i&&!p&&!d&&!n&&!c&&!u&&!s}),o);return C.a.createElement(y,G({},h,{className:v}))}).propTypes=Rr;var Dr={children:P.a.node,className:P.a.string,cssModule:P.a.object,size:P.a.string,tag:P.a.oneOfType([P.a.func,P.a.string])},Ir={tag:"ul"},Lr=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.tag,a=X(e,["className","cssModule","size","tag"]),i=l(S()(t,"pagination",Y({},"pagination-"+r,!!r)),n);return C.a.createElement(o,G({},a,{className:i}))};Lr.propTypes=Dr,Lr.defaultProps=Ir;var zr={active:P.a.bool,children:P.a.node,className:P.a.string,cssModule:P.a.object,disabled:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string])},Ur={tag:"li"},Fr=function(e){var t=e.active,n=e.className,r=e.cssModule,o=e.disabled,a=e.tag,i=X(e,["active","className","cssModule","disabled","tag"]),s=l(S()(n,"page-item",{active:t,disabled:o}),r);return C.a.createElement(a,G({},i,{className:s}))};Fr.propTypes=zr,Fr.defaultProps=Ur;var Hr={"aria-label":P.a.string,children:P.a.node,className:P.a.string,cssModule:P.a.object,next:P.a.bool,previous:P.a.bool,tag:P.a.oneOfType([P.a.func,P.a.string])},Br={tag:"a"},Vr=function(e){var t=e.className,n=e.cssModule,r=e.next,o=e.previous,a=e.tag,i=X(e,["className","cssModule","next","previous","tag"]),s=l(S()(t,"page-link"),n),c=void 0;o?c="Previous":r&&(c="Next");var u=e["aria-label"]||c,p=void 0;o?p="\xab":r&&(p="\xbb");var f=e.children;return f&&Array.isArray(f)&&0===f.length&&(f=null),(o||r)&&(f=[C.a.createElement("span",{"aria-hidden":"true",key:"caret"},f||p),C.a.createElement("span",{className:"sr-only",key:"sr"},u)]),C.a.createElement(a,G({},i,{className:s,"aria-label":u}),f)};Vr.propTypes=Hr,Vr.defaultProps=Br;var Wr={tag:P.a.oneOfType([P.a.func,P.a.string]),activeTab:P.a.any,className:P.a.string,cssModule:P.a.object},qr={tag:"div"},Kr={activeTabId:P.a.any},$r=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeTab:n.props.activeTab},n}return J(t,e),$(t,[{key:"getChildContext",value:function(){return{activeTabId:this.state.activeTab}}},{key:"componentWillReceiveProps",value:function(e){this.state.activeTab!==e.activeTab&&this.setState({activeTab:e.activeTab})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,o=c(this.props,Object.keys(Wr)),a=l(S()("tab-content",t),n);return C.a.createElement(r,G({},o,{className:a}))}}]),t}(k.Component);$r.propTypes=Wr,$r.defaultProps=qr,$r.childContextTypes=Kr;var Yr={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.string,cssModule:P.a.object,tabId:P.a.any},Gr={tag:"div"},Jr={activeTabId:P.a.any};w.propTypes=Yr,w.defaultProps=Gr,w.contextTypes=Jr;var Xr={tag:P.a.oneOfType([P.a.func,P.a.string]),fluid:P.a.bool,className:P.a.string,cssModule:P.a.object},Qr={tag:"div"},Zr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.fluid,a=X(e,["className","cssModule","tag","fluid"]),i=l(S()(t,"jumbotron",!!o&&"jumbotron-fluid"),n);return C.a.createElement(r,G({},a,{className:i}))};Zr.propTypes=Xr,Zr.defaultProps=Qr;var eo={children:P.a.node,className:P.a.string,closeClassName:P.a.string,closeAriaLabel:P.a.string,cssModule:P.a.object,color:P.a.string,isOpen:P.a.bool,toggle:P.a.func,tag:P.a.oneOfType([P.a.func,P.a.string]),transition:P.a.shape(g.propTypes)},to={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",transition:G({},g.defaultProps,{unmountOnExit:!0})};E.propTypes=eo,E.defaultProps=to;var no,ro=G({},yt.propTypes,{isOpen:P.a.bool,children:P.a.oneOfType([P.a.arrayOf(P.a.node),P.a.node]),tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.node,navbar:P.a.bool,cssModule:P.a.object}),oo=G({},yt.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:F.Collapse}),ao=(no={},Y(no,B.ENTERING,"collapsing"),Y(no,B.ENTERED,"collapse show"),Y(no,B.EXITING,"collapsing"),Y(no,B.EXITED,"collapse"),no),io=function(e){function t(e){K(this,t);var n=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){n[e]=n[e].bind(n)}),n}return J(t,e),$(t,[{key:"onEntering",value:function(e,t){this.setState({height:T(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({height:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({height:T(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){e.offsetHeight;this.setState({height:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({height:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.isOpen,r=e.className,o=e.navbar,a=e.cssModule,i=e.children,s=X(e,["tag","isOpen","className","navbar","cssModule","children"]),p=this.state.height,f=u(s,H),d=c(s,H);return C.a.createElement(yt,G({},f,{in:n,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(e){var n=O(e),s=l(S()(r,n,o&&"navbar-collapse"),a),c=null===p?null:{height:p};return C.a.createElement(t,G({},d,{style:G({},d.style,c),className:s}),i)})}}]),t}(k.Component);io.propTypes=ro,io.defaultProps=oo;var so={tag:P.a.oneOfType([P.a.func,P.a.string]),active:P.a.bool,disabled:P.a.bool,color:P.a.string,action:P.a.bool,className:P.a.any},lo={tag:"li"},co=function(e){e.preventDefault()},uo=function(e){var t=e.className,n=e.tag,r=e.active,o=e.disabled,a=e.action,i=e.color,s=X(e,["className","tag","active","disabled","action","color"]),l=S()(t,!!r&&"active",!!o&&"disabled",!!a&&"list-group-item-action",!!i&&"list-group-item-"+i,"list-group-item");return o&&(s.onClick=co),C.a.createElement(n,G({},s,{className:l}))};uo.propTypes=so,uo.defaultProps=lo;var po={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.any},fo={tag:"h5"},ho=function(e){var t=e.className,n=e.tag,r=X(e,["className","tag"]),o=S()(t,"list-group-item-heading");return C.a.createElement(n,G({},r,{className:o}))};ho.propTypes=po,ho.defaultProps=fo;var mo={tag:P.a.oneOfType([P.a.func,P.a.string]),className:P.a.any},yo={tag:"p"},vo=function(e){var t=e.className,n=e.tag,r=X(e,["className","tag"]),o=S()(t,"list-group-item-text");return C.a.createElement(n,G({},r,{className:o}))};vo.propTypes=mo,vo.defaultProps=yo;var go=C.a.Component,bo={UncontrolledAlert:E,UncontrolledButtonDropdown:Ye,UncontrolledDropdown:Re,UncontrolledNavDropdown:m,UncontrolledTooltip:Jn};Object.keys(bo).forEach(function(e){var t=bo[e],n=t===E,r=function(r){function o(e){K(this,o);var t=Q(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t.state={isOpen:n},t.toggle=t.toggle.bind(t),t}return J(o,r),$(o,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return"UncontrolledNavDropdown"===e&&p('The "UncontrolledNavDropdown" component has been deprecated.\nPlease use component "UncontrolledDropdown" with nav prop.'),C.a.createElement(t,G({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}]),o}(go);r.displayName=e,bo[e]=r});bo.UncontrolledAlert,bo.UncontrolledButtonDropdown,bo.UncontrolledDropdown,bo.UncontrolledNavDropdown,bo.UncontrolledTooltip},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0;var r=(t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)});t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"e",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return c});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},o=function(e){return"/"===e.charAt(0)?e.substr(1):e},a=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},i=function(e,t){return a(e,t)?e.substr(t.length):e},s=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},c=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(33),o=n(34),a=n(10),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t,n,o){var s=void 0;"string"===typeof e?(s=Object(a.d)(e),s.state=t):(s=i({},e),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.default)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s},l=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(o.default)(e.state,t.state)}},function(e,t,n){"use strict";function r(){return function(e){e({type:"SPLASH_ANIMATION_COMPLETE"}),e(s(1))}}function o(){return{type:"LETTER_ANIMATION_COMPLETE"}}function a(){return{type:"ENVELOPE_ANIMATION_COMPLETE"}}function i(){return function(e){p.a.get("https://api.dearestjustin.org/action/count").then(function(t){e(t.data<1e3||null===t.data?c():l(t.data))})}}function s(e){return{type:"STEP",step:e}}function l(e){return{type:"SET_SUBMISSION_COUNT",submissionCount:e}}function c(){return{type:"CONNECTION_ERROR",connectionError:"Whoops! There seems to be a problem connecting to the internet!"}}t.d=r,t.b=o,t.a=a,t.c=i;var u=n(26),p=n.n(u)},function(e,t,n){"use strict";function r(e){return{type:"SET_CONTRIBUTION",total:e}}function o(){return{type:"SET_CONTRIBUTION_FAILED"}}function a(){return function(e){l.a.get("https://apid.dearestjustin.org/contributions/value").then(function(t){console.log(t.data),e(r(t.data))}).catch(function(t){console.log(t),e(o())})}}function i(e){return{type:"CONTRIBUTION_COMPLETE",complete:!0}}t.b=a,t.a=i;var s=n(26),l=n.n(s)},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Anime=void 0;var l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),d=n(2),h=r(d),m="undefined"!==typeof window?n(3):function(e){return e},y=t.Anime=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));v.call(n),n.targets=[];var r=e.children;return Array.isArray(r)||(r=[r]),n.children={cur:r,prev:[],next:[]},n}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.createAnime()}},{key:"componentWillReceiveProps",value:function(e){var t=e.children,n=this.props.children;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);var r=t.filter(function(e){return!n.reduce(function(t,n){return t||(0,h.default)(e,n)},!1)}),o=r.reduce(function(e,t){return e||n.indexOf(t)>-1},!1);this.children={cur:t.filter(function(e){return r.indexOf(e)<0}),prev:o?r:this.children.prev,next:o?this.children.next:r},this.createAnime(e)}},{key:"render",value:function(){var e=this,t=(this.props.style,this.children),n=t.cur;t.prev,t.next;return f.default.createElement(p.Fragment,null,n.map(function(t,n){return f.default.cloneElement(t,{key:n,ref:e.addTarget})}))}}]),t}(p.Component),v=function(){var e=this;this.createAnime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props,n=c({targets:e.targets},t);m.remove(e.targets),delete n.children,l(e.anime),e.anime=m(n)},this.addTarget=function(t){e.targets=[].concat(o(e.targets),[t])}};t.default=y},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(171)},function(e,t){e.exports=n(172)}])},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)a.call(n,u)&&(l[u]=n[u]);if(o){s=o(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(33),i=r(a),s=n(34),l=r(s),c=n(9);t.createLocation=function(e,t,n,r){var a=void 0;"string"===typeof e?(a=(0,c.parsePath)(e),a.state=t):(a=o({},e),void 0===a.pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,i.default)(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,l.default)(e.state,t.state)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(){var e=null,t=function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,a):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.default=a},function(e,t,n){"use strict";var r=n(20);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),l=n(3),c=n.n(l),u=n(0),p=n.n(u),f=n(1),d=n.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.state={match:a.computeMatch(a.props.history.location.pathname)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;c()(null==n||1===p.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(93),o=n.n(r),a={},i=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=a[n]||(a[n]={});if(r[e])return r[e];var s=[],l=o()(e,s,t),c={re:l,keys:s};return i<1e4&&(r[e]=c,i++),c},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"===typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,a=n.exact,i=void 0!==a&&a,l=n.strict,c=void 0!==l&&l,u=n.sensitive,p=void 0!==u&&u,f=s(o,{end:i,strict:c,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var y=m[0],v=m.slice(1),g=e===y;return i&&!g?null:{path:o,url:"/"===o&&""===y?"/":y,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=v[n],e},{})}};t.a=l},function(e,t,n){"use strict";var r=n(2),o=n.n(r),a=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=a},function(e,t,n){"use strict";function r(e){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,n){"use strict";var r=n(43),o=n(126),a=n(127),i=n(128),s=n(47);n(46);n.d(t,"e",function(){return r.b}),n.d(t,"c",function(){return o.a}),n.d(t,"b",function(){return a.a}),n.d(t,"a",function(){return i.a}),n.d(t,"d",function(){return s.a})},function(e,t,n){"use strict";function r(e){if(!Object(i.a)(e)||Object(o.a)(e)!=s)return!1;var t=Object(a.a)(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}var o=n(115),a=n(120),i=n(122),s="[object Object]",l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,f=u.call(Object);t.a=r},function(e,t,n){e.exports=n(141)},function(e,t,n){"use strict";(function(t){function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(4),a=n(145),i={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=n(51):"undefined"!==typeof t&&(e=n(51)),e}(),transformRequest:[function(e,t){return a(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(i)}),e.exports=s}).call(t,n(144))},function(e,t,n){"use strict";function r(e){return{type:"STEP",step:e}}function o(){return{type:"ADVOCACY_SUCCESS",success:1}}function a(){return{type:"ADVOCACY_ERROR",error:1}}function i(e){return{type:"SET_ORG_SOURCE",org:e}}function s(e){return{type:"UPDATED_ACTIVIST",activist:e}}function l(e){return function(t){t(r(2)),t({type:"ADVOCACY_MESSAGE_SUBMIT",message:e})}}function c(e){return function(t){var n={config:{headers:{"Content-Type":"application/json"}},endpoint:"https://www.actionnetwork.org/api/v2/forms/c2100bbd-f157-48cb-a856-9fd90761da95/submissions/",data:{person:{postal_addresses:[{postal_code:e.activist.postalCode}],email_addresses:[{address:e.activist.email}],custom_fields:{message:e.message}},"action_network:referrer_data":{source:e.source}}};console.log(n),p.a.post(n.endpoint,n.data,n.config).then(function(){t(r(3)),t(o())}).catch(function(){t(a())})}}t.a=i,t.d=s,t.c=l,t.b=c;var u=n(26),p=n.n(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=o.default.string,i=o.default.bool,s=o.default.number,l=o.default.array,c=o.default.oneOfType,u=o.default.shape,p=o.default.object,f=o.default.func;t.propTypes={url:c([a,l]),playing:i,loop:i,controls:i,volume:s,muted:i,playbackRate:s,width:c([a,s]),height:c([a,s]),style:p,progressFrequency:s,playsinline:i,config:u({soundcloud:u({options:p}),youtube:u({playerVars:p,preload:i}),facebook:u({appId:a}),dailymotion:u({params:p,preload:i}),vimeo:u({iframeParams:p,preload:i}),file:u({attributes:p,tracks:l,forceAudio:i,forceHLS:i,forceDASH:i}),wistia:u({options:p})}),onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onProgress:f},t.defaultProps={playing:!1,loop:!1,controls:!1,volume:.8,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressFrequency:1e3,playsinline:!1,config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{autoplay:0,playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,autoplay:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceAudio:!1,forceHLS:!1,forceDASH:!1},wistia:{options:{}}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){}},t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return v=e,g}}function a(e,t){try{return e(t)}catch(e){return v=e,g}}function i(e,t,n){try{e(t,n)}catch(e){return v=e,g}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function l(e,t,n){return new e.constructor(function(o,a){var i=new s(r);i.then(o,a),c(e,new h(t,n,i))})}function c(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);u(e,t)}function u(e,t){y(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?p(t.promise,e._18):f(t.promise,e._18));var r=a(n,e._18);r===g?f(t.promise,v):p(t.promise,r)})}function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===g)return f(e,v);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void d(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,d(e)}function f(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),d(e)}function d(e){if(1===e._75&&(c(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)c(e,e._38[t]);e._38=null}}function h(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function m(e,t){var n=!1,r=i(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,f(t,e))});n||r!==g||(n=!0,f(t,v))}var y=n(67),v=null,g={};e.exports=s,s._47=null,s._71=null,s._44=r,s.prototype.then=function(e,t){if(this.constructor!==s)return l(this,e,t);var n=new s(r);return c(this,new h(e,t,n)),n}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(72)},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&r(e),s=t&&r(t),l=i||s;if(e&&r(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";var c=void 0;if(a.length){var u=a[a.length-1];c="."===u||".."===u||""===u}else c=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),p++):p&&(o(a,f),p--)}if(!l)for(;p--;p)a.unshift("..");!l||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});var n="undefined"===typeof e?"undefined":o(e);if(n!==("undefined"===typeof t?"undefined":o(t)))return!1;if("object"===n){var a=e.valueOf(),i=t.valueOf();if(a!==e||i!==t)return r(a,i);var s=Object.keys(e),l=Object.keys(t);return s.length===l.length&&s.every(function(n){return r(e[n],t[n])})}return!1}Object.defineProperty(t,"__esModule",{value:!0});var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"===typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),l=n.n(s),c=n(1),u=n.n(c),p=n(3),f=n.n(p),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},m=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,e.call.apply(e,[this].concat(l))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!h(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},i=n,a(r,i)}return i(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,o=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>");var a=this.context.router.history.createHref("string"===typeof t?{pathname:t}:t);return l.a.createElement("a",d({},o,{onClick:this.handleClick,href:a,ref:n}))},t}(l.a.Component);m.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired},t.a=m},function(e,t,n){"use strict";var r=n(38);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),l=n(3),c=n.n(l),u=n(0),p=n.n(u),f=n(1),d=n.n(f),h=n(21),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(e){return 0===p.a.Children.count(e)},v=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.state={match:a.computeMatch(a.props,a.context.router)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,a=e.strict,i=e.exact,s=e.sensitive;if(n)return n;c()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,u=(r||l.location).pathname;return o?Object(h.a)(u,{path:o,strict:a,exact:i,sensitive:s}):l.match},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),s()(!(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"),s()(!(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")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.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.'),s()(!(!e.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(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,a=this.context.router,i=a.history,s=a.route,l=a.staticContext,c=this.props.location||s.location,u={match:e,location:c,history:i,staticContext:l};return r?e?p.a.createElement(r,u):null:o?e?o(u):null:n?"function"===typeof n?n(u):y(n)?null:p.a.Children.only(n):null},t}(p.a.Component);v.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},v.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},v.childContextTypes={router:d.a.object.isRequired},t.a=v},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"f",function(){return c}),n.d(t,"d",function(){return u});var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},a=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},i=function(e,t){return t(window.confirm(e))},s=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},u=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);e.exports=function e(t,n,p){if("string"!==typeof n){if(u){var f=c(n);f&&f!==u&&e(t,f,p)}var d=i(n);s&&(d=d.concat(s(n)));for(var h=0;h<d.length;++h){var m=d[h];if(!r[m]&&!o[m]&&(!p||!p[m])){var y=l(n,m);try{a(t,m,y)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i});var r=n(1),o=n.n(r),a=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),i=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(){}function l(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function c(e){var t,n,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=c.getDisplayName,f=void 0===u?function(e){return"ConnectAdvanced("+e+")"}:u,w=c.methodName,E=void 0===w?"connectAdvanced":w,O=c.renderCountProp,T=void 0===O?void 0:O,k=c.shouldHandleStateChanges,C=void 0===k||k,x=c.storeKey,P=void 0===x?"store":x,_=c.withRef,S=void 0!==_&&_,N=i(c,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),j=P+"Subscription",M=g++,A=(t={},t[P]=y.a,t[j]=y.b,t),R=(n={},n[j]=y.b,n);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=f(n),c=v({},N,{getDisplayName:f,methodName:E,renderCountProp:T,shouldHandleStateChanges:C,storeKey:P,withRef:S,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=function(n){function u(e,t){r(this,u);var a=o(this,n.call(this,e,t));return a.version=M,a.state={},a.renderCount=0,a.store=e[P]||t[P],a.propsMode=Boolean(e[P]),a.setWrappedInstance=a.setWrappedInstance.bind(a),d()(a.store,'Could not find "'+P+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+P+'" as a prop to "'+i+'".'),a.initSelector(),a.initSubscription(),a}return a(u,n),u.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[j]=t||this.context[j],e},u.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},u.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},u.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},u.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},u.prototype.getWrappedInstance=function(){return d()(S,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+E+"() call."),this.wrappedInstance},u.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},u.prototype.initSelector=function(){var t=e(this.store.dispatch,c);this.selector=l(t,this.store),this.selector.run(this.props)},u.prototype.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[j];this.subscription=new m.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},u.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},u.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},u.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},u.prototype.addExtraProps=function(e){if(!S&&!T&&(!this.propsMode||!this.subscription))return e;var t=v({},e);return S&&(t.ref=this.setWrappedInstance),T&&(t[T]=this.renderCount++),this.propsMode&&this.subscription&&(t[j]=this.subscription),t},u.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},u}(h.Component);return u.WrappedComponent=t,u.displayName=i,u.childContextTypes=R,u.contextTypes=A,u.propTypes=A,p()(u,t)}}t.a=c;var u=n(40),p=n.n(u),f=n(3),d=n.n(f),h=n(0),m=(n.n(h),n(111)),y=n(41),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=0,b={}},function(e,t,n){"use strict";function r(e,t,n){function a(){v===y&&(v=y.slice())}function l(){return m}function c(e){if("function"!==typeof e)throw new Error("Expected listener to be a function.");var t=!0;return a(),v.push(e),function(){if(t){t=!1,a();var n=v.indexOf(e);v.splice(n,1)}}}function u(e){if(!Object(o.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,m=h(m,e)}finally{g=!1}for(var t=y=v,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,u({type:s.INIT})}function f(){var e,t=c;return e={subscribe:function(e){function n(){e.next&&e.next(l())}if("object"!==typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[i.a]=function(){return this},e}var d;if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var h=e,m=t,y=[],v=y,g=!1;return u({type:s.INIT}),d={dispatch:u,subscribe:c,getState:l,replaceReducer:p},d[i.a]=f,d}n.d(t,"a",function(){return s}),t.b=r;var o=n(25),a=n(123),i=n.n(a),s={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";var r=n(116),o=r.a.Symbol;t.a=o},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.a=r},function(e,t,n){"use strict";function r(e){return function(t,n){function r(){return o}var o=e(t,n);return r.dependsOnOwnProps=!1,r}}function o(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function a(e,t){return function(t,n){var r=(n.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=o(e);var a=r(t,n);return"function"===typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=o(a),a=r(t,n)),a},r}}t.a=r,t.b=a;n(49)},function(e,t,n){"use strict";n(25),n(23)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(4),o=n(146),a=n(148),i=n(149),s=n(150),l=n(52),c="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||n(151);e.exports=function(e){return new Promise(function(t,u){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var y=e.auth.username||"",v=e.auth.password||"";f.Authorization="Basic "+c(y+":"+v)}if(d.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,a={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,u,a),d=null}},d.onerror=function(){u(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n(152),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),u(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,n){"use strict";var r=n(147);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),p=r(u),f=n(1),d=r(f),h=!1,m=!1,y=!1,v=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onScriptLoaded=function(){t.stripeHandler||(t.stripeHandler=StripeCheckout.configure({key:n.props.stripeKey}),n.hasPendingClick&&n.showStripeDialog())},n.onScriptError=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n.hideLoadingDialog(),n.props.onScriptError&&n.props.onScriptError.apply(n,t)},n.onClosed=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n._isMounted&&n.setState({open:!1}),n.props.closed&&n.props.closed.apply(n,t)},n.onOpened=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n.setState({open:!0}),n.props.opened&&n.props.opened.apply(n,t)},n.getConfig=function(){return["token","image","name","description","amount","locale","currency","panelLabel","zipCode","shippingAddress","billingAddress","email","allowRememberMe","bitcoin","alipay","alipayReusable"].reduce(function(e,t){return l({},e,n.props.hasOwnProperty(t)&&o({},t,n.props[t]))},{opened:n.onOpened,closed:n.onClosed})},n.onClick=function(){if(!n.props.disabled)if(y)try{throw new Error("Tried to call onClick, but StripeCheckout failed to load")}catch(e){}else t.stripeHandler?n.showStripeDialog():(n.showLoadingDialog(),n.hasPendingClick=!0)},n.handleOnMouseDown=function(){n.setState({buttonActive:!0})},n.handleOnMouseUp=function(){n.setState({buttonActive:!1})},n.state={open:!1,buttonActive:!1},n}return s(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this;if(this._isMounted=!0,!m&&!h){h=!0;var t=document.createElement("script");"function"===typeof this.props.onScriptTagCreated&&this.props.onScriptTagCreated(t),t.src="https://checkout.stripe.com/checkout.js",t.async=1,this.loadPromise=function(){var n=!1,r=new Promise(function(n,r){t.onload=function(){m=!0,h=!1,n(),e.onScriptLoaded()},t.onerror=function(t){y=!0,h=!1,r(t),e.onScriptError(t)}});return{promise:new Promise(function(e,t){r.then(function(){return n?t({isCanceled:!0}):e()}),r.catch(function(e){return t(n?{isCanceled:!0}:e)})}),cancel:function(){n=!0}}}(),this.loadPromise.promise.then(this.onScriptLoaded).catch(this.onScriptError),document.body.appendChild(t)}}},{key:"componentDidUpdate",value:function(){h||this.updateStripeHandler()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.loadPromise&&this.loadPromise.cancel(),t.stripeHandler&&this.state.open&&t.stripeHandler.close()}},{key:"updateStripeHandler",value:function(){t.stripeHandler&&!this.props.reconfigureOnUpdate||(t.stripeHandler=StripeCheckout.configure({key:this.props.stripeKey}))}},{key:"showLoadingDialog",value:function(){if(this.props.showLoadingDialog){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.props.showLoadingDialog.apply(this,t)}}},{key:"hideLoadingDialog",value:function(){if(this.props.hideLoadingDialog){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.props.hideLoadingDialog.apply(this,t)}}},{key:"showStripeDialog",value:function(){this.hideLoadingDialog(),t.stripeHandler.open(this.getConfig())}},{key:"renderDefaultStripeButton",value:function(){return p.default.createElement("button",l({},o({},this.props.triggerEvent,this.onClick),{className:this.props.className,onMouseDown:this.handleOnMouseDown,onFocus:this.handleOnMouseDown,onMouseUp:this.handleOnMouseUp,onMouseOut:this.handleOnMouseUp,onBlur:this.handleOnMouseUp,style:l({},{overflow:"hidden",display:"inline-block",background:"linear-gradient(#28a0e5,#015e94)",border:0,padding:1,textDecoration:"none",borderRadius:5,boxShadow:"0 1px 0 rgba(0,0,0,0.2)",cursor:"pointer",visibility:"visible",userSelect:"none"},this.state.buttonActive&&{background:"#005d93"},this.props.style)}),p.default.createElement("span",{style:l({},{backgroundImage:"linear-gradient(#7dc5ee,#008cdd 85%,#30a2e4)",fontFamily:'"Helvetica Neue",Helvetica,Arial,sans-serif',fontSize:14,position:"relative",padding:"0 12px",display:"block",height:30,lineHeight:"30px",color:"#fff",fontWeight:"bold",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.25)",textShadow:"0 -1px 0 rgba(0,0,0,0.25)",borderRadius:4},this.state.buttonActive&&{color:"#eee",boxShadow:"inset 0 1px 0 rgba(0,0,0,0.1)",backgroundImage:"linear-gradient(#008cdd,#008cdd 85%,#239adf)"},this.props.textStyle)},this.props.label))}},{key:"renderDisabledButton",value:function(){return p.default.createElement("button",{disabled:!0,style:{background:"rgba(0,0,0,0.2)",overflow:"hidden",display:"inline-block",border:0,padding:1,textDecoration:"none",borderRadius:5,userSelect:"none"}},p.default.createElement("span",{style:{boxShadow:"inset 0 1px 0 rgba(255,255,255,0.25)",fontFamily:'"Helvetica Neue",Helvetica,Arial,sans-serif',fontSize:14,position:"relative",padding:"0 12px",display:"block",height:30,lineHeight:"30px",borderRadius:4,color:"#999",background:"#f8f9fa",textShadow:"0 1px 0 rgba(255,255,255,0.5)"}},this.props.label))}},{key:"render",value:function(){!0!==this.props.desktopShowModal||this.state.open?!1===this.props.desktopShowModal&&this.state.open&&t.stripeHandler.close():this.onClick();var e=this.props.ComponentClass;return this.props.children?p.default.createElement(e,l({},o({},this.props.triggerEvent,this.onClick),{children:this.props.children})):this.props.disabled?this.renderDisabledButton():this.renderDefaultStripeButton()}}]),t}(p.default.Component);v.defaultProps={className:"StripeCheckout",label:"Pay With Card",locale:"auto",ComponentClass:"span",reconfigureOnUpdate:!1,triggerEvent:"onClick"},v.propTypes={desktopShowModal:d.default.bool,triggerEvent:d.default.oneOf(["onClick","onTouchTap","onTouchStart"]),label:d.default.string,style:d.default.object,textStyle:d.default.object,disabled:d.default.bool,ComponentClass:d.default.string,showLoadingDialog:d.default.func,hideLoadingDialog:d.default.func,onScriptError:d.default.func,onScriptTagCreated:d.default.func,reconfigureOnUpdate:d.default.bool,stripeKey:d.default.string.isRequired,token:d.default.func.isRequired,name:d.default.string,description:d.default.string,image:d.default.string,amount:d.default.number,locale:d.default.oneOf(["auto","zh","da","nl","en","fr","de","it","ja","no","es","sv"]),currency:d.default.oneOf(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","MAD","MDL","MGA","MKD","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SZL","THB","TJS","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"]),panelLabel:d.default.string,zipCode:d.default.bool,billingAddress:d.default.bool,shippingAddress:d.default.bool,email:d.default.string,allowRememberMe:d.default.bool,bitcoin:d.default.bool,alipay:d.default.oneOf(["auto",!0,!1]),alipayReusable:d.default.bool,opened:d.default.func,closed:d.default.func},v._isMounted=!1,t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),p=r(u),f=n(29),d=n(5),h=n(185),m=r(h),y=n(62),v=r(y),g=n(61),b=r(g),w=n(190),E=r(w),O=Object.keys(f.propTypes),T=function(e){function t(){var e,n,r,o;a(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.config=(0,d.getConfig)(r.props,f.defaultProps,!0),r.getDuration=function(){return r.player?r.player.getDuration():null},r.getCurrentTime=function(){return r.player?r.player.getCurrentTime():null},r.getInternalPlayer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null},r.seekTo=function(e){if(!r.player)return null;r.player.seekTo(e)},r.progress=function(){if(r.props.url&&r.player&&r.player.isReady){var e=r.player.getCurrentTime()||0,t=r.player.getSecondsLoaded(),n=r.player.getDuration();if(n){var o={playedSeconds:e,played:e/n};null!==t&&(o.loadedSeconds=t,o.loaded=t/n),o.played===r.prevPlayed&&o.loaded===r.prevLoaded||r.props.onProgress(o),r.prevPlayed=o.played,r.prevLoaded=o.loaded}}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency)},r.wrapperRef=function(e){r.wrapper=e},r.activePlayerRef=function(e){r.player=e},o=n,i(r,o)}return s(t,e),c(t,[{key:"componentDidMount",value:function(){this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout)}},{key:"shouldComponentUpdate",value:function(e){return!(0,d.isEqual)(this.props,e)}},{key:"getActivePlayer",value:function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=m.default[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i.canPlay(e))return i}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return b.default}},{key:"renderActivePlayer",value:function(e){if(!e)return null;var t=this.getActivePlayer(e);return p.default.createElement(v.default,l({},this.props,{key:t.displayName,ref:this.activePlayerRef,config:this.config,activePlayer:t}))}},{key:"sortPlayers",value:function(e,t){return e&&t?e.key<t.key?-1:1:0}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.style,r=e.width,a=e.height,i=(0,d.omit)(this.props,O,f.DEPRECATED_CONFIG_PROPS),s=this.renderActivePlayer(t),c=(0,E.default)(t,this.config),u=[s].concat(o(c)).sort(this.sortPlayers);return p.default.createElement("div",l({ref:this.wrapperRef,style:l({},n,{width:r,height:a})},i),u)}}]),t}(u.Component);T.displayName="ReactPlayer",T.propTypes=f.propTypes,T.defaultProps=f.defaultProps,T.canPlay=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=m.default[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){if(o.value.canPlay(e))return!0}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return!1},t.default=T},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(5),p="YT",f=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})$/,d=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=u.callPlayer,a.onStateChange=function(e){var t=e.data,n=a.props,r=n.onPlay,o=n.onPause,i=n.onBuffer,s=n.onEnded,l=n.onReady,c=window[p].PlayerState,u=c.PLAYING,f=c.PAUSED,d=c.BUFFERING,h=c.ENDED,m=c.CUED;t===u&&r(),t===f&&o(),t===d&&i(),t===h&&s(),t===m&&l()},a.ref=function(e){a.container=e},i=n,o(a,i)}return a(t,e),s(t,[{key:"load",value:function(e,t){var n=this,r=this.props,o=r.playsinline,a=r.controls,s=r.config,l=r.onError,c=e&&e.match(f)[1];if(t)return void this.player.cueVideoById({videoId:c,startSeconds:(0,u.parseStartTime)(e)});(0,u.getSDK)("https://www.youtube.com/iframe_api",p,"onYouTubeIframeAPIReady",function(e){return e.loaded}).then(function(t){n.container&&(n.player=new t.Player(n.container,{width:"100%",height:"100%",videoId:c,playerVars:i({controls:a?1:0,start:(0,u.parseStartTime)(e),origin:window.location.origin,playsinline:o},s.youtube.playerVars),events:{onReady:n.props.onReady,onStateChange:n.onStateChange,onError:function(e){return l(e.data)}}}))},l)}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e=i({width:"100%",height:"100%"},this.props.style);return c.default.createElement("div",{style:e},c.default.createElement("div",{ref:this.ref}))}}]),t}(l.Component);d.displayName="YouTube",d.canPlay=function(e){return f.test(e)},d.loopOnEnded=!0,t.default=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(5),p=/(soundcloud.com|snd.sc)\/([a-z0-9-_]+\/[a-z0-9-_]+)$/,f=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=u.callPlayer,a.duration=null,a.currentTime=null,a.fractionLoaded=null,a.ref=function(e){a.iframe=e},i=n,o(a,i)}return a(t,e),s(t,[{key:"load",value:function(e,t){var n=this;(0,u.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(function(r){if(n.iframe){var o=r.Widget.Events,a=o.PLAY,s=o.PLAY_PROGRESS,l=o.PAUSE,c=o.FINISH,u=o.ERROR;t||(n.player=r.Widget(n.iframe),n.player.bind(a,n.props.onPlay),n.player.bind(l,n.props.onPause),n.player.bind(s,function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress}),n.player.bind(c,function(){return n.props.onEnded()}),n.player.bind(u,function(e){return n.props.onError(e)})),n.player.load(e,i({},n.props.config.soundcloud.options,{callback:function(){n.player.getDuration(function(e){n.duration=e/1e3,n.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",1e3*e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e=i({width:"100%",height:"100%"},this.props.style);return c.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url="+encodeURIComponent(this.props.url),style:e,frameBorder:0})}}]),t}(l.Component);f.displayName="SoundCloud",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(5),p=/(?:www\.|player\.)?vimeo.com\/(?:(?:channels|ondemand)\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,f=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=u.callPlayer,a.duration=null,a.currentTime=null,a.secondsLoaded=null,a.ref=function(e){a.container=e},i=n,o(a,i)}return a(t,e),s(t,[{key:"load",value:function(e,t){var n=this,r=e.match(p)[3];if(this.duration=null,t)return void this.player.loadVideo(r).catch(this.props.onError);(0,u.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(function(t){n.container&&(n.player=new t.Player(n.container,i({},n.props.config.vimeo.playerOptions,{url:e,loop:n.props.loop})),n.player.ready().then(function(){var e=n.container.querySelector("iframe");e.style.width="100%",e.style.height="100%"}).catch(n.props.onError),n.player.on("loaded",function(){n.props.onReady(),n.player.getDuration().then(function(e){n.duration=e})}),n.player.on("play",n.props.onPlay),n.player.on("pause",n.props.onPause),n.player.on("seeked",function(e){return n.props.onSeek(e.seconds)}),n.player.on("ended",n.props.onEnded),n.player.on("error",n.props.onError),n.player.on("timeupdate",function(e){var t=e.seconds;n.currentTime=t}),n.player.on("progress",function(e){var t=e.seconds;n.secondsLoaded=t}))},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=i({width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black"},this.props.style);return c.default.createElement("div",{style:e,ref:this.ref})}}]),t}(l.Component);f.displayName="Vimeo",f.canPlay=function(e){return p.test(e)},t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(5),p=/dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/,f=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=u.callPlayer,a.onDurationChange=function(){var e=a.getDuration();a.props.onDuration(e)},a.ref=function(e){a.container=e},i=n,o(a,i)}return a(t,e),s(t,[{key:"parseId",value:function(e){var t=e.match(p);return t[4]||t[2]}},{key:"load",value:function(e){var t=this,n=this.props,r=n.controls,o=n.config,a=n.onError,s=n.playing,l=this.parseId(e);if(this.player)return void this.player.load(l,{start:(0,u.parseStartTime)(e),autoplay:s});(0,u.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(e){return e.player}).then(function(n){if(t.container){var s=n.player;t.player=new s(t.container,{width:"100%",height:"100%",video:l,params:i({controls:r,autoplay:t.props.playing,start:(0,u.parseStartTime)(e),origin:window.location.origin},o.dailymotion.params),events:{apiready:t.props.onReady,seeked:function(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function(e){return a(e)}}})}},a)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e=i({width:"100%",height:"100%",backgroundColor:"black"},this.props.style);return c.default.createElement("div",{style:e},c.default.createElement("div",{ref:this.ref}))}}]),t}(l.Component);f.displayName="DailyMotion",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){if(e instanceof Array){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value;if("string"===typeof s&&i(s))return!0;if(i(s.src))return!0}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return!1}return f.test(e)||d.test(e)||h.test(e)||m.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(c),p=n(5),f=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,d=/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i,h=/\.(m3u8)($|\?)/i,m=/\.(mpd)($|\?)/i,y=function(e){function t(){var e,n,a,i;r(this,t);for(var l=arguments.length,c=Array(l),p=0;p<l;p++)c[p]=arguments[p];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.onSeek=function(e){a.props.onSeek(e.target.currentTime)},a.renderSource=function(e,t){if("string"===typeof e)return u.default.createElement("source",{key:t,src:e});var n=e.src,r=e.type;return u.default.createElement("source",{key:t,src:n,type:r})},a.renderTrack=function(e,t){return u.default.createElement("track",s({key:t},e))},a.ref=function(e){a.player=e},i=n,o(a,i)}return a(t,e),l(t,[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillReceiveProps",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&this.removeListeners()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"addListeners",value:function(){var e=this.props,t=e.onReady,n=e.onPlay,r=e.onPause,o=e.onEnded,a=e.onError,i=e.playsinline;this.player.addEventListener("canplay",t),this.player.addEventListener("play",n),this.player.addEventListener("pause",r),this.player.addEventListener("seeked",this.onSeek),this.player.addEventListener("ended",o),this.player.addEventListener("error",a),i&&(this.player.setAttribute("playsinline",""),this.player.setAttribute("webkit-playsinline",""))}},{key:"removeListeners",value:function(){var e=this.props,t=e.onReady,n=e.onPlay,r=e.onPause,o=e.onEnded,a=e.onError;this.player.removeEventListener("canplay",t),this.player.removeEventListener("play",n),this.player.removeEventListener("pause",r),this.player.removeEventListener("seeked",this.onSeek),this.player.removeEventListener("ended",o),this.player.removeEventListener("error",a)}},{key:"shouldUseAudio",value:function(e){return f.test(e.url)||e.config.file.forceAudio}},{key:"shouldUseHLS",value:function(e){var t=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;return h.test(e)&&!t||this.props.config.file.forceHLS}},{key:"shouldUseDASH",value:function(e){return m.test(e)||this.props.config.file.forceDASH}},{key:"load",value:function(e){var t=this;this.shouldUseHLS(e)&&(0,p.getSDK)("https://cdn.jsdelivr.net/hls.js/latest/hls.min.js","Hls").then(function(n){t.hls=new n,t.hls.loadSource(e),t.hls.attachMedia(t.player)}),this.shouldUseDASH(e)&&(0,p.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/2.5.0/dash.all.min.js","dashjs").then(function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.getDebug().setLogToBrowserConsole(!1)})}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.hls&&this.hls.destroy(),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"setPlaybackRate",value:function(e){this.player.playbackRate=e}},{key:"getDuration",value:function(){return this.player.duration}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return 0===this.player.buffered.length?0:this.player.buffered.end(0)}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.loop,r=e.controls,o=e.config,a=e.width,i=e.height,l=this.shouldUseAudio(this.props),c=this.shouldUseHLS(t),p=this.shouldUseDASH(t),f=l?"audio":"video",d=t instanceof Array||c||p?void 0:t,h={width:a&&"auto"!==a?"100%":a,height:i&&"auto"!==i?"100%":i};return u.default.createElement(f,s({ref:this.ref,src:d,style:h,preload:"auto",controls:r,loop:n},o.file.attributes),t instanceof Array&&t.map(this.renderSource),o.file.tracks.map(this.renderTrack))}}]),t}(c.Component);y.displayName="FilePlayer",y.canPlay=i,t.default=y},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(29),p=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.mounted=!1,a.isReady=!1,a.isPlaying=!1,a.isLoading=!0,a.startOnPlay=!0,a.seekOnPlay=null,a.onDurationCalled=!1,a.getInternalPlayer=function(e){return a.player?a.player[e]:null},a.onReady=function(){if(a.mounted){a.isReady=!0,a.isLoading=!1;var e=a.props,t=e.onReady,n=e.playing;t(),n&&a.player.play(),a.onDurationCheck()}},a.onPlay=function(){a.isPlaying=!0,a.isLoading=!1;var e=a.props,t=e.volume,n=e.muted,r=e.onStart,o=e.onPlay,i=e.playbackRate;a.startOnPlay&&(a.player.setPlaybackRate&&a.player.setPlaybackRate(i),r(),a.startOnPlay=!1),a.player.setVolume(n?0:t),o(),a.seekOnPlay&&(a.seekTo(a.seekOnPlay),a.seekOnPlay=null),a.onDurationCheck()},a.onPause=function(){a.isPlaying=!1,a.isLoading||a.props.onPause()},a.onEnded=function(){var e=a.props,t=e.activePlayer,n=e.loop,r=e.onEnded;t.loopOnEnded&&n&&a.seekTo(0),n||(a.isPlaying=!1),r()},a.onDurationCheck=function(){clearTimeout(a.durationCheckTimeout);var e=a.getDuration();e?a.onDurationCalled||(a.props.onDuration(e),a.onDurationCalled=!0):a.durationCheckTimeout=setTimeout(a.onDurationCheck,100)},a.ref=function(e){e&&(a.player=e)},i=n,o(a,i)}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.player.load(this.props.url)}},{key:"componentWillUnmount",value:function(){this.isReady&&this.player.stop(),this.mounted=!1}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.url,r=t.playing,o=t.volume,a=t.muted,i=t.playbackRate;n!==e.url&&(this.isLoading=!0,this.onDurationCalled=!1,this.player.load(e.url,this.isReady)),r||!e.playing||this.isPlaying||this.player.play(),r&&!e.playing&&this.isPlaying&&this.player.pause(),o===e.volume||e.muted||this.player.setVolume(e.volume),a!==e.muted&&this.player.setVolume(e.muted?0:e.volume),i!==e.playbackRate&&this.player.setPlaybackRate&&this.player.setPlaybackRate(e.playbackRate)}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e){var t=this;if(!this.isReady&&0!==e)return this.seekOnPlay=e,void setTimeout(function(){t.seekOnPlay=null},5e3);if(e>0&&e<1){var n=this.player.getDuration();return n?void this.player.seekTo(n*e):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return c.default.createElement(e,i({},this.props,{ref:this.ref,onReady:this.onReady,onPlay:this.onPlay,onPause:this.onPause,onEnded:this.onEnded}))}}]),t}(l.Component);p.displayName="Player",p.propTypes=u.propTypes,p.defaultProps=u.defaultProps,t.default=p},function(e,t,n){e.exports=n.p+"static/media/dearest-justin.1a0881a0.mp4"},function(e,t,n){n(65),e.exports=n(70)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(66).enable(),window.Promise=n(68)),n(69),Object.assign=n(16)},function(e,t,n){"use strict";function r(){c=!1,s._47=null,s._71=null}function o(e){function t(t){(e.allRejections||i(p[t].error,e.whitelist||l))&&(p[t].displayId=u++,e.onUnhandled?(p[t].logged=!0,e.onUnhandled(p[t].displayId,p[t].error)):(p[t].logged=!0,a(p[t].displayId,p[t].error)))}function n(t){p[t].logged&&(e.onHandled?e.onHandled(p[t].displayId,p[t].error):p[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+p[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+p[t].displayId+".")))}e=e||{},c&&r(),c=!0;var o=0,u=0,p={};s._47=function(e){2===e._83&&p[e._56]&&(p[e._56].logged?n(e._56):clearTimeout(p[e._56].timeout),delete p[e._56])},s._71=function(e,n){0===e._75&&(e._56=o++,p[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),i(n,l)?100:2e3),logged:!1})}}function a(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function i(e,t){return t.some(function(t){return e instanceof t})}var s=n(30),l=[ReferenceError,TypeError,RangeError],c=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){i.length||(a(),s=!0),i[i.length]=e}function r(){for(;l<i.length;){var e=l;if(l+=1,i[e].call(),l>c){for(var t=0,n=i.length-l;t<n;t++)i[t]=i[t+l];i.length-=l,l=0}}i.length=0,l=0,s=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var a,i=[],s=!1,l=0,c=1024,u="undefined"!==typeof t?t:self,p=u.MutationObserver||u.WebKitMutationObserver;a="function"===typeof p?function(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=a,n.makeRequestCallFromTimer=o}).call(t,n(8))},function(e,t,n){"use strict";function r(e){var t=new o(o._44);return t._83=1,t._18=e,t}var o=n(30);e.exports=o;var a=r(!0),i=r(!1),s=r(null),l=r(void 0),c=r(0),u=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return s;if(void 0===e)return l;if(!0===e)return a;if(!1===e)return i;if(0===e)return c;if(""===e)return u;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(i,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?r(i,s._18):(2===s._83&&n(s._18),void s.then(function(e){r(i,e)},n))}var l=s.then;if("function"===typeof l){return void new o(l.bind(s)).then(function(e){r(i,e)},n)}}t[i]=s,0===--a&&e(t)}if(0===t.length)return e([]);for(var a=t.length,i=0;i<t.length;i++)r(i,t[i])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return v.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function a(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function i(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=i(t);return t.readAsArrayBuffer(e),n}function l(e){var t=new FileReader,n=i(t);return t.readAsText(e),n}function c(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function u(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(v.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(v.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(v.arrayBuffer&&v.blob&&b(e))this._bodyArrayBuffer=u(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=u(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?a(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e){var t=e.toUpperCase();return E.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var n=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function y(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var v={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(v.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},v.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},p.call(d.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];y.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=y,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:m(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;n(new y(t,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),a=n(32),i=n.n(a),s=n(81),l=n(6),c=n(133),u=n(134),p=n(140),f=n(195),d=n(7);i.a.render(o.a.createElement(l.a,{store:u.a},o.a.createElement(s.a,null,o.a.createElement(d.i,{className:"components"},o.a.createElement(s.b,{exact:!0,path:"/crowdfund",component:f.a}),o.a.createElement(s.b,{exact:!0,path:"/",component:p.a}),o.a.createElement(s.b,{path:"/via/:source",component:p.a})))),document.getElementById("app")),Object(c.a)()},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||_}function a(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||_}function i(){}function s(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||_}function l(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)M.call(t,r)&&!A.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:O,type:e,key:a,ref:i,props:o,_owner:j.current}}function c(e){return"object"===typeof e&&null!==e&&e.$$typeof===O}function u(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function p(e,t,n,r){if(D.length){var o=D.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function d(e,t,n,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case O:case T:case k:case C:i=!0}}if(i)return n(o,e,""===t?"."+h(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){a=e[s];var l=t+h(a,s);i+=d(a,l,n,o)}else if(null===e||"undefined"===typeof e?l=null:(l=P&&e[P]||e["@@iterator"],l="function"===typeof l?l:null),"function"===typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=t+h(a,s++),i+=d(a,l,n,o);else"object"===a&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return i}function h(e,t){return"object"===typeof e&&null!==e&&null!=e.key?u(e.key):t.toString(36)}function m(e,t){e.func.call(e.context,t,e.count++)}function y(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,w.thatReturnsArgument):null!=e&&(c(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n,e={$$typeof:O,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function v(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(R,"$&/")+"/"),t=p(t,a,r,o),null==e||d(e,"",y,t),f(t)}var g=n(16),b=n(31),w=n(11),E="function"===typeof Symbol&&Symbol.for,O=E?Symbol.for("react.element"):60103,T=E?Symbol.for("react.call"):60104,k=E?Symbol.for("react.return"):60105,C=E?Symbol.for("react.portal"):60106,x=E?Symbol.for("react.fragment"):60107,P="function"===typeof Symbol&&Symbol.iterator,_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=o.prototype;var S=a.prototype=new i;S.constructor=a,g(S,o.prototype),S.isPureReactComponent=!0;var N=s.prototype=new i;N.constructor=s,g(N,o.prototype),N.unstable_isAsyncReactComponent=!0,N.render=function(){return this.props.children};var j={current:null},M=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0},R=/\/+/g,D=[],I={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=p(null,null,t,n),null==e||d(e,"",m,t),f(t)},count:function(e){return null==e?0:d(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return v(e,t,null,w.thatReturnsArgument),t},only:function(e){return c(e)||r("143"),e}},Component:o,PureComponent:a,unstable_AsyncComponent:s,Fragment:x,createElement:l,cloneElement:function(e,t,n){var r=g({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)M.call(t,l)&&!A.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:O,type:e.type,key:o,ref:a,props:r,_owner:i}},createFactory:function(e){var t=l.bind(null,e);return t.type=e,t},isValidElement:c,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:j,assign:g}},L=Object.freeze({default:I}),z=L&&I||L;e.exports=z.default?z.default:z},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t){return(e&t)===t}function a(e,t){if(Sn.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return Sn.hasOwnProperty(e)?e=!0:(t=i(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),e="data-"===e||"aria-"===e),e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function i(e){return jn.hasOwnProperty(e)?jn[e]:null}function s(e){return e[1].toUpperCase()}function l(e,t,n,r,o,a,i,s,l){Wn._hasCaughtError=!1,Wn._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){Wn._caughtError=e,Wn._hasCaughtError=!0}}function c(){if(Wn._hasRethrowError){var e=Wn._rethrowError;throw Wn._rethrowError=null,Wn._hasRethrowError=!1,e}}function u(){if(qn)for(var e in Kn){var t=Kn[e],n=qn.indexOf(e);if(-1<n||r("96",e),!$n[n]){t.extractEvents||r("97",e),$n[n]=t,n=t.eventTypes;for(var o in n){var a=void 0,i=n[o],s=t,l=o;Yn.hasOwnProperty(l)&&r("99",l),Yn[l]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&p(c[a],s,l);a=!0}else i.registrationName?(p(i.registrationName,s,l),a=!0):a=!1;a||r("98",o,e)}}}}function p(e,t,n){Gn[e]&&r("100",e),Gn[e]=t,Jn[e]=t.eventTypes[n].dependencies}function f(e){qn&&r("101"),qn=Array.prototype.slice.call(e),u()}function d(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];Kn.hasOwnProperty(t)&&Kn[t]===o||(Kn[t]&&r("102",t),Kn[t]=o,n=!0)}n&&u()}function h(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=er(r),Wn.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function m(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function y(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function v(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)h(e,t,n[o],r[o]);else n&&h(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function g(e){return v(e,!0)}function b(e){return v(e,!1)}function w(e,t){var n=e.stateNode;if(!n)return null;var o=Qn(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!==typeof n&&r("231",t,typeof n),n)}function E(e,t,n,r){for(var o,a=0;a<$n.length;a++){var i=$n[a];i&&(i=i.extractEvents(e,t,n,r))&&(o=m(o,i))}return o}function O(e){e&&(tr=m(tr,e))}function T(e){var t=tr;tr=null,t&&(e?y(t,g):y(t,b),tr&&r("95"),Wn.rethrowCaughtError())}function k(e){if(e[ar])return e[ar];for(var t=[];!e[ar];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[ar];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[ar]);e=t.pop())n=r;return n}function C(e){if(5===e.tag||6===e.tag)return e.stateNode;r("33")}function x(e){return e[ir]||null}function P(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function _(e,t,n){for(var r=[];e;)r.push(e),e=P(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function S(e,t,n){(t=w(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=m(n._dispatchListeners,t),n._dispatchInstances=m(n._dispatchInstances,e))}function N(e){e&&e.dispatchConfig.phasedRegistrationNames&&_(e._targetInst,S,e)}function j(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?P(t):null,_(t,S,e)}}function M(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=w(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=m(n._dispatchListeners,t),n._dispatchInstances=m(n._dispatchInstances,e))}function A(e){e&&e.dispatchConfig.registrationName&&M(e._targetInst,null,e)}function R(e){y(e,N)}function D(e,t,n,r){if(n&&r)e:{for(var o=n,a=r,i=0,s=o;s;s=P(s))i++;s=0;for(var l=a;l;l=P(l))s++;for(;0<i-s;)o=P(o),i--;for(;0<s-i;)a=P(a),s--;for(;i--;){if(o===a||o===a.alternate)break e;o=P(o),a=P(a)}o=null}else o=null;for(a=o,o=[];n&&n!==a&&(null===(i=n.alternate)||i!==a);)o.push(n),n=P(n);for(n=[];r&&r!==a&&(null===(i=r.alternate)||i!==a);)n.push(r),r=P(r);for(r=0;r<o.length;r++)M(o[r],"bubbled",e);for(e=n.length;0<e--;)M(n[e],"captured",t)}function I(){return!cr&&wn.canUseDOM&&(cr="textContent"in document.documentElement?"textContent":"innerText"),cr}function L(){if(ur._fallbackText)return ur._fallbackText;var e,t,n=ur._startText,r=n.length,o=z(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return ur._fallbackText=o.slice(e,1<t?1-t:void 0),ur._fallbackText}function z(){return"value"in ur._root?ur._root.value:ur._root[I()]}function U(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?On.thatReturnsTrue:On.thatReturnsFalse,this.isPropagationStopped=On.thatReturnsFalse,this}function F(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function H(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function B(e){e.eventPool=[],e.getPooled=F,e.release=H}function V(e,t,n,r){return U.call(this,e,t,n,r)}function W(e,t,n,r){return U.call(this,e,t,n,r)}function q(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function K(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function $(e,t){switch(e){case"topCompositionEnd":return K(t);case"topKeyPress":return 32!==t.which?null:(Tr=!0,Er);case"topTextInput":return e=t.data,e===Er&&Tr?null:e;default:return null}}function Y(e,t){if(kr)return"topCompositionEnd"===e||!hr&&q(e,t)?(e=L(),ur._root=null,ur._startText=null,ur._fallbackText=null,kr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return wr?null:t.data;default:return null}}function G(e){if(e=Zn(e)){xr&&"function"===typeof xr.restoreControlledState||r("194");var t=Qn(e.stateNode);xr.restoreControlledState(e.stateNode,e.type,t)}}function J(e){Pr?_r?_r.push(e):_r=[e]:Pr=e}function X(){if(Pr){var e=Pr,t=_r;if(_r=Pr=null,G(e),t)for(e=0;e<t.length;e++)G(t[e])}}function Q(e,t){return e(t)}function Z(e,t){if(jr)return Q(e,t);jr=!0;try{return Q(e,t)}finally{jr=!1,X()}}function ee(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mr[e.type]:"textarea"===t}function te(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ne(e,t){if(!wn.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"===typeof n[t]),!n&&gr&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function re(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function oe(e){var t=re(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"===typeof n.get&&"function"===typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function ae(e){e._valueTracker||(e._valueTracker=oe(e))}function ie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=re(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function se(e,t,n){return e=U.getPooled(Ar.change,e,t,n),e.type="change",J(n),R(e),e}function le(e){O(e),T(!1)}function ce(e){if(ie(C(e)))return e}function ue(e,t){if("topChange"===e)return t}function pe(){Rr&&(Rr.detachEvent("onpropertychange",fe),Dr=Rr=null)}function fe(e){"value"===e.propertyName&&ce(Dr)&&(e=se(Dr,e,te(e)),Z(le,e))}function de(e,t,n){"topFocus"===e?(pe(),Rr=t,Dr=n,Rr.attachEvent("onpropertychange",fe)):"topBlur"===e&&pe()}function he(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return ce(Dr)}function me(e,t){if("topClick"===e)return ce(t)}function ye(e,t){if("topInput"===e||"topChange"===e)return ce(t)}function ve(e,t,n,r){return U.call(this,e,t,n,r)}function ge(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=zr[e])&&!!t[e]}function be(){return ge}function we(e,t,n,r){return U.call(this,e,t,n,r)}function Ee(e){return e=e.type,"string"===typeof e?e:"function"===typeof e?e.displayName||e.name:null}function Oe(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Te(e){return!!(e=e._reactInternalFiber)&&2===Oe(e)}function ke(e){2!==Oe(e)&&r("188")}function Ce(e){var t=e.alternate;if(!t)return t=Oe(e),3===t&&r("188"),1===t?null:e;for(var n=e,o=t;;){var a=n.return,i=a?a.alternate:null;if(!a||!i)break;if(a.child===i.child){for(var s=a.child;s;){if(s===n)return ke(a),e;if(s===o)return ke(a),t;s=s.sibling}r("188")}if(n.return!==o.return)n=a,o=i;else{s=!1;for(var l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}s||r("189")}}n.alternate!==o&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?e:t}function xe(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Pe(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function _e(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=k(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],Wr(e.topLevelType,t,e.nativeEvent,te(e.nativeEvent))}function Se(e){Vr=!!e}function Ne(e,t,n){return n?Tn.listen(n,t,Me.bind(null,e)):null}function je(e,t,n){return n?Tn.capture(n,t,Me.bind(null,e)):null}function Me(e,t){if(Vr){var n=te(t);if(n=k(n),null===n||"number"!==typeof n.tag||2===Oe(n)||(n=null),Br.length){var r=Br.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Z(_e,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Br.length&&Br.push(e)}}}function Ae(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Re(e){if($r[e])return $r[e];if(!Kr[e])return e;var t,n=Kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return $r[e]=n[t];return""}function De(e){return Object.prototype.hasOwnProperty.call(e,Qr)||(e[Qr]=Xr++,Jr[e[Qr]]={}),Jr[e[Qr]]}function Ie(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Le(e,t){var n=Ie(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ie(n)}}function ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Ue(e,t){if(oo||null==to||to!==kn())return null;var n=to;return"selectionStart"in n&&ze(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ro&&Cn(ro,n)?null:(ro=n,e=U.getPooled(eo.select,no,e,t),e.type="select",e.target=to,R(e),e)}function Fe(e,t,n,r){return U.call(this,e,t,n,r)}function He(e,t,n,r){return U.call(this,e,t,n,r)}function Be(e,t,n,r){return U.call(this,e,t,n,r)}function Ve(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function We(e,t,n,r){return U.call(this,e,t,n,r)}function qe(e,t,n,r){return U.call(this,e,t,n,r)}function Ke(e,t,n,r){return U.call(this,e,t,n,r)}function $e(e,t,n,r){return U.call(this,e,t,n,r)}function Ye(e,t,n,r){return U.call(this,e,t,n,r)}function Ge(e){0>fo||(e.current=po[fo],po[fo]=null,fo--)}function Je(e,t){fo++,po[fo]=e.current,e.current=t}function Xe(e){return Ze(e)?yo:ho.current}function Qe(e,t){var n=e.type.contextTypes;if(!n)return _n;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ze(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Ze(e)&&(Ge(mo,e),Ge(ho,e))}function tt(e,t,n){null!=ho.cursor&&r("168"),Je(ho,t,e),Je(mo,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var a in n)a in o||r("108",Ee(e)||"Unknown",a);return En({},t,n)}function rt(e){if(!Ze(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||_n,yo=ho.current,Je(ho,t,e),Je(mo,mo.current,e),!0}function ot(e,t){var n=e.stateNode;if(n||r("169"),t){var o=nt(e,yo);n.__reactInternalMemoizedMergedChildContext=o,Ge(mo,e),Ge(ho,e),Je(ho,o,e)}else Ge(mo,e);Je(mo,t,e)}function at(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function it(e,t,n){var r=e.alternate;return null===r?(r=new at(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function st(e,t,n){var o=void 0,a=e.type,i=e.key;return"function"===typeof a?(o=a.prototype&&a.prototype.isReactComponent?new at(2,i,t):new at(0,i,t),o.type=a,o.pendingProps=e.props):"string"===typeof a?(o=new at(5,i,t),o.type=a,o.pendingProps=e.props):"object"===typeof a&&null!==a&&"number"===typeof a.tag?(o=a,o.pendingProps=e.props):r("130",null==a?a:typeof a,""),o.expirationTime=n,o}function lt(e,t,n,r){return t=new at(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new at(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ut(e,t,n){return t=new at(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function pt(e,t,n){return e=new at(9,null,t),e.expirationTime=n,e}function ft(e,t,n){return t=new at(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dt(e){return function(t){try{return e(t)}catch(e){}}}function ht(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);vo=dt(function(e){return t.onCommitFiberRoot(n,e)}),go=dt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function mt(e){"function"===typeof vo&&vo(e)}function yt(e){"function"===typeof go&&go(e)}function vt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function gt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=vt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=vt(null)):e=null,e=e!==r?e:null,null===e?gt(r,t):null===r.last||null===e.last?(gt(r,t),gt(e,t)):(gt(r,t),e.last=t)}function wt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function Et(e,t,n,r,o,a){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var i=!0,s=n.first,l=!1;null!==s;){var c=s.expirationTime;if(c>a){var u=n.expirationTime;(0===u||u>c)&&(n.expirationTime=c),l||(l=!0,n.baseState=e)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=wt(s,r,e,o),i=!0):(c=wt(s,r,e,o))&&(e=i?En({},e,c):En(e,c),i=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(c=n.callbackList,null===c&&(c=n.callbackList=[]),c.push(s));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),l||(n.baseState=e),e}function Ot(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var o=n[e],a=o.callback;o.callback=null,"function"!==typeof a&&r("191",a),a.call(t)}}function Tt(e,t,n,o){function a(e,t){t.updater=i,e.stateNode=t,t._reactInternalFiber=e}var i={isMounted:Te,enqueueSetState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var a=t(n);bt(n,{expirationTime:a,partialState:r,callback:o,isReplace:!1,isForced:!1,nextCallback:null,next:null}),e(n,a)},enqueueReplaceState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var a=t(n);bt(n,{expirationTime:a,partialState:r,callback:o,isReplace:!0,isForced:!1,nextCallback:null,next:null}),e(n,a)},enqueueForceUpdate:function(n,r){n=n._reactInternalFiber,r=void 0===r?null:r;var o=t(n);bt(n,{expirationTime:o,partialState:null,callback:r,isReplace:!1,isForced:!0,nextCallback:null,next:null}),e(n,o)}};return{adoptClassInstance:a,constructClassInstance:function(e,t){var n=e.type,r=Xe(e),o=2===e.tag&&null!=e.type.contextTypes,i=o?Qe(e,r):_n;return t=new n(t,i),a(e,t),o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,a=o.state||null,s=e.pendingProps;s||r("158");var l=Xe(e);o.props=s,o.state=e.memoizedState=a,o.refs=_n,o.context=Qe(e,l),null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=1),"function"===typeof o.componentWillMount&&(a=o.state,o.componentWillMount(),a!==o.state&&i.enqueueReplaceState(o,o.state,null),null!==(a=e.updateQueue)&&(o.state=Et(n,e,a,o,s,t))),"function"===typeof o.componentDidMount&&(e.effectTag|=4)},updateClassInstance:function(e,t,a){var s=t.stateNode;s.props=t.memoizedProps,s.state=t.memoizedState;var l=t.memoizedProps,c=t.pendingProps;c||null==(c=l)&&r("159");var u=s.context,p=Xe(t);if(p=Qe(t,p),"function"!==typeof s.componentWillReceiveProps||l===c&&u===p||(u=s.state,s.componentWillReceiveProps(c,p),s.state!==u&&i.enqueueReplaceState(s,s.state,null)),u=t.memoizedState,a=null!==t.updateQueue?Et(e,t,t.updateQueue,s,c,a):u,!(l!==c||u!==a||mo.current||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!==typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),!1;var f=c;if(null===l||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)f=!0;else{var d=t.stateNode,h=t.type;f="function"===typeof d.shouldComponentUpdate?d.shouldComponentUpdate(f,a,p):!h.prototype||!h.prototype.isPureReactComponent||(!Cn(l,f)||!Cn(u,a))}return f?("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(c,a,p),"function"===typeof s.componentDidUpdate&&(t.effectTag|=4)):("function"!==typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),n(t,c),o(t,a)),s.props=c,s.state=a,s.context=p,f}}}function kt(e){return null===e||"undefined"===typeof e?null:(e=Co&&e[Co]||e["@@iterator"],"function"===typeof e?e:null)}function Ct(e,t){var n=t.ref;if(null!==n&&"function"!==typeof n){if(t._owner){t=t._owner;var o=void 0;t&&(2!==t.tag&&r("110"),o=t.stateNode),o||r("147",n);var a=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(e){var t=o.refs===_n?o.refs={}:o.refs;null===e?delete t[a]:t[a]=e},e._stringRef=a,e)}"string"!==typeof n&&r("148"),t._owner||r("149",n)}return n}function xt(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Pt(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,n){return e=it(e,t,n),e.index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=ct(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function c(e,t,n,r){return null!==t&&t.type===n.type?(r=a(t,n.props,r),r.ref=Ct(t,n),r.return=e,r):(r=st(n,e.internalContextTag,r),r.ref=Ct(t,n),r.return=e,r)}function u(e,t,n,r){return null===t||7!==t.tag?(t=ut(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function p(e,t,n,r){return null===t||9!==t.tag?(t=pt(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=a(t,null,r),t.type=n.value,t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ft(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n.children||[],r),t.return=e,t)}function d(e,t,n,r,o){return null===t||10!==t.tag?(t=lt(n,e.internalContextTag,r,o),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return t=ct(""+t,e.internalContextTag,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case wo:return t.type===ko?(t=lt(t.props.children,e.internalContextTag,n,t.key),t.return=e,t):(n=st(t,e.internalContextTag,n),n.ref=Ct(null,t),n.return=e,n);case Eo:return t=ut(t,e.internalContextTag,n),t.return=e,t;case Oo:return n=pt(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case To:return t=ft(t,e.internalContextTag,n),t.return=e,t}if(xo(t)||kt(t))return t=lt(t,e.internalContextTag,n,null),t.return=e,t;xt(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case wo:return n.key===o?n.type===ko?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case Eo:return n.key===o?u(e,t,n,r):null;case Oo:return null===o?p(e,t,n,r):null;case To:return n.key===o?f(e,t,n,r):null}if(xo(n)||kt(n))return null!==o?null:d(e,t,n,r,null);xt(e,n)}return null}function y(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case wo:return e=e.get(null===r.key?n:r.key)||null,r.type===ko?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case Eo:return e=e.get(null===r.key?n:r.key)||null,u(t,e,r,o);case Oo:return e=e.get(n)||null,p(t,e,r,o);case To:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,o)}if(xo(r)||kt(r))return e=e.get(n)||null,d(t,e,r,o,null);xt(t,r)}return null}function v(r,a,s,l){for(var c=null,u=null,p=a,f=a=0,d=null;null!==p&&f<s.length;f++){p.index>f?(d=p,p=null):d=p.sibling;var v=m(r,p,s[f],l);if(null===v){null===p&&(p=d);break}e&&p&&null===v.alternate&&t(r,p),a=i(v,a,f),null===u?c=v:u.sibling=v,u=v,p=d}if(f===s.length)return n(r,p),c;if(null===p){for(;f<s.length;f++)(p=h(r,s[f],l))&&(a=i(p,a,f),null===u?c=p:u.sibling=p,u=p);return c}for(p=o(r,p);f<s.length;f++)(d=y(p,r,f,s[f],l))&&(e&&null!==d.alternate&&p.delete(null===d.key?f:d.key),a=i(d,a,f),null===u?c=d:u.sibling=d,u=d);return e&&p.forEach(function(e){return t(r,e)}),c}function g(a,s,l,c){var u=kt(l);"function"!==typeof u&&r("150"),null==(l=u.call(l))&&r("151");for(var p=u=null,f=s,d=s=0,v=null,g=l.next();null!==f&&!g.done;d++,g=l.next()){f.index>d?(v=f,f=null):v=f.sibling;var b=m(a,f,g.value,c);if(null===b){f||(f=v);break}e&&f&&null===b.alternate&&t(a,f),s=i(b,s,d),null===p?u=b:p.sibling=b,p=b,f=v}if(g.done)return n(a,f),u;if(null===f){for(;!g.done;d++,g=l.next())null!==(g=h(a,g.value,c))&&(s=i(g,s,d),null===p?u=g:p.sibling=g,p=g);return u}for(f=o(a,f);!g.done;d++,g=l.next())null!==(g=y(f,a,d,g.value,c))&&(e&&null!==g.alternate&&f.delete(null===g.key?d:g.key),s=i(g,s,d),null===p?u=g:p.sibling=g,p=g);return e&&f.forEach(function(e){return t(a,e)}),u}return function(e,o,i,l){"object"===typeof i&&null!==i&&i.type===ko&&null===i.key&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case wo:e:{var u=i.key;for(c=o;null!==c;){if(c.key===u){if(10===c.tag?i.type===ko:c.type===i.type){n(e,c.sibling),o=a(c,i.type===ko?i.props.children:i.props,l),o.ref=Ct(c,i),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ko?(o=lt(i.props.children,e.internalContextTag,l,i.key),o.return=e,e=o):(l=st(i,e.internalContextTag,l),l.ref=Ct(o,i),l.return=e,e=l)}return s(e);case Eo:e:{for(c=i.key;null!==o;){if(o.key===c){if(7===o.tag){n(e,o.sibling),o=a(o,i,l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ut(i,e.internalContextTag,l),o.return=e,e=o}return s(e);case Oo:e:{if(null!==o){if(9===o.tag){n(e,o.sibling),o=a(o,null,l),o.type=i.value,o.return=e,e=o;break e}n(e,o)}o=pt(i,e.internalContextTag,l),o.type=i.value,o.return=e,e=o}return s(e);case To:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),o=a(o,i.children||[],l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ft(i,e.internalContextTag,l),o.return=e,e=o}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),o=a(o,i,l)):(n(e,o),o=ct(i,e.internalContextTag,l)),o.return=e,e=o,s(e);if(xo(i))return v(e,o,i,l);if(kt(i))return g(e,o,i,l);if(c&&xt(e,i),"undefined"===typeof i)switch(e.tag){case 2:case 1:l=e.type,r("152",l.displayName||l.name||"Component")}return n(e,o)}}function _t(e,t,n,o,a){function i(e,t,n){var r=t.expirationTime;t.child=null===e?_o(t,null,n,r):Po(t,e.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function l(e,t,n,r){if(s(e,t),!n)return r&&ot(t,!1),u(e,t);n=t.stateNode,Hr.current=t;var o=n.render();return t.effectTag|=1,i(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),y(e,t.containerInfo)}function u(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=it(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=it(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function p(e,t){switch(t.tag){case 3:c(t);break;case 2:rt(t);break;case 4:y(t,t.stateNode.containerInfo)}return null}var f=e.shouldSetTextContent,d=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,m=t.pushHostContext,y=t.pushHostContainer,v=n.enterHydrationState,g=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=Tt(o,a,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,E=e.constructClassInstance,O=e.mountClassInstance,T=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return p(e,t);switch(t.tag){case 0:null!==e&&r("155");var o=t.type,a=t.pendingProps,k=Xe(t);return k=Qe(t,k),o=o(a,k),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=2,a=rt(t),w(t,o),O(t,n),t=l(e,t,!0,a)):(t.tag=1,i(e,t,o),t.memoizedProps=a,t=t.child),t;case 1:e:{if(a=t.type,n=t.pendingProps,o=t.memoizedProps,mo.current)null===n&&(n=o);else if(null===n||o===n){t=u(e,t);break e}o=Xe(t),o=Qe(t,o),a=a(n,o),t.effectTag|=1,i(e,t,a),t.memoizedProps=n,t=t.child}return t;case 2:return a=rt(t),o=void 0,null===e?t.stateNode?r("153"):(E(t,t.pendingProps),O(t,n),o=!0):o=T(e,t,n),l(e,t,o,a);case 3:return c(t),a=t.updateQueue,null!==a?(o=t.memoizedState,a=Et(e,t,a,null,null,n),o===a?(g(),t=u(e,t)):(o=a.element,k=t.stateNode,(null===e||null===e.child)&&k.hydrate&&v(t)?(t.effectTag|=2,t.child=_o(t,null,o,n)):(g(),i(e,t,o)),t.memoizedState=a,t=t.child)):(g(),t=u(e,t)),t;case 5:m(t),null===e&&b(t),a=t.type;var C=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=C)&&r("154"),k=null!==e?e.memoizedProps:null,mo.current||null!==o&&C!==o?(C=o.children,f(a,o)?C=null:k&&f(a,k)&&(t.effectTag|=16),s(e,t),2147483647!==n&&!d&&h(a,o)?(t.expirationTime=2147483647,t=null):(i(e,t,C),t.memoizedProps=o,t=t.child)):t=u(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return a=t.pendingProps,mo.current?null===a&&null===(a=e&&e.memoizedProps)&&r("154"):null!==a&&t.memoizedProps!==a||(a=t.memoizedProps),o=a.children,t.stateNode=null===e?_o(t,t.stateNode,o,n):Po(t,t.stateNode,o,n),t.memoizedProps=a,t.stateNode;case 9:return null;case 4:e:{if(y(t,t.stateNode.containerInfo),a=t.pendingProps,mo.current)null===a&&null==(a=e&&e.memoizedProps)&&r("154");else if(null===a||t.memoizedProps===a){t=u(e,t);break e}null===e?t.child=Po(t,null,a,n):i(e,t,a),t.memoizedProps=a,t=t.child}return t;case 10:e:{if(n=t.pendingProps,mo.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=u(e,t);break e}i(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:c(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?p(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?_o(t,null,null,n):Po(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function St(e,t,n){function o(e){e.effectTag|=4}var a=e.createInstance,i=e.createTextInstance,s=e.appendInitialChild,l=e.finalizeInitialChildren,c=e.prepareUpdate,u=e.persistence,p=t.getRootHostContainer,f=t.popHostContext,d=t.getHostContext,h=t.popHostContainer,m=n.prepareToHydrateHostInstance,y=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,g=void 0,b=void 0,w=void 0;return e.mutation?(g=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},w=function(e,t,n,r){n!==r&&o(t)}):r(u?"235":"236"),{completeWork:function(e,t,n){var u=t.pendingProps;switch(null===u?u=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Ge(mo,t),Ge(ho,t),u=t.stateNode,u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==e&&null!==e.child||(v(t),t.effectTag&=-3),g(t),null;case 5:f(t),n=p();var E=t.type;if(null!==e&&null!=t.stateNode){var O=e.memoizedProps,T=t.stateNode,k=d();T=c(T,E,O,u,n,k),b(e,t,T,E,O,u,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!u)return null===t.stateNode&&r("166"),null;if(e=d(),v(t))m(t,n,e)&&o(t);else{e=a(E,u,n,e,t);e:for(O=t.child;null!==O;){if(5===O.tag||6===O.tag)s(e,O.stateNode);else if(4!==O.tag&&null!==O.child){O.child.return=O,O=O.child;continue}if(O===t)break;for(;null===O.sibling;){if(null===O.return||O.return===t)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}l(e,E,u,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)w(e,t,e.memoizedProps,u);else{if("string"!==typeof u)return null===t.stateNode&&r("166"),null;e=p(),n=d(),v(t)?y(t)&&o(t):t.stateNode=i(u,e,n,t)}return null;case 7:(u=t.memoizedProps)||r("165"),t.tag=8,E=[];e:for((O=t.stateNode)&&(O.return=t);null!==O;){if(5===O.tag||6===O.tag||4===O.tag)r("247");else if(9===O.tag)E.push(O.type);else if(null!==O.child){O.child.return=O,O=O.child;continue}for(;null===O.sibling;){if(null===O.return||O.return===t)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}return O=u.handler,u=O(u.props,E),t.child=Po(t,null!==e?e.child:null,u,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),g(t),null;case 0:r("167");default:r("156")}}}}function Nt(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"===typeof yt&&yt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:a(e.stateNode);break;case 4:c&&s(e)}}function a(e){for(var t=e;;)if(o(t),null===t.child||c&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function i(e){return 5===e.tag||3===e.tag||4===e.tag}function s(e){for(var t=e,n=!1,i=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:i=n.stateNode,s=!1;break e;case 3:case 4:i=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)a(t),s?b(i,t.stateNode):g(i,t.stateNode);else if(4===t.tag?i=t.stateNode.containerInfo:o(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var l=e.getPublicInstance,c=e.mutation;e=e.persistence,c||r(e?"235":"236");var u=c.commitMount,p=c.commitUpdate,f=c.resetTextContent,d=c.commitTextUpdate,h=c.appendChild,m=c.appendChildToContainer,y=c.insertBefore,v=c.insertInContainerBefore,g=c.removeChild,b=c.removeChildFromContainer;return{commitResetTextContent:function(e){f(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(i(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(f(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||i(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var a=e;;){if(5===a.tag||6===a.tag)n?o?v(t,a.stateNode,n):y(t,a.stateNode,n):o?m(t,a.stateNode):h(t,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(e){s(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&p(n,i,a,e,o,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,d(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&Ot(t,n);break;case 3:n=t.updateQueue,null!==n&&Ot(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&u(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(l(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function jt(e){function t(e){return e===So&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,a={current:So},i={current:So},s={current:So};return{getHostContext:function(){return t(a.current)},getRootHostContainer:function(){return t(s.current)},popHostContainer:function(e){Ge(a,e),Ge(i,e),Ge(s,e)},popHostContext:function(e){i.current===e&&(Ge(a,e),Ge(i,e))},pushHostContainer:function(e,t){Je(s,t,e),t=o(t),Je(i,e,e),Je(a,t,e)},pushHostContext:function(e){var r=t(s.current),o=t(a.current);r=n(o,e.type,r),o!==r&&(Je(i,e,e),Je(a,r,e))},resetHostContainer:function(){a.current=So,s.current=So}}}function Mt(e){function t(e,t){var n=new at(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=i(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;f=e}var a=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var i=e.canHydrateInstance,s=e.canHydrateTextInstance,l=e.getNextHydratableSibling,c=e.getFirstHydratableChild,u=e.hydrateInstance,p=e.hydrateTextInstance,f=null,d=null,h=!1;return{enterHydrationState:function(e){return d=c(e.stateNode.containerInfo),f=e,h=!0},resetHydrationState:function(){d=f=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=d;if(r){if(!n(e,r)){if(!(r=l(r))||!n(e,r))return e.effectTag|=2,h=!1,void(f=e);t(f,d)}f=e,d=c(r)}else e.effectTag|=2,h=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){return t=u(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!a(n,e.memoizedProps))for(n=d;n;)t(e,n),n=l(n);return o(e),d=f?l(e.stateNode):null,!0}}}function At(e){function t(e){ae=G=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,Hr.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var n=e.firstEffect}else n=e;else n=e.firstEffect;for(W(),Z=n;null!==Z;){var o=!1,a=void 0;try{for(;null!==Z;){var i=Z.effectTag;if(16&i&&A(Z),128&i){var s=Z.alternate;null!==s&&U(s)}switch(-242&i){case 2:R(Z),Z.effectTag&=-3;break;case 6:R(Z),Z.effectTag&=-3,I(Z.alternate,Z);break;case 4:I(Z.alternate,Z);break;case 8:ie=!0,D(Z),ie=!1}Z=Z.nextEffect}}catch(e){o=!0,a=e}o&&(null===Z&&r("178"),l(Z,a),null!==Z&&(Z=Z.nextEffect))}for(q(),t.current=e,Z=n;null!==Z;){n=!1,o=void 0;try{for(;null!==Z;){var c=Z.effectTag;if(36&c&&L(Z.alternate,Z),128&c&&z(Z),64&c)switch(a=Z,i=void 0,null!==ee&&(i=ee.get(a),ee.delete(a),null==i&&null!==a.alternate&&(a=a.alternate,i=ee.get(a),ee.delete(a))),null==i&&r("184"),a.tag){case 2:a.stateNode.componentDidCatch(i.error,{componentStack:i.componentStack});break;case 3:null===re&&(re=i.error);break;default:r("157")}var u=Z.nextEffect;Z.nextEffect=null,Z=u}}catch(e){n=!0,o=e}n&&(null===Z&&r("178"),l(Z,o),null!==Z&&(Z=Z.nextEffect))}return G=ae=!1,"function"===typeof mt&&mt(e.stateNode),ne&&(ne.forEach(m),ne=null),null!==re&&(e=re,re=null,T(e)),t=t.current.expirationTime,0===t&&(te=ee=null),t}function n(e){for(;;){var t=M(e.alternate,e,Q),n=e.return,r=e.sibling,o=e;if(2147483647===Q||2147483647!==o.expirationTime){if(2!==o.tag&&3!==o.tag)var a=0;else a=o.updateQueue,a=null===a?0:a.expirationTime;for(var i=o.child;null!==i;)0!==i.expirationTime&&(0===a||a>i.expirationTime)&&(a=i.expirationTime),i=i.sibling;o.expirationTime=a}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){e.stateNode.isReadyForCommit=!0;break}e=n}return null}function o(e){var t=N(e.alternate,e,Q);return null===t&&(t=n(e)),Hr.current=null,t}function a(e){var t=j(e.alternate,e,Q);return null===t&&(t=n(e)),Hr.current=null,t}function i(e){if(null!==ee){if(!(0===Q||Q>e))if(Q<=$)for(;null!==J;)J=c(J)?a(J):o(J);else for(;null!==J&&!O();)J=c(J)?a(J):o(J)}else if(!(0===Q||Q>e))if(Q<=$)for(;null!==J;)J=o(J);else for(;null!==J&&!O();)J=o(J)}function s(e,t){if(G&&r("243"),G=!0,e.isReadyForCommit=!1,e!==X||t!==Q||null===J){for(;-1<fo;)po[fo]=null,fo--;yo=_n,ho.current=_n,mo.current=!1,_(),X=e,Q=t,J=it(X.current,null,t)}var n=!1,o=null;try{i(t)}catch(e){n=!0,o=e}for(;n;){if(oe){re=o;break}var s=J;if(null===s)oe=!0;else{var c=l(s,o);if(null===c&&r("183"),!oe){try{for(n=c,o=t,c=n;null!==s;){switch(s.tag){case 2:et(s);break;case 5:P(s);break;case 3:x(s);break;case 4:x(s)}if(s===c||s.alternate===c)break;s=s.return}J=a(n),i(o)}catch(e){n=!0,o=e;continue}break}}}return t=re,oe=G=!1,re=null,null!==t&&T(t),e.isReadyForCommit?e.current.alternate:null}function l(e,t){var n=Hr.current=null,r=!1,o=!1,a=null;if(3===e.tag)n=e,u(e)&&(oe=!0);else for(var i=e.return;null!==i&&null===n;){if(2===i.tag?"function"===typeof i.stateNode.componentDidCatch&&(r=!0,a=Ee(i),n=i,o=!0):3===i.tag&&(n=i),u(i)){if(ie||null!==ne&&(ne.has(i)||null!==i.alternate&&ne.has(i.alternate)))return null;n=null,o=!1}i=i.return}if(null!==n){null===te&&(te=new Set),te.add(n);var s="";i=e;do{e:switch(i.tag){case 0:case 1:case 2:case 5:var l=i._debugOwner,c=i._debugSource,p=Ee(i),f=null;l&&(f=Ee(l)),l=c,p="\n in "+(p||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":f?" (created by "+f+")":"");break e;default:p=""}s+=p,i=i.return}while(i);i=s,e=Ee(e),null===ee&&(ee=new Map),t={componentName:e,componentStack:i,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:a,willRetry:o},ee.set(n,t);try{var d=t.error;d&&d.suppressReactErrorLogging||console.error(d)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}return ae?(null===ne&&(ne=new Set),ne.add(n)):m(n),n}return null===re&&(re=t),null}function c(e){return null!==ee&&(ee.has(e)||null!==e.alternate&&ee.has(e.alternate))}function u(e){return null!==te&&(te.has(e)||null!==e.alternate&&te.has(e.alternate))}function p(){return 20*(1+((y()+100)/20|0))}function f(e){return 0!==Y?Y:G?ae?1:Q:!V||1&e.internalContextTag?p():1}function d(e,t){return h(e,t,!1)}function h(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!G&&n===X&&t<Q&&(J=X=null,Q=0);var o=n,a=t;if(Oe>we&&r("185"),null===o.nextScheduledRoot)o.remainingExpirationTime=a,null===le?(se=le=o,o.nextScheduledRoot=o):(le=le.nextScheduledRoot=o,le.nextScheduledRoot=se);else{var i=o.remainingExpirationTime;(0===i||a<i)&&(o.remainingExpirationTime=a)}pe||(ge?be&&(fe=o,de=1,E(fe,de)):1===a?w(1,null):v(a)),!G&&n===X&&t<Q&&(J=X=null,Q=0)}e=e.return}}function m(e){h(e,1,!0)}function y(){return $=2+((F()-K)/10|0)}function v(e){if(0!==ce){if(e>ce)return;B(ue)}var t=F()-K;ce=e,ue=H(b,{timeout:10*(e-2)-t})}function g(){var e=0,t=null;if(null!==le)for(var n=le,o=se;null!==o;){var a=o.remainingExpirationTime;if(0===a){if((null===n||null===le)&&r("244"),o===o.nextScheduledRoot){se=le=o.nextScheduledRoot=null;break}if(o===se)se=a=o.nextScheduledRoot,le.nextScheduledRoot=a,o.nextScheduledRoot=null;else{if(o===le){le=n,le.nextScheduledRoot=se,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||a<e)&&(e=a,t=o),o===le)break;n=o,o=o.nextScheduledRoot}}n=fe,null!==n&&n===t?Oe++:Oe=0,fe=t,de=e}function b(e){w(0,e)}function w(e,t){for(ve=t,g();null!==fe&&0!==de&&(0===e||de<=e)&&!he;)E(fe,de),g();if(null!==ve&&(ce=0,ue=-1),0!==de&&v(de),ve=null,he=!1,Oe=0,me)throw e=ye,ye=null,me=!1,e}function E(e,n){if(pe&&r("245"),pe=!0,n<=y()){var o=e.finishedWork;null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(e.remainingExpirationTime=t(o)))}else o=e.finishedWork,null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(O()?e.finishedWork=o:e.remainingExpirationTime=t(o)));pe=!1}function O(){return!(null===ve||ve.timeRemaining()>Te)&&(he=!0)}function T(e){null===fe&&r("246"),fe.remainingExpirationTime=0,me||(me=!0,ye=e)}var k=jt(e),C=Mt(e),x=k.popHostContainer,P=k.popHostContext,_=k.resetHostContainer,S=_t(e,k,C,d,f),N=S.beginWork,j=S.beginFailedWork,M=St(e,k,C).completeWork;k=Nt(e,l);var A=k.commitResetTextContent,R=k.commitPlacement,D=k.commitDeletion,I=k.commitWork,L=k.commitLifeCycles,z=k.commitAttachRef,U=k.commitDetachRef,F=e.now,H=e.scheduleDeferredCallback,B=e.cancelDeferredCallback,V=e.useSyncScheduling,W=e.prepareForCommit,q=e.resetAfterCommit,K=F(),$=2,Y=0,G=!1,J=null,X=null,Q=0,Z=null,ee=null,te=null,ne=null,re=null,oe=!1,ae=!1,ie=!1,se=null,le=null,ce=0,ue=-1,pe=!1,fe=null,de=0,he=!1,me=!1,ye=null,ve=null,ge=!1,be=!1,we=1e3,Oe=0,Te=1;return{computeAsyncExpiration:p,computeExpirationForFiber:f,scheduleWork:d,batchedUpdates:function(e,t){var n=ge;ge=!0;try{return e(t)}finally{(ge=n)||pe||w(1,null)}},unbatchedUpdates:function(e){if(ge&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ge;ge=!0;try{e:{var n=Y;Y=1;try{var o=e();break e}finally{Y=n}o=void 0}return o}finally{ge=t,pe&&r("187"),w(1,null)}},deferredUpdates:function(e){var t=Y;Y=p();try{return e()}finally{Y=t}}}}function Rt(e){function t(e){return e=xe(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=At(e);var o=e.computeAsyncExpiration,a=e.computeExpirationForFiber,i=e.scheduleWork;return{createContainer:function(e,t){var n=new at(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,s){var l=t.current;if(n){n=n._reactInternalFiber;var c;e:{for(2===Oe(n)&&2===n.tag||r("170"),c=n;3!==c.tag;){if(Ze(c)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}(c=c.return)||r("171")}c=c.stateNode.context}n=Ze(n)?nt(n,c):c}else n=_n;null===t.context?t.context=n:t.pendingContext=n,t=s,t=void 0===t?null:t,s=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?o():a(l),bt(l,{expirationTime:s,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),i(l,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Pe(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(En({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function Dt(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:To,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function It(e){return!!Go.hasOwnProperty(e)||!Yo.hasOwnProperty(e)&&($o.test(e)?Go[e]=!0:(Yo[e]=!0,!1))}function Lt(e,t,n){var r=i(t);if(r&&a(t,n)){var o=r.mutationMethod;o?o(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?Ut(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else zt(e,t,a(t,n)?n:null)}function zt(e,t,n){It(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Ut(e,t){var n=i(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function Ft(e,t){var n=t.value,r=t.checked;return En({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function Ht(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Bt(e,t){null!=(t=t.checked)&&Lt(e,"checked",t)}function Vt(e,t){Bt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function Wt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function qt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Kt(e,t){return e=En({children:void 0},t),(t=qt(t.children))&&(e.children=t),e}function $t(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Yt(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Gt(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),En({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jt(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Xt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Qt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Zt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,a=t[n];o=null==a||"boolean"===typeof a||""===a?"":r||"number"!==typeof a||0===a||Zo.hasOwnProperty(o)&&Zo[o]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function rn(e,t,n){t&&(ta[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",n()))}function on(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=De(e);t=Jn[t];for(var r=0;r<t.length;r++){var o=t[r];n.hasOwnProperty(o)&&n[o]||("topScroll"===o?je("topScroll","scroll",e):"topFocus"===o||"topBlur"===o?(je("topFocus","focus",e),je("topBlur","blur",e),n.topBlur=!0,n.topFocus=!0):"topCancel"===o?(ne("cancel",!0)&&je("topCancel","cancel",e),n.topCancel=!0):"topClose"===o?(ne("close",!0)&&je("topClose","close",e),n.topClose=!0):Gr.hasOwnProperty(o)&&Ne(o,Gr[o],e),n[o]=!0)}}function sn(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===na&&(r=Zt(e)),r===na?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function ln(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function cn(e,t,n,r){var o=on(t,n);switch(t){case"iframe":case"object":Ne("topLoad","load",e);var a=n;break;case"video":case"audio":for(a in oa)oa.hasOwnProperty(a)&&Ne(a,oa[a],e);a=n;break;case"source":Ne("topError","error",e),a=n;break;case"img":case"image":Ne("topError","error",e),Ne("topLoad","load",e),a=n;break;case"form":Ne("topReset","reset",e),Ne("topSubmit","submit",e),a=n;break;case"details":Ne("topToggle","toggle",e),a=n;break;case"input":Ht(e,n),a=Ft(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"option":a=Kt(e,n);break;case"select":Yt(e,n),a=En({},n,{value:void 0}),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":Jt(e,n),a=Gt(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;default:a=n}rn(t,a,ra);var i,s=a;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?nn(e,l,ra):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&Qo(e,l):"children"===i?"string"===typeof l?("textarea"!==t||""!==l)&&tn(e,l):"number"===typeof l&&tn(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Gn.hasOwnProperty(i)?null!=l&&an(r,i):o?zt(e,i,l):null!=l&&Lt(e,i,l))}switch(t){case"input":ae(e),Wt(e,n);break;case"textarea":ae(e),Qt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?$t(e,!!n.multiple,t,!1):null!=n.defaultValue&&$t(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=On)}}function un(e,t,n,r,o){var a=null;switch(t){case"input":n=Ft(e,n),r=Ft(e,r),a=[];break;case"option":n=Kt(e,n),r=Kt(e,r),a=[];break;case"select":n=En({},n,{value:void 0}),r=En({},r,{value:void 0}),a=[];break;case"textarea":n=Gt(e,n),r=Gt(e,r),a=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=On)}rn(t,r,ra);var i,s;e=null;for(i in n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(s in t=n[i])t.hasOwnProperty(s)&&(e||(e={}),e[s]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Gn.hasOwnProperty(i)?a||(a=[]):(a=a||[]).push(i,null));for(i in r){var l=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&l!==t&&(null!=l||null!=t))if("style"===i)if(t){for(s in t)!t.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(e||(e={}),e[s]="");for(s in l)l.hasOwnProperty(s)&&t[s]!==l[s]&&(e||(e={}),e[s]=l[s])}else e||(a||(a=[]),a.push(i,e)),e=l;else"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(a=a||[]).push(i,""+l)):"children"===i?t===l||"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(i,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&(Gn.hasOwnProperty(i)?(null!=l&&an(o,i),a||t===l||(a=[])):(a=a||[]).push(i,l))}return e&&(a=a||[]).push("style",e),a}function pn(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&Bt(e,o),on(n,r),r=on(n,o);for(var a=0;a<t.length;a+=2){var i=t[a],s=t[a+1];"style"===i?nn(e,s,ra):"dangerouslySetInnerHTML"===i?Qo(e,s):"children"===i?tn(e,s):r?null!=s?zt(e,i,s):e.removeAttribute(i):null!=s?Lt(e,i,s):Ut(e,i)}switch(n){case"input":Vt(e,o);break;case"textarea":Xt(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,n=o.value,null!=n?$t(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?$t(e,!!o.multiple,o.defaultValue,!0):$t(e,!!o.multiple,o.multiple?[]:"",!1))}}function fn(e,t,n,r,o){switch(t){case"iframe":case"object":Ne("topLoad","load",e);break;case"video":case"audio":for(var a in oa)oa.hasOwnProperty(a)&&Ne(a,oa[a],e);break;case"source":Ne("topError","error",e);break;case"img":case"image":Ne("topError","error",e),Ne("topLoad","load",e);break;case"form":Ne("topReset","reset",e),Ne("topSubmit","submit",e);break;case"details":Ne("topToggle","toggle",e);break;case"input":Ht(e,n),Ne("topInvalid","invalid",e),an(o,"onChange");break;case"select":Yt(e,n),Ne("topInvalid","invalid",e),an(o,"onChange");break;case"textarea":Jt(e,n),Ne("topInvalid","invalid",e),an(o,"onChange")}rn(t,n,ra),r=null;for(var i in n)n.hasOwnProperty(i)&&(a=n[i],"children"===i?"string"===typeof a?e.textContent!==a&&(r=["children",a]):"number"===typeof a&&e.textContent!==""+a&&(r=["children",""+a]):Gn.hasOwnProperty(i)&&null!=a&&an(o,i));switch(t){case"input":ae(e),Wt(e,n);break;case"textarea":ae(e),Qt(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=On)}return r}function dn(e,t){return e.nodeValue!==t}function hn(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mn(e){return!(!(e=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))}function yn(e,t,n,o,a){hn(n)||r("200");var i=n._reactRootContainer;if(i)la.updateContainer(t,i,e,a);else{if(!(o=o||mn(n)))for(i=void 0;i=n.lastChild;)n.removeChild(i);var s=la.createContainer(n,o);i=n._reactRootContainer=s,la.unbatchedUpdates(function(){la.updateContainer(t,s,e,a)})}return la.getPublicRootInstance(i)}function vn(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return hn(t)||r("200"),Dt(e,t,null,n)}function gn(e,t){this._reactRootContainer=la.createContainer(e,t)}var bn=n(0),wn=n(73),En=n(16),On=n(11),Tn=n(74),kn=n(75),Cn=n(76),xn=n(77),Pn=n(80),_n=n(31);bn||r("227");var Sn={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},Nn={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=Nn,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},i=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var s in n){jn.hasOwnProperty(s)&&r("48",s);var l=s.toLowerCase(),c=n[s];l={attributeName:l,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:o(c,t.MUST_USE_PROPERTY),hasBooleanValue:o(c,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(c,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(c,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(c,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:o(c,t.HAS_STRING_BOOLEAN_VALUE)},1>=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||r("50",s),i.hasOwnProperty(s)&&(l.attributeName=i[s]),a.hasOwnProperty(s)&&(l.attributeNamespace=a[s]),e.hasOwnProperty(s)&&(l.mutationMethod=e[s]),jn[s]=l}}},jn={},Mn=Nn,An=Mn.MUST_USE_PROPERTY,Rn=Mn.HAS_BOOLEAN_VALUE,Dn=Mn.HAS_NUMERIC_VALUE,In=Mn.HAS_POSITIVE_NUMERIC_VALUE,Ln=Mn.HAS_OVERLOADED_BOOLEAN_VALUE,zn=Mn.HAS_STRING_BOOLEAN_VALUE,Un={Properties:{allowFullScreen:Rn,async:Rn,autoFocus:Rn,autoPlay:Rn,capture:Ln,checked:An|Rn,cols:In,contentEditable:zn,controls:Rn,default:Rn,defer:Rn,disabled:Rn,download:Ln,draggable:zn,formNoValidate:Rn,hidden:Rn,loop:Rn,multiple:An|Rn,muted:An|Rn,noValidate:Rn,open:Rn,playsInline:Rn,readOnly:Rn,required:Rn,reversed:Rn,rows:In,rowSpan:Dn,scoped:Rn,seamless:Rn,selected:An|Rn,size:In,start:Dn,span:In,spellCheck:zn,style:0,tabIndex:0,itemScope:Rn,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:zn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},Fn=Mn.HAS_STRING_BOOLEAN_VALUE,Hn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Bn={Properties:{autoReverse:Fn,externalResourcesRequired:Fn,preserveAlpha:Fn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Hn.xlink,xlinkArcrole:Hn.xlink,xlinkHref:Hn.xlink,xlinkRole:Hn.xlink,xlinkShow:Hn.xlink,xlinkTitle:Hn.xlink,xlinkType:Hn.xlink,xmlBase:Hn.xml,xmlLang:Hn.xml,xmlSpace:Hn.xml}},Vn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Vn,s);Bn.Properties[t]=0,Bn.DOMAttributeNames[t]=e}),Mn.injectDOMPropertyConfig(Un),Mn.injectDOMPropertyConfig(Bn);var Wn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!==typeof e.invokeGuardedCallback&&r("197"),l=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,s,c){l.apply(Wn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,s,l){if(Wn.invokeGuardedCallback.apply(this,arguments),Wn.hasCaughtError()){var c=Wn.clearCaughtError();Wn._hasRethrowError||(Wn._hasRethrowError=!0,Wn._rethrowError=c)}},rethrowCaughtError:function(){return c.apply(Wn,arguments)},hasCaughtError:function(){return Wn._hasCaughtError},clearCaughtError:function(){if(Wn._hasCaughtError){var e=Wn._caughtError;return Wn._caughtError=null,Wn._hasCaughtError=!1,e}r("198")}},qn=null,Kn={},$n=[],Yn={},Gn={},Jn={},Xn=Object.freeze({plugins:$n,eventNameDispatchConfigs:Yn,registrationNameModules:Gn,registrationNameDependencies:Jn,possibleRegistrationNames:null,injectEventPluginOrder:f,injectEventPluginsByName:d}),Qn=null,Zn=null,er=null,tr=null,nr={injectEventPluginOrder:f,injectEventPluginsByName:d},rr=Object.freeze({injection:nr,getListener:w,extractEvents:E,enqueueEvents:O,processEventQueue:T}),or=Math.random().toString(36).slice(2),ar="__reactInternalInstance$"+or,ir="__reactEventHandlers$"+or,sr=Object.freeze({precacheFiberNode:function(e,t){t[ar]=e},getClosestInstanceFromNode:k,getInstanceFromNode:function(e){return e=e[ar],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:C,getFiberCurrentPropsFromNode:x,updateFiberProps:function(e,t){e[ir]=t}}),lr=Object.freeze({accumulateTwoPhaseDispatches:R,accumulateTwoPhaseDispatchesSkipTarget:function(e){y(e,j)},accumulateEnterLeaveDispatches:D,accumulateDirectDispatches:function(e){y(e,A)}}),cr=null,ur={_root:null,_startText:null,_fallbackText:null},pr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),fr={type:null,target:null,currentTarget:On.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};En(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=On.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=On.thatReturnsTrue)},persist:function(){this.isPersistent=On.thatReturnsTrue},isPersistent:On.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<pr.length;t++)this[pr[t]]=null}}),U.Interface=fr,U.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;En(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=En({},this.Interface,t),e.augmentClass=this.augmentClass,B(e)},B(U),U.augmentClass(V,{data:null}),U.augmentClass(W,{data:null});var dr=[9,13,27,32],hr=wn.canUseDOM&&"CompositionEvent"in window,mr=null;wn.canUseDOM&&"documentMode"in document&&(mr=document.documentMode);var yr;if(yr=wn.canUseDOM&&"TextEvent"in window&&!mr){var vr=window.opera;yr=!("object"===typeof vr&&"function"===typeof vr.version&&12>=parseInt(vr.version(),10))}var gr,br=yr,wr=wn.canUseDOM&&(!hr||mr&&8<mr&&11>=mr),Er=String.fromCharCode(32),Or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Tr=!1,kr=!1,Cr={eventTypes:Or,extractEvents:function(e,t,n,r){var o;if(hr)e:{switch(e){case"topCompositionStart":var a=Or.compositionStart;break e;case"topCompositionEnd":a=Or.compositionEnd;break e;case"topCompositionUpdate":a=Or.compositionUpdate;break e}a=void 0}else kr?q(e,n)&&(a=Or.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=Or.compositionStart);return a?(wr&&(kr||a!==Or.compositionStart?a===Or.compositionEnd&&kr&&(o=L()):(ur._root=r,ur._startText=z(),kr=!0)),a=V.getPooled(a,t,n,r),o?a.data=o:null!==(o=K(n))&&(a.data=o),R(a),o=a):o=null,(e=br?$(e,n):Y(e,n))?(t=W.getPooled(Or.beforeInput,t,n,r),t.data=e,R(t)):t=null,[o,t]}},xr=null,Pr=null,_r=null,Sr={injectFiberControlledHostComponent:function(e){xr=e}},Nr=Object.freeze({injection:Sr,enqueueStateRestore:J,restoreStateIfNeeded:X}),jr=!1,Mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};wn.canUseDOM&&(gr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Ar={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Rr=null,Dr=null,Ir=!1;wn.canUseDOM&&(Ir=ne("input")&&(!document.documentMode||9<document.documentMode));var Lr={eventTypes:Ar,_isInputEventSupported:Ir,extractEvents:function(e,t,n,r){var o=t?C(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=ue;else if(ee(o))if(Ir)i=ye;else{i=he;var s=de}else!(a=o.nodeName)||"input"!==a.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(i=me);if(i&&(i=i(e,t)))return se(i,n,r);s&&s(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};U.augmentClass(ve,{view:null,detail:null});var zr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};ve.augmentClass(we,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:be,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Ur={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Fr={eventTypes:Ur,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?k(t):null):e=null,e===t)return null;var a=null==e?o:C(e);o=null==t?o:C(t);var i=we.getPooled(Ur.mouseLeave,e,n,r);return i.type="mouseleave",i.target=a,i.relatedTarget=o,n=we.getPooled(Ur.mouseEnter,t,n,r),n.type="mouseenter",n.target=o,n.relatedTarget=a,D(i,n,e,t),[i,n]}},Hr=bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Br=[],Vr=!0,Wr=void 0,qr=Object.freeze({get _enabled(){return Vr},get _handleTopLevel(){return Wr},setHandleTopLevel:function(e){Wr=e},setEnabled:Se,isEnabled:function(){return Vr},trapBubbledEvent:Ne,trapCapturedEvent:je,dispatchEvent:Me}),Kr={animationend:Ae("Animation","AnimationEnd"),animationiteration:Ae("Animation","AnimationIteration"),animationstart:Ae("Animation","AnimationStart"),transitionend:Ae("Transition","TransitionEnd")},$r={},Yr={};wn.canUseDOM&&(Yr=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);var Gr={topAbort:"abort",topAnimationEnd:Re("animationend")||"animationend",topAnimationIteration:Re("animationiteration")||"animationiteration",topAnimationStart:Re("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Re("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Jr={},Xr=0,Qr="_reactListenersID"+(""+Math.random()).slice(2),Zr=wn.canUseDOM&&"documentMode"in document&&11>=document.documentMode,eo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},to=null,no=null,ro=null,oo=!1,ao={eventTypes:eo,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=De(a),o=Jn.onSelect;for(var i=0;i<o.length;i++){var s=o[i];if(!a.hasOwnProperty(s)||!a[s]){a=!1;break e}}a=!0}o=!a}if(o)return null;switch(a=t?C(t):window,e){case"topFocus":(ee(a)||"true"===a.contentEditable)&&(to=a,no=t,ro=null);break;case"topBlur":ro=no=to=null;break;case"topMouseDown":oo=!0;break;case"topContextMenu":case"topMouseUp":return oo=!1,Ue(n,r);case"topSelectionChange":if(Zr)break;case"topKeyDown":case"topKeyUp":return Ue(n,r)}return null}};U.augmentClass(Fe,{animationName:null,elapsedTime:null,pseudoElement:null}),U.augmentClass(He,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ve.augmentClass(Be,{relatedTarget:null});var io={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},so={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};ve.augmentClass(We,{key:function(e){if(e.key){var t=io[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Ve(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?so[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:be,charCode:function(e){return"keypress"===e.type?Ve(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ve(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),we.augmentClass(qe,{dataTransfer:null}),ve.augmentClass(Ke,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:be}),U.augmentClass($e,{propertyName:null,elapsedTime:null,pseudoElement:null}),we.augmentClass(Ye,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var lo={},co={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},lo[e]=n,co[t]=n});var uo={eventTypes:lo,extractEvents:function(e,t,n,r){var o=co[e];if(!o)return null;switch(e){case"topKeyPress":if(0===Ve(n))return null;case"topKeyDown":case"topKeyUp":e=We;break;case"topBlur":case"topFocus":e=Be;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=we;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=qe;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=Ke;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=Fe;break;case"topTransitionEnd":e=$e;break;case"topScroll":e=ve;break;case"topWheel":e=Ye;break;case"topCopy":case"topCut":case"topPaste":e=He;break;default:e=U}return t=e.getPooled(o,t,n,r),R(t),t}};Wr=function(e,t,n,r){e=E(e,t,n,r),O(e),T(!1)},nr.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Qn=sr.getFiberCurrentPropsFromNode,Zn=sr.getInstanceFromNode,er=sr.getNodeFromInstance,nr.injectEventPluginsByName({SimpleEventPlugin:uo,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Lr,SelectEventPlugin:ao,BeforeInputEventPlugin:Cr});var po=[],fo=-1;new Set;var ho={current:_n},mo={current:!1},yo=_n,vo=null,go=null,bo="function"===typeof Symbol&&Symbol.for,wo=bo?Symbol.for("react.element"):60103,Eo=bo?Symbol.for("react.call"):60104,Oo=bo?Symbol.for("react.return"):60105,To=bo?Symbol.for("react.portal"):60106,ko=bo?Symbol.for("react.fragment"):60107,Co="function"===typeof Symbol&&Symbol.iterator,xo=Array.isArray,Po=Pt(!0),_o=Pt(!1),So={},No=Object.freeze({default:Rt}),jo=No&&Rt||No,Mo=jo.default?jo.default:jo,Ao="object"===typeof performance&&"function"===typeof performance.now,Ro=void 0;Ro=Ao?function(){return performance.now()}:function(){return Date.now()};var Do=void 0,Io=void 0;if(wn.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var Lo,zo=null,Uo=!1,Fo=-1,Ho=!1,Bo=0,Vo=33,Wo=33;Lo=Ao?{didTimeout:!1,timeRemaining:function(){var e=Bo-performance.now();return 0<e?e:0}}:{didTimeout:!1,timeRemaining:function(){var e=Bo-Date.now();return 0<e?e:0}};var qo="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===qo){if(Uo=!1,e=Ro(),0>=Bo-e){if(!(-1!==Fo&&Fo<=e))return void(Ho||(Ho=!0,requestAnimationFrame(Ko)));Lo.didTimeout=!0}else Lo.didTimeout=!1;Fo=-1,e=zo,zo=null,null!==e&&e(Lo)}},!1);var Ko=function(e){Ho=!1;var t=e-Bo+Wo;t<Wo&&Vo<Wo?(8>t&&(t=8),Wo=t<Vo?Vo:t):Vo=t,Bo=e+Wo,Uo||(Uo=!0,window.postMessage(qo,"*"))};Do=function(e,t){return zo=e,null!=t&&"number"===typeof t.timeout&&(Fo=Ro()+t.timeout),Ho||(Ho=!0,requestAnimationFrame(Ko)),0},Io=function(){zo=null,Uo=!1,Fo=-1}}else Do=window.requestIdleCallback,Io=window.cancelIdleCallback;else Do=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})})},Io=function(e){clearTimeout(e)};var $o=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yo={},Go={},Jo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Xo=void 0,Qo=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Jo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Xo=Xo||document.createElement("div"),Xo.innerHTML="<svg>"+t+"</svg>",t=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Zo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ea=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){ea.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});var ta=En({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),na=Jo.html,ra=On.thatReturns(""),oa={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},aa=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:cn,diffProperties:un,updateProperties:pn,diffHydratedProperties:fn,diffHydratedText:dn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Vt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=x(o);a||r("90"),ie(o),Vt(o,a)}}}break;case"textarea":Xt(e,n);break;case"select":null!=(t=n.value)&&$t(e,!!n.multiple,t,!1)}}});Sr.injectFiberControlledHostComponent(aa);var ia=null,sa=null,la=Mo({getRootHostContext:function(e){var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:en(null,"");break;default:t=8===t?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=en(e,t)}return e},getChildHostContext:function(e,t){return en(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){ia=Vr;var e=kn();if(ze(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var a=0,i=-1,s=-1,l=0,c=0,u=e,p=null;t:for(;;){for(var f;u!==t||0!==r&&3!==u.nodeType||(i=a+r),u!==o||0!==n&&3!==u.nodeType||(s=a+n),3===u.nodeType&&(a+=u.nodeValue.length),null!==(f=u.firstChild);)p=u,u=f;for(;;){if(u===e)break t;if(p===t&&++l===r&&(i=a),p===o&&++c===n&&(s=a),null!==(f=u.nextSibling))break;u=p,p=u.parentNode}u=f}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;sa={focusedElem:e,selectionRange:t},Se(!1)},resetAfterCommit:function(){var e=sa,t=kn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&xn(document.documentElement,n)){if(ze(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(window.getSelection){t=window.getSelection();var o=n[I()].length;e=Math.min(r.start,o),r=void 0===r.end?e:Math.min(r.end,o),!t.extend&&e>r&&(o=r,r=e,e=o),o=Le(n,e);var a=Le(n,r);if(o&&a&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)){var i=document.createRange();i.setStart(o.node,o.offset),t.removeAllRanges(),e>r?(t.addRange(i),t.extend(a.node,a.offset)):(i.setEnd(a.node,a.offset),t.addRange(i))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(Pn(n),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}sa=null,Se(ia),ia=null},createInstance:function(e,t,n,r,o){return e=sn(e,t,n,r),e[ar]=o,e[ir]=t,e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){cn(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return un(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=ln(e,t),e[ar]=r,e},now:Ro,mutation:{commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){e[ir]=o,pn(e,t,n,r,o)},resetTextContent:function(e){e.textContent=""},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){8===e.nodeType?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)}},hydration:{canHydrateInstance:function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e},canHydrateTextInstance:function(e,t){return""===t||3!==e.nodeType?null:e},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,a){return e[ar]=a,e[ir]=n,fn(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return e[ar]=n,dn(e,t)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Do,cancelDeferredCallback:Io,useSyncScheduling:!0});Q=la.batchedUpdates,gn.prototype.render=function(e,t){la.updateContainer(e,this._reactRootContainer,null,t)},gn.prototype.unmount=function(e){la.updateContainer(null,this._reactRootContainer,null,e)};var ca={createPortal:vn,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(t)return la.findHostInstance(t);"function"===typeof e.render?r("188"):r("213",Object.keys(e))},hydrate:function(e,t,n){return yn(null,e,t,!0,n)},render:function(e,t,n){return yn(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return(null==e||void 0===e._reactInternalFiber)&&r("38"),yn(e,t,n,!1,o)},unmountComponentAtNode:function(e){return hn(e)||r("40"),!!e._reactRootContainer&&(la.unbatchedUpdates(function(){yn(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:vn,unstable_batchedUpdates:Z,unstable_deferredUpdates:la.deferredUpdates,flushSync:la.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:rr,EventPluginRegistry:Xn,EventPropagators:lr,ReactControlledComponent:Nr,ReactDOMComponentTree:sr,ReactDOMEventListener:qr}};la.injectIntoDevTools({findFiberByHostInstance:k,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var ua=Object.freeze({default:ca}),pa=ua&&ca||ua;e.exports=pa.default?pa.default:pa},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r=n(11),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(78);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(79);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";var r=n(82);n.d(t,"a",function(){return r.a});var o=(n(87),n(36),n(89),n(92),n(95),n(97),n(37));n.d(t,"b",function(){return o.a});n(19),n(103),n(105),n(107),n(108)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),l=n(0),c=n.n(l),u=n(1),p=n.n(u),f=n(86),d=n.n(f),h=n(19),m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=d()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,n){"use strict";var r=n(11),o=n(84),a=n(85);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,l){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,s,l],p=0;c=new Error(t.replace(/%s/g,function(){return u[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),l=n(3),c=r(l),u=n(17),p=n(9),f=n(18),d=r(f),h=n(35),m=function(){try{return window.history.state||{}}catch(e){return{}}},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),i=e.forceRefresh,l=void 0!==i&&i,f=e.getUserConfirmation,y=void 0===f?h.getConfirmation:f,v=e.keyLength,g=void 0===v?6:v,b=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,i=o.search,l=o.hash,c=a+i+l;return(0,s.default)(!b||(0,p.hasBasename)(c,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+b+'".'),b&&(c=(0,p.stripBasename)(c,b)),(0,u.createLocation)(c,r,n)},E=function(){return Math.random().toString(36).substr(2,g)},O=(0,d.default)(),T=function(e){a(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)},k=function(e){(0,h.isExtraneousPopstateEvent)(e)||P(w(e.state))},C=function(){P(w(m()))},x=!1,P=function(e){if(x)x=!1,T();else{O.confirmTransitionTo(e,"POP",y,function(t){t?T({action:"POP",location:e}):_(e)})}},_=function(e){var t=B.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(x=!0,R(o))},S=w(m()),N=[S.key],j=function(e){return b+(0,p.createPath)(e)},M=function(e,r){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,u.createLocation)(e,r,E(),B.location);O.confirmTransitionTo(a,"PUSH",y,function(e){if(e){var r=j(a),o=a.key,i=a.state;if(n)if(t.pushState({key:o,state:i},null,r),l)window.location.href=r;else{var c=N.indexOf(B.location.key),u=N.slice(0,-1===c?0:c+1);u.push(a.key),N=u,T({action:"PUSH",location:a})}else(0,s.default)(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},A=function(e,r){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,u.createLocation)(e,r,E(),B.location);O.confirmTransitionTo(a,"REPLACE",y,function(e){if(e){var r=j(a),o=a.key,i=a.state;if(n)if(t.replaceState({key:o,state:i},null,r),l)window.location.replace(r);else{var c=N.indexOf(B.location.key);-1!==c&&(N[c]=a.key),T({action:"REPLACE",location:a})}else(0,s.default)(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},R=function(e){t.go(e)},D=function(){return R(-1)},I=function(){return R(1)},L=0,z=function(e){L+=e,1===L?((0,h.addEventListener)(window,"popstate",k),r&&(0,h.addEventListener)(window,"hashchange",C)):0===L&&((0,h.removeEventListener)(window,"popstate",k),r&&(0,h.removeEventListener)(window,"hashchange",C))},U=!1,F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},H=function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}},B={length:t.length,action:"POP",location:S,createHref:j,push:M,replace:A,go:R,goBack:D,goForward:I,block:F,listen:H};return B};t.default=y},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),l=n(0),c=n.n(l),u=n(1),p=n.n(u),f=n(88),d=n.n(f),h=n(19),m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=d()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),i=r(a),s=n(3),l=r(s),c=n(17),u=n(9),p=n(18),f=r(p),d=n(35),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,u.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:u.stripLeadingSlash,decodePath:u.addLeadingSlash},slash:{encodePath:u.addLeadingSlash,decodePath:u.addLeadingSlash}},m=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},y=function(e){return window.location.hash=e},v=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,a=void 0===r?d.getConfirmation:r,s=e.hashType,p=void 0===s?"slash":s,g=e.basename?(0,u.stripTrailingSlash)((0,u.addLeadingSlash)(e.basename)):"",b=h[p],w=b.encodePath,E=b.decodePath,O=function(){var e=E(m());return(0,i.default)(!g||(0,u.hasBasename)(e,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+g+'".'),g&&(e=(0,u.stripBasename)(e,g)),(0,c.createLocation)(e)},T=(0,f.default)(),k=function(e){o(q,e),q.length=t.length,T.notifyListeners(q.location,q.action)},C=!1,x=null,P=function(){var e=m(),t=w(e);if(e!==t)v(t);else{var n=O(),r=q.location;if(!C&&(0,c.locationsAreEqual)(r,n))return;if(x===(0,u.createPath)(n))return;x=null,_(n)}},_=function(e){if(C)C=!1,k();else{T.confirmTransitionTo(e,"POP",a,function(t){t?k({action:"POP",location:e}):S(e)})}},S=function(e){var t=q.location,n=A.lastIndexOf((0,u.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,u.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(C=!0,L(o))},N=m(),j=w(N);N!==j&&v(j);var M=O(),A=[(0,u.createPath)(M)],R=function(e){return"#"+w(g+(0,u.createPath)(e))},D=function(e,t){(0,i.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,q.location);T.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=(0,u.createPath)(n),r=w(g+t);if(m()!==r){x=t,y(r);var o=A.lastIndexOf((0,u.createPath)(q.location)),a=A.slice(0,-1===o?0:o+1);a.push(t),A=a,k({action:"PUSH",location:n})}else(0,i.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),k()}})},I=function(e,t){(0,i.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,q.location);T.confirmTransitionTo(n,"REPLACE",a,function(e){if(e){var t=(0,u.createPath)(n),r=w(g+t);m()!==r&&(x=t,v(r));var o=A.indexOf((0,u.createPath)(q.location));-1!==o&&(A[o]=t),k({action:"REPLACE",location:n})}})},L=function(e){(0,i.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},z=function(){return L(-1)},U=function(){return L(1)},F=0,H=function(e){F+=e,1===F?(0,d.addEventListener)(window,"hashchange",P):0===F&&(0,d.removeEventListener)(window,"hashchange",P)},B=!1,V=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=T.setPrompt(e);return B||(H(1),B=!0),function(){return B&&(B=!1,H(-1)),t()}},W=function(e){var t=T.appendListener(e);return H(1),function(){H(-1),t()}},q={length:t.length,action:"POP",location:M,createHref:R,push:D,replace:I,go:L,goBack:z,goForward:U,block:V,listen:W};return q};t.default=g},function(e,t,n){"use strict";var r=n(90);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),l=n(0),c=n.n(l),u=n(1),p=n.n(u),f=n(91),d=n.n(f),h=n(20),m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=d()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return c.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(c.a.Component);m.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),l=n(9),c=n(17),u=n(18),p=r(u),f=function(e,t,n){return Math.min(Math.max(e,t),n)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,u=void 0===i?0:i,d=e.keyLength,h=void 0===d?6:d,m=(0,p.default)(),y=function(e){a(S,e),S.length=S.entries.length,m.notifyListeners(S.location,S.action)},v=function(){return Math.random().toString(36).substr(2,h)},g=f(u,0,r.length-1),b=r.map(function(e){return"string"===typeof e?(0,c.createLocation)(e,void 0,v()):(0,c.createLocation)(e,void 0,e.key||v())}),w=l.createPath,E=function(e,n){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,v(),S.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=S.index,n=t+1,o=S.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(e,n){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,v(),S.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(S.entries[S.index]=r,y({action:"REPLACE",location:r}))})},T=function(e){var n=f(S.index+e,0,S.entries.length-1),r=S.entries[n];m.confirmTransitionTo(r,"POP",t,function(e){e?y({action:"POP",location:r,index:n}):y()})},k=function(){return T(-1)},C=function(){return T(1)},x=function(e){var t=S.index+e;return t>=0&&t<S.entries.length},P=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},_=function(e){return m.appendListener(e)},S={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:w,push:E,replace:O,go:T,goBack:k,goForward:C,canGo:x,block:P,listen:_};return S};t.default=d},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(0),a=n.n(o),i=n(1),s=n.n(i),l=n(37),c=n(36),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e){var t=e.to,n=e.exact,o=e.strict,i=e.location,s=e.activeClassName,f=e.className,d=e.activeStyle,h=e.style,m=e.isActive,y=e.ariaCurrent,v=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return a.a.createElement(l.a,{path:"object"===("undefined"===typeof t?"undefined":p(t))?t.pathname:t,exact:n,strict:o,location:i,children:function(e){var n=e.location,r=e.match,o=!!(m?m(r,n):r);return a.a.createElement(c.a,u({to:t,className:o?[f,s].filter(function(e){return e}).join(" "):f,style:o?u({},h,d):h,"aria-current":o&&y},v))}})};f.propTypes={to:c.a.propTypes.to,exact:s.a.bool,strict:s.a.bool,location:s.a.object,activeClassName:s.a.string,className:s.a.string,activeStyle:s.a.object,style:s.a.object,isActive:s.a.func,ariaCurrent:s.a.oneOf(["page","step","location","true"])},f.defaultProps={activeClassName:"active",ariaCurrent:"true"}},function(e,t,n){function r(e,t){for(var n,r=[],o=0,a=0,i="",s=t&&t.delimiter||"/";null!=(n=g.exec(e));){var u=n[0],p=n[1],f=n.index;if(i+=e.slice(a,f),a=f+u.length,p)i+=p[1];else{var d=e[a],h=n[2],m=n[3],y=n[4],v=n[5],b=n[6],w=n[7];i&&(r.push(i),i="");var E=null!=h&&null!=d&&d!==h,O="+"===b||"*"===b,T="?"===b||"*"===b,k=n[2]||s,C=y||v;r.push({name:m||o++,prefix:h||"",delimiter:k,optional:T,repeat:O,partial:E,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+l(k)+"]+?"})}}return a<e.length&&(i+=e.substr(a)),i&&r.push(i),r}function o(e,t){return s(r(e,t))}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var o="",s=n||{},l=r||{},c=l.pretty?a:encodeURIComponent,u=0;u<e.length;u++){var p=e[u];if("string"!==typeof p){var f,d=s[p.name];if(null==d){if(p.optional){p.partial&&(o+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(v(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=c(d[h]),!t[u].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?i(d):c(d),!t[u].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');o+=p.prefix+f}}else o+=p}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}function d(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(y(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",p(n)),t)}function h(e,t,n){return m(r(e,n),t,n)}function m(e,t,n){v(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,a="",i=0;i<e.length;i++){var s=e[i];if("string"===typeof s)a+=l(s);else{var c=l(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+c+f+")*"),f=s.optional?s.partial?c+"("+f+")?":"(?:"+c+"("+f+"))?":c+"("+f+")",a+=f}}var d=l(n.delimiter||"/"),h=a.slice(-d.length)===d;return r||(a=(h?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":r&&h?"":"(?="+d+"|$)",u(new RegExp("^"+a,p(n)),t)}function y(e,t,n){return v(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?f(e,t):v(e)?d(e,t,n):h(e,t,n)}var v=n(94);e.exports=y,e.exports.parse=r,e.exports.compile=o,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=m;var g=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=n(96);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(1),c=n.n(l),u=n(3),p=n.n(u),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(s.a.Component);f.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,n){"use strict";var r=n(98);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(1),c=n.n(l),u=n(2),p=n.n(u),f=n(3),d=n.n(f),h=n(99),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(h.a)(e.to),n=Object(h.a)(this.props.to);if(Object(h.b)(t,n))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(s.a.Component);m.propTypes={push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired},t.a=m},function(e,t,n){"use strict";var r=(n(100),n(101),n(102),n(12));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return r.b});n(10)},function(e,t,n){"use strict";var r=n(2),o=(n.n(r),n(3));n.n(o),n(12),n(10),n(22),n(39),"function"===typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=n(2),o=(n.n(r),n(3)),a=(n.n(o),n(12),n(10));n(22),n(39),Object.assign,a.f,a.a,a.a,a.a},function(e,t,n){"use strict";var r=n(2);n.n(r),n(10),n(12),n(22),"function"===typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=n(104);r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(2),l=n.n(s),c=n(3),u=n.n(c),p=n(0),f=n.n(p),d=n(1),h=n.n(d),m=n(9),y=(n.n(m),n(20)),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,a=e.hash,i=void 0===a?"":a;return{pathname:n,search:"?"===o?"":o,hash:"#"===i?"":i}},b=function(e,t){return e?v({},t,{pathname:Object(m.addLeadingSlash)(e)+t.pathname}):t},w=function(e,t){if(!e)return t;var n=Object(m.addLeadingSlash)(e);return 0!==t.pathname.indexOf(n)?t:v({},t,{pathname:t.pathname.substr(n.length)})},E=function(e){return"string"===typeof e?Object(m.parsePath)(e):g(e)},O=function(e){return"string"===typeof e?e:Object(m.createPath)(e)},T=function(e){return function(){u()(!1,"You cannot %s with <StaticRouter>",e)}},k=function(){},C=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,e.call.apply(e,[this].concat(l))),r.createHref=function(e){return Object(m.addLeadingSlash)(r.props.basename+O(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=b(n,E(e)),o.url=O(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=b(n,E(e)),o.url=O(o.location)},r.handleListen=function(){return k},r.handleBlock=function(){return k},i=n,a(r,i)}return i(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){l()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),o=r(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:w(t,E(n)),push:this.handlePush,replace:this.handleReplace,go:T("go"),goBack:T("goBack"),goForward:T("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(y.a,v({},o,{history:a}))},t}(f.a.Component);C.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},C.defaultProps={basename:"",location:"/"},C.childContextTypes={router:h.a.object.isRequired},t.a=C},function(e,t,n){"use strict";var r=n(106);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(1),c=n.n(l),u=n(2),p=n.n(u),f=n(3),d=n.n(f),h=n(21),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.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.'),p()(!(!e.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.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return s.a.Children.forEach(t,function(t){if(s.a.isValidElement(t)){var a=t.props,i=a.path,l=a.exact,c=a.strict,u=a.sensitive,p=a.from,f=i||p;null==r&&(o=t,r=f?Object(h.a)(n.pathname,{path:f,exact:l,strict:c,sensitive:u}):e.match)}}),r?s.a.cloneElement(o,{location:n,computedMatch:r}):null},t}(s.a.Component);m.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},m.propTypes={children:c.a.node,location:c.a.object},t.a=m},function(e,t,n){"use strict";var r=n(21);r.a},function(e,t,n){"use strict";var r=n(109);r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(0),a=n.n(o),i=n(1),s=n.n(i),l=n(40),c=n.n(l),u=n(38),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(e){var t=function(t){var n=t.wrappedComponentRef,o=r(t,["wrappedComponentRef"]);return a.a.createElement(u.a,{render:function(t){return a.a.createElement(e,p({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:s.a.func},c()(t,e)};t.a=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=(n.n(i),n(1)),l=n.n(s),c=n(41);n(23);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],s=n||t+"Subscription",u=function(e){function n(a,i){r(this,n);var s=o(this,e.call(this,a,i));return s[t]=a.store,s}return a(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[s]=null,e},n.prototype.render=function(){return i.Children.only(this.props.children)},n}(i.Component);return u.propTypes={store:c.a.isRequired,children:l.a.element.isRequired},u.childContextTypes=(e={},e[t]=c.a.isRequired,e[s]=c.b,e),u}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=[],t=[];return{clear:function(){t=a,e=a},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==a&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return s});var a=null,i={notify:function(){}},s=function(){function e(t,n,o){r(this,e),this.store=t,this.parentSub=n,this.onStateChange=o,this.unsubscribe=null,this.listeners=i}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=o())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=i)},e}()},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function a(e,t){return e===t}var i=n(42),s=n(113),l=n(114),c=n(129),u=n(130),p=n(131),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?i.a:t,d=e.mapStateToPropsFactories,h=void 0===d?c.a:d,m=e.mapDispatchToPropsFactories,y=void 0===m?l.a:m,v=e.mergePropsFactories,g=void 0===v?u.a:v,b=e.selectorFactory,w=void 0===b?p.a:b;return function(e,t,i){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=l.pure,u=void 0===c||c,p=l.areStatesEqual,d=void 0===p?a:p,m=l.areOwnPropsEqual,v=void 0===m?s.a:m,b=l.areStatePropsEqual,E=void 0===b?s.a:b,O=l.areMergedPropsEqual,T=void 0===O?s.a:O,k=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=o(e,h,"mapStateToProps"),x=o(t,y,"mapDispatchToProps"),P=o(i,g,"mergeProps");return n(w,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:x,initMergeProps:P,pure:u,areStatesEqual:d,areOwnPropsEqual:v,areStatePropsEqual:E,areMergedPropsEqual:T},k))}}()},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}t.a=o;var a=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(s.b)(e,"mapDispatchToProps"):void 0}function o(e){return e?void 0:Object(s.a)(function(e){return{dispatch:e}})}function a(e){return e&&"object"===typeof e?Object(s.a)(function(t){return Object(i.b)(e,t)}):void 0}var i=n(24),s=n(48);t.a=[r,o,a]},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?l:s:c&&c in Object(e)?Object(a.a)(e):Object(i.a)(e)}var o=n(44),a=n(118),i=n(119),s="[object Null]",l="[object Undefined]",c=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(117),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(8))},function(e,t,n){"use strict";function r(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(44),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,l=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return a.call(e)}var o=Object.prototype,a=o.toString;t.a=r},function(e,t,n){"use strict";var r=n(121),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){e.exports=n(124)},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(125),i=function(e){return e&&e.__esModule?e:{default:e}}(a);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var s=(0,i.default)(o);t.default=s}).call(t,n(8),n(45)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:i.a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function a(e){for(var t=Object.keys(e),n={},a=0;a<t.length;a++){var i=t[a];"function"===typeof e[i]&&(n[i]=e[i])}var s=Object.keys(n),l=void 0;try{o(n)}catch(e){l=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var o=!1,a={},i=0;i<s.length;i++){var c=s[i],u=n[c],p=e[c],f=u(p,t);if("undefined"===typeof f){var d=r(c,t);throw new Error(d)}a[c]=f,o=o||f!==p}return o?a:e}}t.a=a;var i=n(43);n(25),n(46)},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"===typeof e)return r(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},a=0;a<n.length;a++){var i=n[a],s=e[i];"function"===typeof s&&(o[i]=r(s,t))}return o}t.a=o},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var s=e(n,r,i),l=s.dispatch,c=[],u={getState:s.getState,dispatch:function(e){return l(e)}};return c=t.map(function(e){return e(u)}),l=o.a.apply(void 0,c)(s.dispatch),a({},s,{dispatch:l})}}}t.a=r;var o=n(47),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(a.b)(e,"mapStateToProps"):void 0}function o(e){return e?void 0:Object(a.a)(function(){return{}})}var a=n(48);t.a=[r,o]},function(e,t,n){"use strict";function r(e,t,n){return s({},n,e,t)}function o(e){return function(t,n){var r=(n.displayName,n.pure),o=n.areMergedPropsEqual,a=!1,i=void 0;return function(t,n,s){var l=e(t,n,s);return a?r&&o(l,i)||(i=l):(a=!0,i=l),i}}}function a(e){return"function"===typeof e?o(e):void 0}function i(e){return e?void 0:function(){return r}}var s=(n(49),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});t.a=[a,i]},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function a(e,t,n,r,o){function a(o,a){return h=o,m=a,y=e(h,m),v=t(r,m),g=n(y,v,m),d=!0,g}function i(){return y=e(h,m),t.dependsOnOwnProps&&(v=t(r,m)),g=n(y,v,m)}function s(){return e.dependsOnOwnProps&&(y=e(h,m)),t.dependsOnOwnProps&&(v=t(r,m)),g=n(y,v,m)}function l(){var t=e(h,m),r=!f(t,y);return y=t,r&&(g=n(y,v,m)),g}function c(e,t){var n=!p(t,m),r=!u(e,h);return h=e,m=t,n&&r?i():n?s():r?l():g}var u=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,d=!1,h=void 0,m=void 0,y=void 0,v=void 0,g=void 0;return function(e,t){return d?c(e,t):a(e,t)}}function i(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,s=t.initMergeProps,l=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),c=n(e,l),u=i(e,l),p=s(e,l);return(l.pure?a:o)(c,u,p,e,l)}t.a=i;n(132)},function(e,t,n){"use strict";n(23)},function(e,t,n){"use strict";function r(){if("serviceWorker"in navigator){if(new URL("",window.location).origin!==window.location.origin)return;window.addEventListener("load",function(){var e="/service-worker.js";i?(a(e),navigator.serviceWorker.ready.then(function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://goo.gl/SC7cgQ")})):o(e)})}}function o(e){navigator.serviceWorker.register(e).then(function(e){e.onupdatefound=function(){var t=e.installing;t.onstatechange=function(){"installed"===t.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))}}}).catch(function(e){console.error("Error during service worker registration:",e)})}function a(e){fetch(e).then(function(t){404===t.status||-1===t.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(function(e){e.unregister().then(function(){window.location.reload()})}):o(e)}).catch(function(){console.log("No internet connection found. App is running in offline mode.")})}t.a=r;var i=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(24),o=n(135),a=n.n(o),i=n(136),s={app:{splashAnimationComplete:!1,valentineAnimationComplete:!1,letterAnimationComplete:!1,envelopeAnimationComplete:!1,submissionCount:0,connectionError:!1,step:0},advocacy:{activist:{email:"",postalCode:""},message:"",success:0,error:0,source:""},contribution:{total:0,error:!1,complete:!1}},l=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||r.d,c=l(Object(r.a)(a.a)),u=Object(r.e)(i.a,s,c)},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){"use strict";var r=n(24),o=n(137),a=n(138),i=n(139);t.a=Object(r.c)({advocacy:a.a,app:o.a,contribution:i.a})},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"STEP":return Object.assign({},e,{step:t.step});case"SPLASH_ANIMATION_COMPLETE":return Object.assign({},e,{splashAnimationComplete:!0});case"ENVELOPE_ANIMATION_COMPLETE":return Object.assign({},e,{envelopeAnimationComplete:!0});case"VALENTINE_ANIMATION_COMPLETE":return Object.assign({},e,{valentineAnimationComplete:!0});case"LETTER_ANIMATION_COMPLETE":return Object.assign({},e,{letterAnimationComplete:!0});case"SET_SUBMISSION_COUNT":return Object.assign({},e,{submissionCount:t.submissionCount});case"CONNECTION_ERROR":return Object.assign({},e,{connectionError:!0});default:return e}}t.a=r},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"SET_ORG_SOURCE":return Object.assign({},e,{source:t.org});case"ADVOCACY_MESSAGE_SUBMIT":return Object.assign({},e,{message:t.message});case"ADVOCACY_SUCCESS":return Object.assign({},e,{error:0,success:1});case"ADVOCACY_ERROR":return Object.assign({},e,{error:1,success:0});case"UPDATED_ACTIVIST":return Object.assign({},e,{activist:t.activist});default:return e}}t.a=r},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"SET_CONTRIBUTION":return Object.assign({},e,{total:t.total});case"SET_CONTRIBUTION_FAILED":return Object.assign({},e,{error:!0});case"CONTRIBUTION_COMPLETE":return Object.assign({},e,{complete:!0});default:return e}}t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(13),u=n(28),p=n(14),f=n(160),d=n(173),h=n(174),m=n(179),y=n(182),v=n(191),g=n(192),b=(n.n(g),n(193)),w=(n.n(b),n(194)),E=n.n(w),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();E.a.load({google:{families:["Satisfy:300,400,700","cursive"]}});var T=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.props.setSubmissionCount(),n.props.setContributionTotal(),n}return a(t,e),O(t,[{key:"componentDidMount",value:function(){var e=this.props.match.params;e.source&&this.props.setOrgSource(e.source)}},{key:"render",value:function(){var e=null;return e=this.props.app.splashAnimationComplete?this.props.advocacy.message?this.props.advocacy.email||this.props.advocacy.success?this.props.contribution.complete?s.a.createElement(v.a,null):s.a.createElement(y.a,null):s.a.createElement(m.a,null):s.a.createElement(h.a,null):s.a.createElement(f.a,null),s.a.createElement("div",null,s.a.createElement(d.a,null),e)}}]),t}(i.Component),k=function(e){return{app:e.app,advocacy:e.advocacy,contribution:e.contribution}},C=function(e){return{setSubmissionCount:function(){return e(Object(c.c)())},setOrgSource:function(t){return e(Object(u.a)(t))},setContributionTotal:function(){return e(Object(p.b)())}}};t.a=Object(l.b)(k,C)(T)},function(e,t,n){"use strict";function r(e){var t=new i(e),n=a(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(4),a=n(50),i=n(143),s=n(27),l=r(s);l.Axios=i,l.create=function(e){return r(o.merge(s,e))},l.Cancel=n(54),l.CancelToken=n(158),l.isCancel=n(53),l.all=function(e){return Promise.all(e)},l.spread=n(159),e.exports=l,e.exports.default=l},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(27),a=n(4),i=n(153),s=n(154);r.prototype.request=function(e){"string"===typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,this.defaults,{method:"get"},e),e.method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},a.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){m&&d&&(m=!1,d.length?h=d.concat(h):y=-1,h.length&&s())}function s(){if(!m){var e=o(i);m=!0;for(var t=h.length;t;){for(d=h,h=[];++y<t;)d&&d[y].run();y=-1,t=h.length}d=null,m=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,p,f=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,y=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||m||o(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(52);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(4);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(4),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(4);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),i="",s=0,l=a;o.charAt(0|s)||(l="=",s%1);i+=l.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(4);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(4);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(4),a=n(155),i=n(53),s=n(27),l=n(156),c=n(157);e.exports=function(e){return r(e),e.baseURL&&!l(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=a(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(54);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(7),u=n(15),p=n.n(u),f=n(13),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={svg:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2.5,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}},n.onAnimationComplete=n.onAnimationComplete.bind(n),n}return a(t,e),d(t,[{key:"onAnimationComplete",value:function(){setTimeout(function(){this.props.splashCompleteAnimation()}.bind(this),1500)}},{key:"render",value:function(){return s.a.createElement("div",{id:"splash"},s.a.createElement(c.l,null,s.a.createElement(c.h,{className:"splash mx-auto",xs:"8"},s.a.createElement("svg",{width:"100%",height:"5em",viewBox:"49.833 27.167 514.667 106",preserveAspectRatio:"xMidYMin meet"},s.a.createElement(p.a,{easing:"easeInOutQuart",delay:function(e,t){return 100*t},strokeDashoffset:function(e){var t=e.getTotalLength();return t&&e.setAttribute("stroke-dasharray",t),[t,0]}},s.a.createElement("path",{style:this.state.svg,d:"M63.427 56.685c0 .233.216.351.651.351.301 0 1.662-.201 4.084-.601 2.421-.401 4.617-.619 6.589-.652-2.205.601-4.101 1.211-5.687 1.829a112.96 112.96 0 0 0-4.91 2.054c-1.687.752-2.898 1.254-3.632 1.504-.736.25-1.37.375-1.904.375-1.704 0-2.556-1.102-2.556-3.308 0-5.678 1.437-9.669 4.309-11.975 1.168-.936 3.047-2.045 5.637-3.333 2.588-1.285 5.511-2.504 8.768-3.657s6.839-2.146 10.747-2.981c3.908-.835 7.766-1.252 11.574-1.252 3.908 0 7.499.568 10.772 1.704 3.273 1.136 6.013 2.73 8.217 4.785 2.205 2.054 3.9 4.568 5.086 7.541 1.185 2.974 1.778 6.313 1.778 10.02 0 5.646-1.629 11.123-4.885 16.434-3.257 5.311-7.599 9.995-13.028 14.054-5.428 4.059-11.547 7.274-18.362 9.645-6.814 2.371-13.528 3.557-20.141 3.557-1.236 0-2.214-.134-2.932-.401-.719-.268-1.228-.793-1.528-1.578-.301-.785-.451-1.946-.451-3.482 0-1.904.149-3.457.451-4.66.301-1.201.802-2.589 1.503-4.158 4.81-10.656 13.177-24.066 25.102-40.232-2.404.267-5.044.777-7.916 1.528a105.124 105.124 0 0 0-8.167 2.48c-2.573.902-4.744 1.771-6.514 2.606-1.771.834-2.655 1.435-2.655 1.803zm26.704-8.718c0 .067.066.443.201 1.128.133.685.201 1.278.201 1.778 0 .769-.394 1.846-1.178 3.231-.785 1.386-2.33 3.85-4.635 7.391a414.222 414.222 0 0 0-5.912 9.319c-1.637 2.672-3.574 6.113-5.812 10.321a103.896 103.896 0 0 1-1.453 2.707c-.268.469-.694 1.236-1.278 2.305-.585 1.069-1.011 1.988-1.278 2.754-.267.77-.4 1.354-.4 1.755 0 .868.476 1.478 1.428 1.829.952.352 2.313.526 4.083.526 4.542 0 9.352-.826 14.43-2.48a59.253 59.253 0 0 0 14.305-6.889c4.458-2.939 8.023-6.264 10.696-9.971 2.672-3.708 4.009-7.582 4.009-11.624 0-4.609-1.688-8.158-5.06-10.646-3.375-2.488-8.285-3.732-14.731-3.732a89.208 89.208 0 0 0-7.616.298zM133.22 86.747V88c0 1.971.484 3.507 1.452 4.608.969 1.102 2.237 1.654 3.808 1.654 1.637 0 3.333-.384 5.086-1.153 1.753-.769 3.498-1.786 5.235-3.056 1.736-1.27 3.858-2.974 6.364-5.111v3.056c-3.775 4.543-7.315 8.025-10.623 10.446-3.307 2.422-6.664 3.633-10.07 3.633-2.973 0-5.327-1.152-7.064-3.457-1.737-2.304-2.605-5.461-2.605-9.469 0-3.507.818-6.689 2.455-9.544 1.636-2.857 4.309-5.87 8.016-9.044 2.538-2.17 5.06-3.808 7.565-4.909 2.505-1.103 4.743-1.654 6.714-1.654 1.569 0 2.813.36 3.732 1.078.918.718 1.377 1.797 1.377 3.232 0 2.104-.785 4.2-2.354 6.287-1.571 2.088-3.967 4.159-7.19 6.214-3.223 2.052-7.189 4.031-11.898 5.936zm.501-3.257c3.006-1.169 5.578-2.623 7.716-4.359 2.137-1.736 3.715-3.399 4.735-4.985 1.019-1.586 1.528-2.748 1.528-3.482 0-.769-.351-1.153-1.053-1.153-.601 0-1.578.384-2.931 1.153s-2.723 1.771-4.108 3.006c-1.387 1.237-2.63 2.689-3.732 4.359a14.042 14.042 0 0 0-2.155 5.461z"}),s.a.createElement("path",{style:this.state.svg,d:"M161.026 75.974c5.077-4.608 10.004-8.033 14.781-10.271 4.775-2.237 8.468-3.356 11.072-3.356.702 0 1.353.292 1.954.877a6.66 6.66 0 0 1 1.428 2.028c.351.77.527 1.337.527 1.703 0 .602-.234 1.044-.701 1.328-.468.284-1.287.625-2.456 1.027.233.535.534 1.22.902 2.055.368.834.651 1.511.853 2.027.2.518.301.978.301 1.379 0 .801-.811 2.296-2.43 4.484-1.621 2.188-2.756 3.8-3.407 4.834-.651 1.036-.978 2.305-.978 3.808 0 2.474 1.136 3.708 3.408 3.708 2.337 0 5.995-2.187 10.972-6.563V88.1c-8.45 9.386-14.496 14.078-18.137 14.078-1.303 0-2.229-.427-2.78-1.278-.551-.852-.827-2.112-.827-3.783 0-2.637.953-6.462 2.856-11.473-4.877 5.41-8.501 9.261-10.873 11.548-2.372 2.288-4.326 3.431-5.862 3.431-.735 0-1.654-.633-2.756-1.904-1.102-1.269-2.078-2.914-2.931-4.935a16.014 16.014 0 0 1-1.278-6.288c0-1.57.15-2.881.451-3.934.301-1.051.885-2.129 1.753-3.231.868-1.1 2.255-2.554 4.158-4.357zm24-5.512c-8.685 3.975-14.873 7.35-18.563 10.122-3.691 2.773-5.536 5.628-5.536 8.568 0 1.07.184 1.946.551 2.63.367.685.869 1.028 1.503 1.028.368 0 1.019-.234 1.953-.702 3.508-2.07 6.714-4.767 9.621-8.091 2.905-3.325 6.395-7.842 10.471-13.555z"}),s.a.createElement("path",{style:this.state.svg,d:"M196.299 88.801v-3.257c1.804-2.138 3.173-3.958 4.109-5.461-1.07-.368-1.846-.818-2.331-1.353-.485-.535-.727-1.335-.727-2.405 0-1.202.501-2.722 1.504-4.56a26.212 26.212 0 0 1 3.707-5.162c1.471-1.603 2.806-2.637 4.009-3.105.468-.234.918-.351 1.354-.351.667 0 1.002.318 1.002.952 0 .568-.519 1.721-1.554 3.457 6.88-1.069 11.223-1.604 13.027-1.604.701 0 1.185.068 1.453.202.567.3 1.035 1.002 1.403 2.104a10.41 10.41 0 0 1 .551 3.307c0 .701-.309 1.461-.927 2.28-.619.818-1.679 2.013-3.183 3.582a29.783 29.783 0 0 0-4.458 6.212c-1.203 2.238-1.804 3.925-1.804 5.06 0 1.571.968 2.354 2.906 2.354 2.037 0 5.577-2.07 10.622-6.212v3.356c-2.773 2.906-5.061 5.194-6.864 6.863-1.803 1.671-3.474 2.999-5.01 3.984-1.537.985-2.906 1.478-4.109 1.478-1.402 0-2.573-.642-3.507-1.929-.935-1.286-1.402-3.148-1.402-5.587 0-1.436.367-3.072 1.102-4.909.735-1.838 1.812-3.834 3.232-5.988a73.617 73.617 0 0 1 4.785-6.438c-.936.201-1.988.409-3.157.625-1.169.218-2.406.442-3.707.676-1.303.235-2.305.418-3.006.551-2.073 4.146-5.079 7.904-9.02 11.278z"}),s.a.createElement("path",{style:this.state.svg,d:"M234.779 86.747V88c0 1.971.484 3.507 1.452 4.608.969 1.102 2.237 1.654 3.808 1.654 1.637 0 3.333-.384 5.086-1.153 1.753-.769 3.498-1.786 5.235-3.056 1.736-1.27 3.858-2.974 6.363-5.111v3.056c-3.775 4.543-7.314 8.025-10.622 10.446-3.307 2.422-6.664 3.633-10.07 3.633-2.973 0-5.328-1.152-7.065-3.457-1.737-2.304-2.606-5.461-2.606-9.469 0-3.507.818-6.689 2.455-9.544 1.636-2.857 4.309-5.87 8.016-9.044 2.538-2.17 5.061-3.808 7.565-4.909C246.902 64.551 249.14 64 251.11 64c1.57 0 2.813.36 3.732 1.078.919.718 1.378 1.797 1.378 3.232 0 2.104-.785 4.2-2.354 6.287-1.571 2.088-3.967 4.159-7.19 6.214-3.222 2.052-7.189 4.031-11.897 5.936zm.5-3.257c3.006-1.169 5.578-2.623 7.716-4.359 2.138-1.736 3.715-3.399 4.734-4.985 1.019-1.586 1.528-2.748 1.528-3.482 0-.769-.351-1.153-1.053-1.153-.601 0-1.578.384-2.931 1.153-1.354.769-2.723 1.771-4.109 3.006-1.386 1.237-2.63 2.689-3.732 4.359a14.1 14.1 0 0 0-2.153 5.461z"}),s.a.createElement("path",{style:this.state.svg,d:"M256.522 86.345v-1.202c8.618-9.085 14.547-15.447 17.786-19.089.735-4.108 2.506-6.163 5.312-6.163.701 0 1.454.202 2.254.602l.301.953c-.134.399-.2.968-.2 1.703 0 .635.242 1.813.727 3.533a95.916 95.916 0 0 1 1.128 4.334c.267 1.17.4 2.489.4 3.958 0 2.205-.501 4.317-1.503 6.339-1.002 2.021-2.454 3.958-4.359 5.812-1.903 1.854-4.359 3.75-7.365 5.687 1.203.2 2.154.3 2.855.3 1.37 0 2.848-.342 4.434-1.027 1.586-.685 3.207-1.604 4.86-2.755 1.653-1.153 3.583-2.646 5.787-4.485v3.357c-4.276 4.176-8.101 7.34-11.474 9.494-3.374 2.154-6.281 3.232-8.718 3.232-3.141 0-6.047-1.336-8.719-4.008-1.57-1.604-2.547-3.14-2.931-4.609-.382-1.473-.575-3.46-.575-5.966zm18.689-7.665l-.903-7.314c-2.07 2.337-6.497 6.83-13.277 13.477 2.004.435 3.374 1.02 4.109 1.754.735.735 1.77 2.154 3.107 4.259 2.272-.935 4.016-2.213 5.235-3.833 1.219-1.619 1.829-3.833 1.829-6.639a12.742 12.742 0 0 0-.1-1.704z"}),s.a.createElement("path",{style:this.state.svg,d:"M306.325 58.939h2.154c1.771-3.173 3.374-5.419 4.81-6.738 1.438-1.319 3.073-1.98 4.911-1.98 1.837 0 2.755.418 2.755 1.253 0 .4-.72 1.487-2.154 3.256-1.437 1.771-2.522 3.257-3.256 4.459 1.136.134 2.146.25 3.03.352.884.101 1.578.183 2.08.25-1.905 3.542-4.294 7.165-7.166 10.873-.936-.066-1.723-.125-2.356-.175l-1.929-.151c-.649-.05-1.444-.107-2.378-.175-1.803 2.906-3.316 5.503-4.534 7.791-1.22 2.289-2.154 4.384-2.806 6.288-.651 1.905-.978 3.708-.978 5.411 0 2.305.919 3.457 2.755 3.457 1.27 0 2.931-.675 4.986-2.029 2.055-1.352 4.8-3.431 8.241-6.237V88.2c-9.018 9.788-15.682 14.681-19.99 14.681-1.502 0-2.714-.586-3.633-1.754-.918-1.169-1.378-2.672-1.378-4.509 0-1.235.259-2.706.777-4.41.518-1.703 1.444-4.275 2.781-7.715-.468.4-.911.794-1.328 1.178-.417.384-.801.734-1.152 1.051-.35.318-.727.652-1.127 1.003-.401.352-.801.71-1.202 1.078v-3.458c3.507-2.938 7.749-8.099 12.726-15.482-.502-.032-.97-.057-1.402-.075a40.866 40.866 0 0 0-1.554-.024c-1.971 0-3.44.132-4.409.4-.4.1-.777.208-1.126.326-.351.117-.593.174-.727.174s-.2-.1-.2-.301c0-1.102.684-2.754 2.053-4.959 1.103-1.87 2.147-3.257 3.132-4.159.985-.901 2.187-1.51 3.608-1.829 1.417-.319 3.414-.477 5.986-.477zM381.58 88.5l-13.327 7.516a299.374 299.374 0 0 1-8.845 14.104c-2.955 4.425-5.577 8.083-7.865 10.972-2.288 2.889-4.266 5.094-5.937 6.613-1.671 1.52-2.905 2.279-3.707 2.279-1.068 0-1.938-.36-2.605-1.078-.667-.719-1.002-1.561-1.002-2.528 0-3.608 2.029-8.127 6.087-13.553 4.059-5.429 10.479-11.199 19.265-17.311 3.81-7.314 6.947-13.961 9.421-19.941 2.471-5.978 4.357-11.088 5.661-15.331 1.302-4.241 2.212-7.649 2.729-10.221.519-2.572.777-4.208.777-4.91 0-1.436-.551-2.155-1.653-2.155-.901 0-2.23.519-3.984 1.553-1.752 1.036-3.648 2.581-5.687 4.635-2.037 2.055-3.941 4.435-5.711 7.14-1.771 2.673-3.383 5.67-4.835 8.995-1.452 3.324-2.571 6.387-3.355 9.193-.786 2.806-1.178 5.06-1.178 6.765 0 .434.066 1.386.2 2.856.301-.467.667-1.036 1.103-1.703a14.32 14.32 0 0 1 1.653-2.054 11.204 11.204 0 0 1 2.104-1.754 5.773 5.773 0 0 1 1.553-.827c.601-.216.902-.191.902.076 0 .201-.952 1.461-2.857 3.782a190.666 190.666 0 0 0-4.96 6.289c-.801 1.069-1.869 2.071-3.206 3.006-1.336.935-2.421 1.403-3.257 1.403-1.002 0-1.661-.468-1.979-1.403-.317-.934-.475-2.421-.475-4.459 0-4.909.843-10.37 2.528-16.384 1.688-6.012 3.951-11.29 6.791-15.832 2.304-3.607 5.127-6.872 8.467-9.795 3.34-2.922 6.589-5.202 9.745-6.839s5.636-2.455 7.441-2.455c2.204 0 3.908.694 5.108 2.079 1.202 1.386 1.805 3.298 1.805 5.737 0 1.202-.143 2.556-.427 4.058a53.427 53.427 0 0 1-1.077 4.559c-.434 1.537-1.186 4.009-2.255 7.416a876.993 876.993 0 0 0-2.103 6.764c-1.036 3.441-2.397 6.974-4.084 10.597-1.687 3.624-4.083 8.426-7.189 14.405l10.222-5.513V88.5h-.002z"}),s.a.createElement("path",{style:this.state.svg,d:"M405.277 81.535c-4.843 6.414-8.525 10.972-11.048 13.678-2.521 2.706-4.584 4.059-6.187 4.059-1.271 0-2.439-.526-3.508-1.579-1.069-1.051-1.896-2.472-2.479-4.258-.586-1.787-.878-3.699-.878-5.737 0-1.336.127-2.538.377-3.608.25-1.068.727-2.246 1.426-3.532.702-1.287 1.63-2.681 2.782-4.185 1.152-1.502 2.563-3.206 4.233-5.111a868.16 868.16 0 0 0 2.529-2.956c.685-.802 1.353-1.345 2.005-1.628.651-.284 1.712-.425 3.182-.425 1.068 0 2.087.142 3.056.425.968.285 1.453.577 1.453.876 0 .602-.493 1.688-1.478 3.257-.986 1.571-2.573 3.483-4.759 5.738-2.188 2.255-4.719 4.467-7.591 6.638-.636 1.972-.953 3.474-.953 4.51 0 1.437.552 2.153 1.653 2.153.4 0 1.068-.342 2.004-1.026.935-.685 2.515-2.004 4.734-3.959a457.464 457.464 0 0 1 5.988-5.186c1.303-1.135 2.813-2.831 4.533-5.086 1.722-2.254 3.114-3.949 4.185-5.085 2.472-2.604 4.157-4.3 5.059-5.085.902-.784 1.771-1.177 2.606-1.177.802 0 1.344.25 1.628.751.283.501.426 1.521.426 3.056 0 .702-.067 1.27-.2 1.704-.134.435-.41.994-.827 1.679-.418.685-1.262 1.946-2.53 3.782a4508.912 4508.912 0 0 1-4.509 6.514 25.775 25.775 0 0 0-2.455 4.383c-.701 1.587-1.052 2.781-1.052 3.583 0 1.737.686 2.605 2.055 2.605 1.136 0 2.456-.467 3.958-1.403 1.504-.935 3.809-2.622 6.916-5.06v3.357c-3.908 3.606-6.799 6.229-8.668 7.865-1.871 1.637-3.491 2.874-4.861 3.708-1.369.835-2.672 1.252-3.907 1.252-2.807 0-4.208-1.67-4.208-5.01 0-1.27.417-2.98 1.252-5.135.835-2.151 2.189-5.265 4.058-9.342z"}),s.a.createElement("path",{style:this.state.svg,d:"M420.96 86.345v-1.202c8.618-9.085 14.546-15.447 17.787-19.089.735-4.108 2.505-6.163 5.311-6.163.702 0 1.455.202 2.256.602l.301.953c-.134.399-.201.968-.201 1.703 0 .635.242 1.813.727 3.533a95.729 95.729 0 0 1 1.127 4.334c.268 1.17.4 2.489.4 3.958 0 2.205-.5 4.317-1.503 6.339-1.001 2.021-2.454 3.958-4.359 5.812-1.903 1.854-4.358 3.75-7.365 5.687 1.202.2 2.154.3 2.856.3 1.369 0 2.848-.342 4.435-1.027 1.586-.685 3.206-1.604 4.859-2.755 1.653-1.153 3.583-2.646 5.787-4.485v3.357c-4.275 4.176-8.1 7.34-11.474 9.494s-6.279 3.232-8.717 3.232c-3.141 0-6.047-1.336-8.719-4.008-1.57-1.604-2.547-3.14-2.931-4.609-.385-1.473-.577-3.46-.577-5.966zm18.689-7.665l-.902-7.314c-2.072 2.337-6.497 6.83-13.277 13.477 2.004.435 3.373 1.02 4.108 1.754.734.735 1.771 2.154 3.106 4.259 2.271-.935 4.017-2.213 5.236-3.833 1.218-1.619 1.829-3.833 1.829-6.639 0-.333-.011-.633-.025-.901a14.43 14.43 0 0 0-.075-.803z"}),s.a.createElement("path",{style:this.state.svg,d:"M470.763 58.939h2.154c1.769-3.173 3.374-5.419 4.811-6.738 1.436-1.319 3.072-1.98 4.909-1.98s2.755.418 2.755 1.253c0 .4-.719 1.487-2.154 3.256-1.437 1.771-2.521 3.257-3.257 4.459 1.136.134 2.146.25 3.031.352.886.1 1.579.183 2.079.25-1.904 3.542-4.292 7.165-7.164 10.873-.936-.066-1.723-.125-2.355-.175l-1.93-.151c-.65-.05-1.445-.107-2.378-.175-1.805 2.906-3.316 5.503-4.536 7.791-1.219 2.289-2.152 4.384-2.805 6.288-.652 1.905-.977 3.708-.977 5.411 0 2.305.919 3.457 2.755 3.457 1.271 0 2.932-.675 4.985-2.029 2.054-1.352 4.802-3.431 8.242-6.237V88.2c-9.02 9.788-15.683 14.681-19.991 14.681-1.503 0-2.714-.586-3.632-1.754-.92-1.169-1.377-2.672-1.377-4.509 0-1.235.257-2.706.776-4.41.519-1.703 1.445-4.275 2.78-7.715-.469.4-.911.794-1.328 1.178-.417.384-.801.734-1.151 1.051-.352.318-.727.652-1.128 1.003-.4.352-.802.71-1.202 1.078v-3.458c3.506-2.938 7.749-8.099 12.726-15.482a63.094 63.094 0 0 0-1.402-.075 40.88 40.88 0 0 0-1.553-.024c-1.972 0-3.44.132-4.41.4-.4.1-.776.208-1.128.326-.35.117-.592.174-.727.174-.133 0-.199-.1-.199-.301 0-1.102.684-2.754 2.054-4.959 1.103-1.87 2.146-3.257 3.132-4.159.984-.901 2.186-1.51 3.606-1.829 1.42-.319 3.415-.477 5.989-.477z"}),s.a.createElement("path",{style:this.state.svg,d:"M502.778 84.942v3.657c-3.24 4.177-6.262 7.324-9.07 9.445-2.805 2.122-5.192 3.181-7.164 3.181-2.738 0-4.776-1.435-6.112-4.308-1.336-2.872-2.005-6.012-2.005-9.419 0-1.303.134-2.547.402-3.732.267-1.185.584-2.163.951-2.931.368-.768 1.053-1.971 2.055-3.608 4.742-7.381 9.085-11.072 13.026-11.072 2.036 0 3.056.784 3.056 2.354 0 1.07-.66 2.74-1.979 5.011s-2.499 3.891-3.533 4.86c-2.905 2.806-4.802 4.759-5.687 5.862s-1.327 2.355-1.327 3.758c0 1.202.45 2.204 1.352 3.006s2.07 1.202 3.508 1.202c1.569 0 3.297-.577 5.186-1.729s4.335-2.999 7.341-5.537zm-3.406-22.396c-.836 0-1.628-.317-2.381-.952-.751-.634-1.127-1.436-1.127-2.405 0-1.469.702-3.106 2.104-4.909 1.403-1.804 2.856-2.707 4.36-2.707 1.001 0 1.835.31 2.504.927.668.619 1.001 1.511 1.001 2.68 0 1.437-.685 3.023-2.054 4.759-1.368 1.739-2.839 2.607-4.407 2.607z"}),s.a.createElement("path",{style:this.state.svg,d:"M536.097 75.875c-5.879 6.547-8.818 11.106-8.818 13.678 0 1.437.586 2.154 1.756 2.154.967 0 2.228-.509 3.781-1.528 1.553-1.019 3.984-2.831 7.29-5.437V88.2c-4.742 4.676-8.383 8.051-10.922 10.12-2.538 2.071-4.609 3.107-6.212 3.107-2.741 0-4.11-1.804-4.11-5.411 0-1.069.169-2.121.502-3.157a20.695 20.695 0 0 1 1.379-3.232c.583-1.118 1.478-2.722 2.681-4.809a586.355 586.355 0 0 1 4.157-7.09c-1.905.969-4.293 2.89-7.164 5.762-1.872 1.803-3.458 3.515-4.759 5.135-1.305 1.62-2.7 3.424-4.186 5.411-1.486 1.988-2.572 3.323-3.257 4.008s-1.378 1.026-2.078 1.026c-1.07 0-2.056-1.118-2.957-3.355-.9-2.239-1.353-4.843-1.353-7.817 0-1.837.208-3.272.627-4.308.416-1.036 1.243-2.505 2.479-4.41 2.306-3.541 4.292-6.137 5.963-7.79 1.669-1.653 3.274-2.481 4.811-2.481 1.067 0 1.928.185 2.579.551.652.367.977.935.977 1.704 0 .333-.099.685-.3 1.052-.2.367-.426.701-.677 1.001-.25.301-.775.886-1.578 1.755-5.278 5.845-7.915 9.637-7.915 11.373 0 .969.316 1.454.951 1.454.4 0 1.179-.643 2.331-1.929a490.778 490.778 0 0 0 4.459-5.06c1.819-2.087 3.975-4.266 6.462-6.538 2.487-2.271 5.319-4.459 8.493-6.563 1.77-1.235 3.24-1.854 4.41-1.854.533 0 1.059.736 1.578 2.205.516 1.47.775 2.957.775 4.459-.001.733-.719 1.852-2.155 3.356zM548.222 101.977c-1.069-.4-1.762-.701-2.079-.901-.317-.201-.476-.619-.476-1.252 0-.903.525-2.097 1.578-3.583a20.571 20.571 0 0 1 3.583-3.908c1.334-1.119 2.421-1.679 3.255-1.679 1.235 0 1.855.751 1.855 2.254 0 1.704-1.011 3.966-3.031 6.789-2.022 2.822-3.851 4.768-5.487 5.837-1.103.734-1.653.833-1.653.299 0-.233.093-.459.275-.675.184-.217.519-.652 1.004-1.303.481-.651.876-1.276 1.176-1.878z"}))))),s.a.createElement(c.l,null,s.a.createElement(c.h,{className:"mx-auto"},s.a.createElement("svg",{width:"100%",height:"4em",viewBox:"15.168 357.167 588.666 64.667",preserveAspectRatio:"xMidYMin meet"},s.a.createElement(p.a,{easing:"easeInOutQuint",delay:function(e,t){return 0==t?1500:100*t+1500},duration:500,strokeDashoffset:0,opacity:[0,1]},s.a.createElement("path",{className:"first-letter",style:this.state.svg2,d:"M23.78 381.057c0 .179.166.268.499.268.23 0 1.271-.153 3.125-.46 1.853-.307 3.533-.473 5.042-.499-1.687.46-3.138.927-4.352 1.4a85.35 85.35 0 0 0-3.757 1.572c-1.292.575-2.218.958-2.78 1.15-.563.192-1.048.288-1.457.288-1.304 0-1.956-.844-1.956-2.531 0-4.345 1.1-7.4 3.298-9.164.895-.715 2.332-1.565 4.313-2.55 1.98-.984 4.218-1.917 6.71-2.799s5.234-1.643 8.225-2.282a42.303 42.303 0 0 1 8.857-.958c2.991 0 5.738.435 8.244 1.304 2.505.869 4.602 2.09 6.289 3.662 1.687 1.572 2.984 3.496 3.892 5.771.907 2.275 1.361 4.831 1.361 7.668 0 4.32-1.246 8.512-3.738 12.577-2.493 4.065-5.816 7.649-9.969 10.755-4.154 3.105-8.838 5.566-14.053 7.381-5.214 1.815-10.353 2.723-15.414 2.723-.946 0-1.694-.103-2.243-.308-.55-.204-.939-.607-1.169-1.207-.23-.601-.345-1.488-.345-2.665 0-1.457.115-2.646.345-3.565.23-.92.613-1.98 1.15-3.184 3.681-8.153 10.084-18.417 19.21-30.789-1.84.205-3.86.594-6.058 1.169a80.271 80.271 0 0 0-6.25 1.898c-1.969.69-3.63 1.355-4.984 1.994-1.358.64-2.035 1.1-2.035 1.381zm20.437-6.672c0 .052.051.339.153.863.102.524.153.978.153 1.361 0 .588-.301 1.413-.901 2.473-.601 1.061-1.783 2.946-3.547 5.655a310.55 310.55 0 0 0-4.524 7.132c-1.253 2.045-2.736 4.678-4.448 7.899a81.352 81.352 0 0 1-1.112 2.07c-.205.358-.531.946-.978 1.765-.448.818-.773 1.521-.978 2.108-.205.589-.307 1.035-.307 1.342 0 .665.364 1.132 1.093 1.399.729.269 1.77.402 3.125.402 3.476 0 7.157-.633 11.043-1.897a45.296 45.296 0 0 0 10.947-5.272c3.413-2.249 6.141-4.793 8.187-7.63 2.045-2.837 3.067-5.802 3.067-8.896 0-3.527-1.291-6.243-3.873-8.148-2.583-1.904-6.34-2.856-11.273-2.856-2.069 0-4.012.077-5.827.23zM95.712 402.605v2.569c-1.687 1.534-3.042 2.557-4.064 3.067-1.022.512-2.492.717-4.409.613-3.323 3.938-6.25 5.905-8.781 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.873-.704-1.635-1.055-3.463-1.055-5.482 0-1.636.543-3.451 1.63-5.445 1.086-1.993 2.492-3.853 4.218-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.147.186 2.837.556.69.371 1.035.888 1.035 1.553 0 .512-.294 1.1-.882 1.764.971.205 1.636.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.288 2.774-.863 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575c.435 0 .863-.109 1.285-.326a8.603 8.603 0 0 0 1.131-.69c.331-.243 1.06-.786 2.185-1.63zm-7.899-10.084c-2.122 1.279-3.937 2.435-5.445 3.47-1.509 1.036-2.787 2.083-3.834 3.144-1.048 1.062-1.751 2.128-2.109 3.202-.639 2.863-.958 4.409-.958 4.639 0 1.688 1.175 2.531 3.528 2.531 1.099 0 2.939-.945 5.521-2.838-.435-1.201-.652-2.352-.652-3.451 0-1.609.332-3.252.997-4.926.664-1.674 1.649-3.597 2.952-5.771z"}),s.a.createElement("path",{style:this.state.svg2,d:"M121.479 395.743c-4.5 5.01-6.749 8.5-6.749 10.467 0 1.1.447 1.649 1.342 1.649.741 0 1.707-.39 2.895-1.17 1.188-.779 3.048-2.166 5.579-4.16v2.646c-3.63 3.579-6.417 6.161-8.359 7.745-1.943 1.586-3.528 2.377-4.754 2.377-2.097 0-3.145-1.38-3.145-4.141 0-.817.128-1.623.384-2.416.255-.791.607-1.615 1.054-2.473.447-.855 1.131-2.083 2.051-3.681.92-1.597 1.981-3.406 3.183-5.426-1.457.741-3.285 2.212-5.483 4.409-1.432 1.381-2.646 2.691-3.643 3.931a147.77 147.77 0 0 0-3.202 4.142c-1.138 1.521-1.969 2.543-2.493 3.066-.524.524-1.054.787-1.591.787-.818 0-1.572-.857-2.262-2.57-.69-1.711-1.035-3.705-1.035-5.98 0-1.406.16-2.506.479-3.298.319-.792.952-1.917 1.898-3.374 1.764-2.709 3.284-4.697 4.563-5.963 1.278-1.265 2.505-1.898 3.681-1.898.818 0 1.476.141 1.975.422.499.282.748.716.748 1.304 0 .256-.077.524-.23.805a4.659 4.659 0 0 1-.518.767c-.191.23-.594.677-1.208 1.342-4.04 4.473-6.059 7.375-6.059 8.704 0 .742.243 1.112.729 1.112.307 0 .901-.491 1.783-1.476s2.019-2.275 3.413-3.873c1.393-1.598 3.042-3.266 4.946-5.004 1.904-1.738 4.07-3.413 6.499-5.023 1.354-.945 2.479-1.419 3.375-1.419.408 0 .811.563 1.208 1.687.396 1.125.594 2.262.594 3.413 0 .563-.549 1.419-1.648 2.57zM139.193 371.97c0-.153-.103-.23-.307-.23-1.048 0-1.572-.524-1.572-1.572 0-.843.332-1.827.997-2.952a11.266 11.266 0 0 1 2.454-2.915c.971-.817 1.828-1.227 2.569-1.227 1.048 0 1.572.69 1.572 2.07s-.499 2.856-1.495 4.429c-.997 1.572-2.116 2.94-3.355 4.103-1.24 1.164-2.026 1.745-2.358 1.745-.153 0-.23-.077-.23-.23 0-.357.255-.882.767-1.572.638-.793.958-1.343.958-1.649zM157.981 382.782h1.649c1.354-2.428 2.582-4.147 3.681-5.157 1.099-1.01 2.352-1.515 3.757-1.515s2.109.32 2.109.958c0 .307-.55 1.138-1.648 2.492-1.1 1.355-1.931 2.492-2.493 3.413.869.103 1.643.192 2.32.269s1.208.141 1.591.191c-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.317-.096-1.802-.134a378.71 378.71 0 0 0-3.297-.249c-1.38 2.224-2.538 4.211-3.47 5.962-.934 1.751-1.649 3.355-2.147 4.813-.498 1.457-.748 2.837-.748 4.141 0 1.764.703 2.646 2.109 2.646.971 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.001 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.343-.704-.895-1.055-2.044-1.055-3.45 0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.904a39.91 39.91 0 0 0-1.016.9c-.32.295-.614.563-.882.806-.269.243-.556.499-.863.767-.307.269-.614.543-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.932 30.932 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.269.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.843-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.087-.242 2.614-.364 4.582-.364zM211.585 402.76v2.492c-2.659 1.687-4.754 2.53-6.288 2.53-.844 0-1.739-.14-2.684-.422-2.301 2.914-4.275 5.049-5.924 6.403-1.649 1.355-3.304 2.032-4.966 2.032-1.917 0-3.393-1.01-4.429-3.028-1.035-2.02-1.553-4.525-1.553-7.516 0-4.064 1.227-8.493 3.681-13.286a73.566 73.566 0 0 1 8.876-13.458c3.463-4.18 6.818-7.636 10.065-10.372 3.246-2.735 5.445-4.103 6.595-4.103 1.099 0 1.648.754 1.648 2.262 0 6.697-8.589 18.379-25.767 35.046-.051.46-.077 1.368-.077 2.722 0 3.527.945 5.292 2.837 5.292.741 0 1.489-.3 2.243-.901.754-.6 1.911-1.744 3.47-3.432-.614-1.381-.92-2.402-.92-3.067 0-1.405.575-2.927 1.726-4.563a20.76 20.76 0 0 1 3.93-4.236c1.47-1.188 2.537-1.783 3.202-1.783 1.048 0 1.572.754 1.572 2.262 0 1.15-.301 2.53-.901 4.142-.601 1.609-1.476 3.45-2.626 5.521.434.358.779.62 1.035.786.255.166.639.25 1.15.25 1.178-.001 2.546-.525 4.105-1.573zm-19.478-5.752c1.329-1.15 2.665-2.512 4.007-4.083 1.342-1.572 3.303-3.981 5.886-7.228 2.479-3.119 4.428-5.719 5.847-7.803 1.418-2.083 2.486-3.815 3.202-5.195.715-1.38 1.074-2.326 1.074-2.837 0-.383-.103-.575-.307-.575-.563 0-1.732.927-3.508 2.78-1.777 1.854-3.802 4.391-6.077 7.611-3.145 4.448-5.42 7.797-6.825 10.046a30.203 30.203 0 0 0-3.299 7.284z"}),s.a.createElement("path",{style:this.state.svg2,d:"M211.202 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.413-.625-1.783-1.035-.371-.408-.556-1.022-.556-1.84 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.049-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.477-.716-.983-1.074-2.408-1.074-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a55.978 55.978 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.584 3.167-3.885 6.043-6.901 8.624z"}),s.a.createElement("path",{style:this.state.svg2,d:"M240.65 404.063v.959c0 1.509.37 2.684 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.293 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.971 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.994-2.531 1.854-5.1 2.78-7.707 2.78-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.685.626-5.118 1.879-7.304 1.252-2.186 3.297-4.493 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.629-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.054 1.375 1.054 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.573-5.503 3.086-9.107 4.544zm.383-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.329 2.843-2.6 3.624-3.815.779-1.213 1.169-2.102 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882-1.035.588-2.083 1.355-3.144 2.3a16.938 16.938 0 0 0-2.856 3.335 10.794 10.794 0 0 0-1.65 4.181z"}),s.a.createElement("path",{style:this.state.svg2,d:"M261.93 395.819c3.885-3.528 7.655-6.147 11.312-7.86 3.655-1.712 6.48-2.569 8.474-2.569.537 0 1.035.224 1.496.671.46.447.824.965 1.093 1.553.268.588.402 1.022.402 1.304 0 .46-.179.799-.537 1.016-.358.217-.984.479-1.879.786l.69 1.572c.281.639.499 1.157.652 1.553s.23.748.23 1.054c0 .613-.62 1.758-1.86 3.431-1.24 1.676-2.109 2.908-2.607 3.701-.499.792-.748 1.764-.748 2.914 0 1.892.869 2.837 2.607 2.837 1.789 0 4.588-1.674 8.397-5.022v2.338c-6.467 7.184-11.094 10.775-13.88 10.775-.997 0-1.706-.326-2.128-.979-.422-.651-.633-1.616-.633-2.895 0-2.02.729-4.946 2.186-8.781-3.732 4.142-6.505 7.088-8.32 8.839-1.815 1.751-3.311 2.626-4.486 2.626-.563 0-1.265-.484-2.109-1.457-.843-.971-1.591-2.229-2.243-3.776a12.26 12.26 0 0 1-.978-4.812c0-1.201.115-2.205.345-3.01.23-.807.677-1.631 1.342-2.474.664-.842 1.725-1.955 3.182-3.335zm18.367-4.217c-6.647 3.042-11.382 5.623-14.207 7.745-2.825 2.122-4.237 4.308-4.237 6.557 0 .818.14 1.489.422 2.013.281.525.665.787 1.15.787.281 0 .779-.18 1.495-.537 2.684-1.585 5.138-3.648 7.362-6.193 2.225-2.544 4.896-6.001 8.015-10.372z"}),s.a.createElement("path",{style:this.state.svg2,d:"M318.219 402.683v2.569c-2.863 3.349-5.268 5.885-7.209 7.611-1.943 1.725-3.566 2.588-4.869 2.588-1.254 0-2.385-.371-3.395-1.112s-1.917-1.764-2.722-3.067-1.758-3.118-2.857-5.445a164.002 164.002 0 0 0-3.527 4.506c-1.048 1.394-1.777 2.32-2.186 2.779-.409.461-.78.691-1.112.691-.69 0-1.189-.441-1.496-1.323s-.46-2.167-.46-3.854a26.6 26.6 0 0 1 .824-6.653c.549-2.133 1.342-4.211 2.377-6.23s2.364-4.199 3.988-6.538a147.654 147.654 0 0 1 5.464-7.343c2.785-3.528 5.188-6.409 7.207-8.646 2.02-2.236 3.777-3.924 5.273-5.062 1.494-1.137 2.74-1.706 3.738-1.706 1.227 0 1.84.55 1.84 1.649 0 .946-2.262 4.352-6.787 10.218-4.523 5.867-11.119 13.875-19.784 24.022v3.297c5.802-6.211 10.474-10.825 14.015-13.842 3.539-3.016 6.281-4.524 8.225-4.524.791 0 1.404.467 1.84 1.399.436.934.652 2.013.652 3.24 0 2.505-1.074 4.825-3.221 6.959-2.148 2.135-5.445 4.582-9.893 7.343.766 1.15 1.443 1.988 2.031 2.512.588.524 1.33.786 2.225.786.791 0 1.648-.269 2.568-.805.92-.537 1.859-1.215 2.818-2.033.962-.816 2.439-2.146 4.433-3.986zm-15.147 1.956c.971-.639 2.18-1.631 3.623-2.973 1.445-1.342 2.678-2.734 3.701-4.179 1.021-1.444 1.533-2.652 1.533-3.624 0-.409-.18-.614-.537-.614-.971 0-2.639.934-5.004 2.799-2.363 1.867-4.672 4.255-6.92 7.169.971.002 2.173.476 3.604 1.422zM364.69 402.605v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.717-4.41.613-3.323 3.938-6.25 5.905-8.78 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.873-.703-1.635-1.054-3.463-1.054-5.482 0-1.636.542-3.451 1.629-5.445 1.087-1.993 2.492-3.853 4.218-5.579 1.726-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.146.186 2.837.556s1.035.888 1.035 1.553c0 .512-.294 1.1-.882 1.764.972.205 1.636.543 1.994 1.016.357.474.536 1.336.536 2.588 0 1.227-.287 2.774-.862 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575c.435 0 .862-.109 1.284-.326s.799-.447 1.132-.69c.331-.243 1.06-.786 2.185-1.63zm-7.899-10.084c-2.122 1.279-3.937 2.435-5.444 3.47-1.509 1.036-2.786 2.083-3.834 3.144-1.049 1.062-1.752 2.128-2.109 3.202-.639 2.863-.958 4.409-.958 4.639 0 1.688 1.175 2.531 3.527 2.531 1.099 0 2.939-.945 5.521-2.838-.436-1.201-.652-2.352-.652-3.451 0-1.609.332-3.252.997-4.926.664-1.674 1.648-3.597 2.952-5.771z"}),s.a.createElement("path",{style:this.state.svg2,d:"M382.673 400.075c-3.706 4.908-6.524 8.397-8.454 10.468-1.931 2.07-3.509 3.105-4.735 3.105-.972 0-1.866-.402-2.685-1.207-.818-.806-1.451-1.892-1.897-3.26-.448-1.367-.671-2.83-.671-4.391 0-1.021.096-1.941.287-2.76s.556-1.719 1.093-2.703 1.246-2.052 2.128-3.202 1.962-2.454 3.24-3.911l1.937-2.262c.523-.613 1.035-1.029 1.533-1.246.499-.217 1.31-.326 2.436-.326.817 0 1.597.109 2.339.326.74.217 1.111.441 1.111.671 0 .46-.377 1.291-1.131 2.492-.754 1.202-1.969 2.665-3.643 4.391-1.675 1.725-3.611 3.419-5.809 5.081-.486 1.509-.729 2.659-.729 3.45 0 1.1.421 1.649 1.265 1.649.307 0 .818-.263 1.534-.786.715-.523 1.923-1.533 3.623-3.029 1.7-1.495 3.227-2.818 4.582-3.969.997-.868 2.153-2.166 3.47-3.892s2.384-3.022 3.202-3.892c1.892-1.994 3.183-3.291 3.873-3.892.689-.6 1.354-.901 1.993-.901.614 0 1.029.191 1.246.575.217.383.326 1.164.326 2.339 0 .537-.052.972-.153 1.304-.103.333-.313.761-.633 1.284-.319.524-.965 1.49-1.937 2.895-.972 1.406-2.122 3.068-3.45 4.985a19.757 19.757 0 0 0-1.879 3.354c-.537 1.215-.806 2.129-.806 2.742 0 1.329.523 1.994 1.572 1.994.869 0 1.879-.358 3.029-1.074 1.15-.715 2.914-2.006 5.291-3.873v2.569c-2.99 2.761-5.202 4.769-6.633 6.021-1.433 1.252-2.672 2.198-3.72 2.837-1.049.64-2.045.958-2.99.958-2.147 0-3.222-1.277-3.222-3.834 0-.971.319-2.281.959-3.93.641-1.647 1.676-4.031 3.108-7.15z"}),s.a.createElement("path",{style:this.state.svg2,d:"M394.445 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.412-.625-1.783-1.035-.37-.408-.556-1.022-.556-1.84 0-.92.384-2.083 1.15-3.489a20.009 20.009 0 0 1 2.838-3.949c1.124-1.227 2.146-2.019 3.067-2.377a2.317 2.317 0 0 1 1.035-.268c.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.284 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.279-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.408-1.073-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a56.381 56.381 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.179-1.764.32-2.301.422-1.584 3.167-3.885 6.043-6.901 8.624zM468.485 402.683v2.415c-2.224 2.275-4.147 4.136-5.771 5.58-1.623 1.443-3.042 2.537-4.256 3.277-1.215.742-2.243 1.112-3.087 1.112-1.994 0-2.99-1.175-2.99-3.527 0-1.892.619-4.083 1.859-6.576 1.239-2.492 3.022-5.425 5.349-8.8a22.571 22.571 0 0 0-3.259 2.205 22.17 22.17 0 0 0-2.723 2.607 165.11 165.11 0 0 0-1.994 2.319 119.967 119.967 0 0 0-4.793 5.732c-1.533 1.956-2.568 3.228-3.105 3.815s-1.049.882-1.533.882c-1.994 0-2.991-2.454-2.991-7.362 0-1.61.242-3.387.729-5.33.485-1.941 1.789-4.511 3.911-7.707 4.473-6.697 8.301-12.174 11.483-16.43 3.183-4.256 5.822-7.477 7.918-9.663s3.502-3.252 4.218-3.202c.895.077 1.616.256 2.167.537.549.282.824.601.824.958 0 .64-.441 1.694-1.323 3.164-.882 1.47-2.396 3.764-4.544 6.882a793.87 793.87 0 0 1-4.946 6.959c-.972 1.342-2.422 3.247-4.352 5.713a314.571 314.571 0 0 1-5.291 6.595 181.801 181.801 0 0 1-5.464 6.269v4.602c3.425-3.809 6.39-6.927 8.896-9.356 2.505-2.428 4.626-4.262 6.364-5.502 1.738-1.239 3.017-1.859 3.835-1.859.767 0 1.482.454 2.147 1.361.664.907.996 1.655.996 2.243 0 .256-.128.575-.383.959-1.841 2.199-3.305 4.02-4.391 5.464-1.087 1.443-1.924 2.734-2.512 3.872s-.882 2.115-.882 2.933c0 1.203.575 1.803 1.726 1.803 1.229.002 3.951-1.647 8.168-4.944z"}),s.a.createElement("path",{style:this.state.svg2,d:"M474.62 404.063v.959c0 1.509.371 2.684 1.112 3.527s1.712 1.266 2.914 1.266c1.252 0 2.55-.293 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339 1.329-.971 2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.994-2.53 1.854-5.1 2.78-7.707 2.78-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.685.626-5.118 1.879-7.304 1.252-2.186 3.298-4.493 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.63-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.502 3.086-9.107 4.544zm.384-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.329 2.843-2.6 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882-1.035.588-2.084 1.355-3.145 2.3a16.938 16.938 0 0 0-2.856 3.335 10.821 10.821 0 0 0-1.648 4.181z"}),s.a.createElement("path",{style:this.state.svg2,d:"M495.9 395.819c3.886-3.528 7.655-6.147 11.312-7.86 3.655-1.712 6.479-2.569 8.474-2.569.537 0 1.035.224 1.495.671s.824.965 1.093 1.553.403 1.022.403 1.304c0 .46-.18.799-.537 1.016-.358.217-.984.479-1.879.786.179.409.408.933.69 1.572.28.639.498 1.157.651 1.553s.23.748.23 1.054c0 .613-.62 1.758-1.86 3.431-1.239 1.676-2.108 2.908-2.606 3.701-.499.792-.748 1.764-.748 2.914 0 1.892.868 2.837 2.607 2.837 1.789 0 4.588-1.674 8.397-5.022v2.338c-6.468 7.184-11.095 10.775-13.881 10.775-.997 0-1.706-.326-2.128-.979-.422-.651-.633-1.616-.633-2.895 0-2.02.729-4.946 2.186-8.781-3.732 4.142-6.506 7.088-8.32 8.839-1.815 1.751-3.311 2.626-4.486 2.626-.563 0-1.265-.484-2.108-1.457-.844-.971-1.592-2.229-2.243-3.776a12.26 12.26 0 0 1-.978-4.812c0-1.201.114-2.205.345-3.01.23-.807.677-1.631 1.342-2.474.665-.842 1.725-1.955 3.182-3.335zm18.367-4.217c-6.646 3.042-11.382 5.623-14.206 7.745s-4.236 4.308-4.236 6.557c0 .818.14 1.489.421 2.013.281.525.665.787 1.15.787.281 0 .779-.18 1.496-.537 2.684-1.585 5.138-3.648 7.361-6.193 2.224-2.544 4.894-6.001 8.014-10.372z"}),s.a.createElement("path",{style:this.state.svg2,d:"M522.895 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.412-.625-1.783-1.035-.37-.408-.556-1.022-.556-1.84 0-.92.384-2.083 1.15-3.489a20.009 20.009 0 0 1 2.838-3.949c1.124-1.227 2.146-2.019 3.067-2.377a2.317 2.317 0 0 1 1.035-.268c.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.284 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.279-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.408-1.073-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a56.381 56.381 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.886 6.043-6.901 8.624z"}),s.a.createElement("path",{style:this.state.svg2,d:"M559.666 382.782h1.648c1.354-2.428 2.582-4.147 3.681-5.157s2.352-1.515 3.758-1.515c1.405 0 2.109.32 2.109.958 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269.677.077 1.207.141 1.591.191-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.316-.096-1.802-.134a364.662 364.662 0 0 0-3.298-.249c-1.38 2.224-2.537 4.211-3.47 5.962-.934 1.751-1.648 3.355-2.147 4.813-.498 1.457-.747 2.837-.747 4.141 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.343s-1.055-2.044-1.055-3.45c0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.307.269-.613.543-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.844-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.086-.242 2.613-.364 4.582-.364z"}),s.a.createElement("path",{style:this.state.svg2,d:"M565.686 403.756v-.92c6.595-6.953 11.132-11.822 13.612-14.609.562-3.144 1.917-4.716 4.064-4.716.536 0 1.111.153 1.725.46l.23.729c-.103.307-.153.742-.153 1.304 0 .486.186 1.387.556 2.703.37 1.317.658 2.422.863 3.316.204.896.307 1.905.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.637 4.353c.921.152 1.649.229 2.186.229 1.048 0 2.18-.262 3.394-.786 1.214-.523 2.454-1.227 3.72-2.109 1.265-.881 2.741-2.025 4.429-3.432v2.569c-3.272 3.196-6.199 5.617-8.781 7.267-2.582 1.648-4.806 2.473-6.672 2.473-2.402 0-4.627-1.021-6.671-3.067-1.202-1.228-1.95-2.402-2.243-3.528-.297-1.125-.443-2.645-.443-4.563zm14.301-5.866l-.689-5.598c-1.586 1.79-4.973 5.228-10.161 10.314 1.533.333 2.581.78 3.144 1.342.563.563 1.355 1.649 2.378 3.26 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08a9.76 9.76 0 0 0-.078-1.304z"}))))),s.a.createElement(c.i,{className:"credits"},s.a.createElement(c.l,null,s.a.createElement(c.h,null,s.a.createElement(p.a,{easing:"easeInOutQuint",delay:3e3,duration:500,strokeDashoffset:0,opacity:[0,1]},s.a.createElement("h3",null,"Developed by")))),s.a.createElement(c.l,null,s.a.createElement(c.h,{className:"col-xs-12 col-lg-12 col-xl-12"},s.a.createElement("div",{className:"other98-svg"},s.a.createElement(p.a,{easing:"easeInOutQuint",delay:function(e,t){return 0==t?3500:100*t+1500},duration:500,strokeDashoffset:0,opacity:[0,1]},s.a.createElement("h5",null,s.a.createElement("svg",{width:"100%",height:"3em",viewBox:"0 0 450 145",preserveAspectRatio:"xMidYMin meet"},s.a.createElement("path",{fill:"none",d:"M81.607 27.312h412.247v148.67H81.607z"}),s.a.createElement("g",{fill:"#FFF"},s.a.createElement("path",{d:"M137.777 97.438V70.035h-5.328v-17.38h5.328V35.91h19.917v16.745h7.104v17.38h-7.104v23.089c0 3.045.888 4.694 2.791 4.694 1.142 0 2.411-.381 2.918-1.015l3.172 15.857c-2.411 1.649-6.724 2.791-11.798 2.791-12.306.001-17-5.962-17-18.013zM200.956 113.93V73.461c0-3.172-1.142-4.694-3.679-4.694-2.791 0-4.948 3.172-5.962 5.963v39.2H171.27V29.313h20.044v30.7c2.283-4.44 9.261-8.881 15.223-8.881 10.403 0 14.462 5.963 14.462 14.336v48.461h-20.043zM227.471 83.229c0-17.761 9.26-32.097 26.514-32.097 17.253 0 24.992 13.067 24.992 31.716v6.978h-32.35c.126 5.074 3.171 9.515 10.656 9.515 3.425 0 7.23-1.776 10.275-4.694l8.754 11.418c-5.582 6.216-13.955 9.388-21.313 9.388-17.253-.001-27.528-13.067-27.528-32.224zm25.879-15.985c-5.455 0-6.723 4.694-6.723 9.008h13.447c0-4.314-1.142-9.008-6.724-9.008zM285.066 113.93V52.655h20.045v7.358c2.029-4.947 9.007-9.008 13.32-9.008v19.156c-1.016-.253-2.157-.507-3.299-.507-3.172 0-7.611 2.029-10.021 5.455v38.819h-20.045zM325.154 107.206l10.91-16.492c2.41 3.172 5.455 4.821 9.262 4.821 5.328 0 11.925-5.709 11.925-18.522v-.761c-2.538 5.836-8.373 9.388-14.97 9.388-10.91 0-20.298-9.896-20.298-27.909 0-18.396 12.052-29.813 27.021-29.813 21.439 0 30.827 19.282 30.827 43.64 0 27.402-13.574 43.768-33.998 43.768-8.118-.001-15.857-3.173-20.679-8.12zm32.224-46.051c-.381-7.104-1.649-13.447-6.724-13.447-4.313 0-6.217 4.82-6.217 9.134 0 7.358 3.553 9.769 6.344 9.769 3.298-.001 5.074-2.411 6.597-5.456zM384.274 91.855c0-9.515 6.724-18.648 15.097-21.566-7.865-2.537-13.955-9.769-13.955-19.917 0-15.857 13.955-22.328 27.783-22.328 13.701 0 27.909 6.471 27.909 22.328 0 10.148-6.216 17.38-14.081 19.917 8.372 2.918 15.096 12.052 15.096 21.439 0 14.97-10.021 23.724-28.924 23.724-19.029 0-28.925-8.627-28.925-23.597zm35.648-3.678c0-6.47-5.201-9.642-6.723-10.022-1.523.381-6.598 3.553-6.598 10.022 0 5.328 3.045 7.485 6.598 7.485 3.425 0 6.723-2.157 6.723-7.485zm-.761-33.111c0-4.694-2.283-7.231-5.962-7.231-3.68 0-5.963 2.537-5.963 7.231 0 5.328 4.82 7.738 5.963 8.372 1.268-.633 5.962-3.043 5.962-8.372z"})),s.a.createElement("path",{fill:"#FFF",d:"M42.8 16.15c.4-.167.8-.35 1.2-.55a60.249 60.249 0 0 1 9.35-3.1c1.767-.433 3.583-.8 5.45-1.1a60.05 60.05 0 0 1 5.8-.7c3.867-.3 7.65-.25 11.35.15A58.039 58.039 0 0 1 87.8 13.5a49.486 49.486 0 0 1 5.3 2.05 89.78 89.78 0 0 1 6.7 3.35c1.333.767 2.667 1.55 4 2.35 4.6 2.867 8.983 6.383 13.15 10.55 4.933 4.967 8.867 10.35 11.8 16.15.433.9.85 1.8 1.25 2.7 2.1 4.8 3.517 9.9 4.25 15.3.5 4.466.683 8.866.55 13.2-.933 15.199-6.883 28.3-17.85 39.3-11.967 11.933-26.417 17.917-43.35 17.95-10.767-.033-20.55-2.467-29.35-7.301a75.807 75.807 0 0 1-7.15-4.5c-1.434-1-2.85-2.017-4.25-3.05C19.117 111.65 10.9 98.367 8.2 81.7c-.034-.2-.067-.384-.1-.55a63.809 63.809 0 0 1-.8-10.55c0-.967.034-1.934.1-2.9.533-9.267 3.217-18.034 8.05-26.3v.05a67.512 67.512 0 0 1 3.5-5.4l.1-.1c.567-.8 1.167-1.583 1.8-2.35 2.933-3.733 6.15-7.017 9.65-9.85l.6-.5c.333-.267.683-.533 1.05-.8h.05l.6-.45 17.9 18.55-10.3-23.3c.4-.2.8-.383 1.2-.55.4-.2.8-.383 1.2-.55zm1.65 2.4l1.7 3.75a.393.393 0 0 0 .15-.05 66.486 66.486 0 0 1 5.85-2.3 4.67 4.67 0 0 0 .55-.15 32.062 32.062 0 0 1 1.7-.45c3.633-.934 7.4-1.5 11.3-1.7.367 0 .733-.017 1.1-.05 3.567-.1 7.034.1 10.4.6a50.83 50.83 0 0 1 12.05 3.35c1.3.567 2.583 1.167 3.85 1.8 3 1.566 5.883 3.45 8.65 5.65 1.267 1 2.517 2.083 3.75 3.25a58.707 58.707 0 0 1 5.05 5.4 45.51 45.51 0 0 1 3.4 4.6A35 35 0 0 1 115.7 45L15.4 61.3l-.15.05c.2-1.067.433-2.117.7-3.15.367-1.534.816-3.05 1.35-4.55l.3-.9a51.982 51.982 0 0 1 4.75-9.55A62.373 62.373 0 0 1 24 40.75a56.94 56.94 0 0 1 5.05-6.1 44.719 44.719 0 0 1 3.35-3.3c.8-.767 1.633-1.483 2.5-2.15l-2.8-2.95-.1.1-.1-.1c-.1.067-.2.15-.3.25-3.733 3.067-7.117 6.7-10.15 10.9l-.3.4a.33.33 0 0 0-.15.15 62.151 62.151 0 0 0-3.2 4.95 58.24 58.24 0 0 0-4 8.2c-.367.9-.7 1.8-1 2.7-.466 1.4-.867 2.8-1.2 4.2-.733 3-1.2 6.083-1.4 9.25a82.788 82.788 0 0 0-.15 2.9v.9c0 2.435.15 4.9.45 7.4.133.833.267 1.683.4 2.55v.05c1.033 6.435 2.934 12.333 5.7 17.7.1.167.183.35.25.55.133.233.267.45.4.65.1.233.217.466.35.7 4.033 7.1 9.633 13.232 16.8 18.399 4.733 3.4 9.65 6.017 14.75 7.851 1.533.533 3.1 1 4.7 1.399 4.533 1.2 9.2 1.8 14 1.8 2.433 0 4.917-.149 7.45-.449.8-.133 1.6-.25 2.4-.351a.406.406 0 0 1 .15-.05c5.9-.967 11.367-2.65 16.4-5.05l3.65-1.95a.768.768 0 0 0 .2-.15 55.633 55.633 0 0 0 11.2-8.6l4.35-4.85c.733-.934 1.467-1.9 2.2-2.9 6.767-9.4 10.433-19.55 11-30.45.2-4.233-.067-8.566-.8-13a68.902 68.902 0 0 0-2.25-9.65c-.133-.333-.25-.65-.35-.95-.333-.934-.667-1.833-1-2.7-3.167-7.633-7.867-14.3-14.1-20a69.314 69.314 0 0 0-4.1-3.4l-1.5-1.1c-.7-.5-1.417-1-2.15-1.5-.434-.267-.867-.55-1.3-.85a47.35 47.35 0 0 0-1.35-.8c-.3-.2-.617-.383-.95-.55-1.3-.733-2.6-1.417-3.9-2.05a71.081 71.081 0 0 0-4.7-2 55.617 55.617 0 0 0-11.6-2.85h-.35c-.567-.1-1.117-.167-1.65-.2l-5.5-.25-7.5.45c-.9.1-1.8.217-2.7.35-1.8.3-3.567.667-5.3 1.1a59.966 59.966 0 0 0-8.85 2.95 3.652 3.652 0 0 0-.5.251zM14.5 69.4l11.75-1.9L33.5 113c-.7-.6-1.4-1.232-2.1-1.9a46.881 46.881 0 0 1-2.6-2.6 51.988 51.988 0 0 1-4.5-5.45 46.88 46.88 0 0 1-3.4-5.25l.15-.05c-2.867-5.232-4.816-11.033-5.85-17.4v-.05c-.1-.8-.2-1.583-.3-2.35-.3-2.333-.45-4.617-.45-6.85 0-.567.017-1.133.05-1.7zm19.95-35.35l-1.35 8.5-8.35 1.35 7.7 3.75-1.35 8.4L37.05 50l7.55 3.85-3.9-7.5 5.45-5.5-.35-.4-7.45 1.25-3.9-7.65zm16.2-1.55l.2.5 6.8 3.35-1.3 8.4 5.95-6.05 7.55 3.85-3.9-7.55 6-5.95-8.35 1.35-3.9-7.65-1.35 8.5-7.7 1.25zM49.3 63.75l10 61.35a54.33 54.33 0 0 1-6.9-1.55c-.8-.267-1.6-.55-2.4-.85-1.1-.4-2.167-.817-3.2-1.25L37.85 65.6l11.45-1.85zm70.3-9.65c.9 2.867 1.6 5.833 2.1 8.9.033.267.083.517.15.75.9 6.1.85 11.982-.15 17.65l.1-.051a43.23 43.23 0 0 1-1.4 6.051 50.448 50.448 0 0 1-2.45 6.6 67.888 67.888 0 0 1-3.1 5.7v.05l-2.75-16.8-5.45-28.55 12.35-2 .6 1.7zm-58.5 7.75l11.5-1.9 10.4 64a55.392 55.392 0 0 1-4.65 1c-.367.065-.75.133-1.15.2-1.9.267-3.85.467-5.85.6L61.1 61.85zM90.45 33.2l-3.95-7.65-1.35 8.5-8.3 1.35 7.65 3.8-1.3 8.35 5.9-6.05 7.6 3.85-3.9-7.5 6-6-8.35 1.35zm4.95 23.05l9.45 55.45c-.867.8-1.733 1.565-2.6 2.3-.133.133-.283.25-.45.35a56.062 56.062 0 0 1-7.6 5.101L84 58.1l11.4-1.85z"}))))))),s.a.createElement(c.l,null,s.a.createElement(c.h,null,s.a.createElement(p.a,{easing:"easeInOutQuint",delay:function(e,t){return 0==t?3500:100*t+1500},duration:500,strokeDashoffset:0,opacity:[0,1]},s.a.createElement("h3",{className:"ampersand"},"&")))),s.a.createElement(c.l,null,s.a.createElement(c.h,{className:"col-xs-12 col-lg-12 col-xl-12"},s.a.createElement("div",{className:"stand-svg"},s.a.createElement(p.a,{easing:"easeInOutQuint",delay:function(e,t){return 0==t?3500:100*t+1500},duration:500,strokeDashoffset:0,opacity:[0,1],complete:this.onAnimationComplete},s.a.createElement("svg",{width:"100%",height:"5em",viewBox:"0 0 192.039 77.514",preserveAspectRatio:"xMidYMin meet"},s.a.createElement("path",{fill:"#FFF",d:"M135.152 63.676v-.039c0-2.831 2.02-5.162 4.906-5.162 3.314 0 4.834 2.572 4.834 5.387 0 .219-.021.48-.037.738h-6.906c.277 1.279 1.168 1.943 2.425 1.943.944 0 1.632-.295 2.407-1.018l1.611 1.426c-.926 1.148-2.262 1.853-4.055 1.853-2.98 0-5.185-2.093-5.185-5.128m6.998-.835c-.164-1.259-.906-2.108-2.092-2.108-1.166 0-1.924.832-2.146 2.108h4.238zM146.022 65.729v-.037c0-2.166 1.648-3.166 3.997-3.166 1 0 1.725.168 2.428.409v-.167c0-1.164-.724-1.814-2.129-1.814-1.076 0-1.836.201-2.742.536l-.703-2.147c1.094-.48 2.166-.795 3.851-.795 1.538 0 2.647.404 3.353 1.109.739.74 1.072 1.833 1.072 3.165v5.759h-2.721v-1.074c-.684.76-1.629 1.258-3 1.258-1.869-.001-3.406-1.075-3.406-3.036m6.46-.646v-.501a4.383 4.383 0 0 0-1.797-.37c-1.199 0-1.943.48-1.943 1.371v.036c0 .76.631 1.204 1.539 1.204 1.313 0 2.201-.723 2.201-1.74M156.704 58.66h2.814v1.997c.572-1.369 1.499-2.257 3.167-2.184v2.945h-.151c-1.868 0-3.016 1.127-3.016 3.498v3.664h-2.814v-9.92zM165.034 65.768v-4.704h-1.183V58.66h1.183v-2.54h2.815v2.54h2.333v2.404h-2.333v4.241c0 .646.278.961.906.961.52 0 .982-.129 1.387-.352v2.26c-.592.353-1.275.574-2.219.574-1.722.001-2.889-.684-2.889-2.98M171.887 55.066h2.813v4.999c.65-.833 1.481-1.59 2.908-1.59 2.128 0 3.368 1.402 3.368 3.682v6.424h-2.812v-5.537c0-1.33-.632-2.014-1.706-2.014s-1.759.684-1.759 2.014v5.537h-2.813V55.066zM133.545 65.668c.585 0 .864.151.864.471v2.003c0 .317-.279.471-.864.471h-1.349c-.584 0-.862-.153-.862-.471v-2.003c0-.319.278-.471.862-.471h1.349zM25.054 52.983c-6.007 0-10.791-1.279-13.629-2.781-1.112-.555-1.558-1.168-1.057-2.502l1.947-5.176c.5-1.279 1.223-1.725 2.558-1.168 1.893.781 4.563 1.67 7.9 1.67 3.06 0 5.621-.445 5.621-2.336 0-1.447-2.116-2.282-5.563-3.451-6.01-2.004-12.185-4.563-12.185-13.352 0-8.179 5.897-11.517 15.187-11.517 5.453 0 9.793 1.335 12.018 2.56 1.112.612 1.557 1.168 1.058 2.503l-1.892 4.896c-.501 1.28-1.225 1.614-2.56 1.168-2.171-.722-5.008-1.168-7.345-1.168-2.391 0-4.339.225-4.339 2.003 0 1.447 1.893 2.337 5.508 3.672 6.511 2.393 12.24 4.34 12.24 12.741.001 8.957-7.343 12.238-15.467 12.238M41.298 15.598c0-1.391.612-2.004 2.002-2.004h26.372c1.391 0 2.002.613 2.002 2.004v6.676c0 1.39-.611 2.003-2.002 2.003H62.55v26.705c0 1.391-.612 2.002-2.002 2.002h-8.123c-1.391 0-2.003-.611-2.003-2.002V24.276H43.3c-1.39 0-2.002-.613-2.002-2.003v-6.675zM142.77 50.981c0 1.391-.613 2.002-2.004 2.002h-7.732c-1.393 0-1.891-.334-2.391-1.225l-9.793-17.802v17.025c0 1.391-.613 2.002-2.002 2.002h-7.68c-1.391 0-2.002-.611-2.002-2.002V15.597c0-1.391.611-2.003 2.002-2.003h7.736c1.389 0 1.891.334 2.389 1.225l9.793 17.802V15.597c0-1.391.613-2.003 2.004-2.003h7.676c1.391 0 2.004.612 2.004 2.003v35.384zM149.443 52.983c-1.391 0-2.004-.611-2.004-2.002V15.598c0-1.391.613-2.004 2.004-2.004h12.404c12.854 0 19.309 5.842 19.309 19.694 0 13.853-6.455 19.695-19.309 19.695h-12.404zm10.125-28.929v18.47h1.727c5.23 0 7.619-1.947 7.619-9.236 0-7.287-2.389-9.234-7.619-9.234h-1.727zM106.058 50.576L94.469 15.142c-.392-1.176-.951-1.793-2.407-1.793H81.985c-1.456 0-2.015.617-2.407 1.793L67.991 50.576c-.504 1.456.167 2.407 1.511 2.407h7.673l.731-2.431h7.733l.02-8.746-4.887-.007 6.25-18.604.001.026.001-.026 5.97 18.604h-4.719l.017 8.753h7.641l.783 2.353 7.83.078c1.344 0 2.016-.951 1.512-2.407"}))))))))}}]),t}(i.Component),m=function(e){return{setSubmissionCount:function(t){return e(Object(f.c)(t))},splashCompleteAnimation:function(){return e(Object(f.d)())}}};t.a=Object(l.b)(null,m)(h)},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t){function n(e){var t=r(e)?s.call(e):"";return t==o||t==a}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var o="[object Function]",a="[object GeneratorFunction]",i=Object.prototype,s=i.toString;e.exports=n},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=t.Popper=t.Target=t.Manager=void 0;var o=n(165),a=r(o),i=n(166),s=r(i),l=n(167),c=r(l),u=n(169),p=r(u);t.Manager=a.default,t.Target=s.default,t.Popper=c.default,t.Arrow=p.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),u=(r(c),n(1)),p=r(u),f=function(e){function t(){var e,n,r,o;a(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},o=n,i(r,o)}return s(t,e),l(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,r=o(e,["tag","children"]);return!1!==t?(0,c.createElement)(t,r,n):n}}]),t}(c.Component);f.childContextTypes={popperManager:p.default.object.isRequired},f.propTypes={tag:p.default.oneOfType([p.default.string,p.default.bool])},f.defaultProps={tag:"div"},t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),s=(r(i),n(1)),l=r(s),c=function(e,t){var n=e.component,r=void 0===n?"div":n,s=e.innerRef,l=e.children,c=o(e,["component","innerRef","children"]),u=t.popperManager,p=function(e){u.setTargetNode(e),"function"===typeof s&&s(e)};if("function"===typeof l){return l({targetProps:{ref:p},restProps:c})}var f=a({},c);return"string"===typeof r?f.ref=p:f.innerRef=p,(0,i.createElement)(r,f,l)};c.contextTypes={popperManager:l.default.object.isRequired},c.propTypes={component:l.default.oneOfType([l.default.node,l.default.func]),innerRef:l.default.func,children:l.default.oneOfType([l.default.node,l.default.func])},t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(0),f=(r(p),n(1)),d=r(f),h=n(168),m=r(h),y=function(e){function t(){var e,n,r,o;i(this,t);for(var a=arguments.length,l=Array(a),u=0;u<a;u++)l[u]=arguments[u];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={},r._setArrowNode=function(e){r._arrowNode=e},r._getTargetNode=function(){return r.context.popperManager.getTargetNode()},r._getOffsets=function(e){return Object.keys(e.offsets).map(function(t){return e.offsets[t]})},r._isDataDirty=function(e){return!r.state.data||JSON.stringify(r._getOffsets(r.state.data))!==JSON.stringify(r._getOffsets(e))},r._updateStateModifier={enabled:!0,order:900,fn:function(e){return r._isDataDirty(e)&&r.setState({data:e}),e}},r._getPopperStyle=function(){var e=r.state.data;if(!e)return{position:"absolute",pointerEvents:"none",opacity:0};var t=e.offsets.popper,n=(t.top,t.left,t.position);return c({position:n},e.styles)},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getPopperHide=function(){return r.state.data&&r.state.data.hide?"":void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var e=r.state.data.offsets.arrow;return{top:e.top,left:e.left}}return{}},o=n,s(r,o)}return l(t,e),u(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled||(this._destroyPopper(),this._createPopper()),e.children!==this.props.children&&this._popper.scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var e=this.props,t=e.placement,n=e.eventsEnabled,r=c({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(r.arrow={element:this._arrowNode}),this._popper=new m.default(this._getTargetNode(),this._node,{placement:t,eventsEnabled:n,modifiers:r}),this._popper.scheduleUpdate()}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this,t=this.props,n=t.component,r=t.innerRef,i=(t.placement,t.eventsEnabled,t.modifiers,t.children),s=a(t,["component","innerRef","placement","eventsEnabled","modifiers","children"]),l=function(t){e._node=t,t?e._createPopper():e._destroyPopper(),"function"===typeof r&&r(t)},u=this._getPopperStyle(),f=this._getPopperPlacement(),d=this._getPopperHide();if("function"===typeof i){var h;return i({popperProps:(h={ref:l,style:u},o(h,"data-placement",f),o(h,"data-x-out-of-boundaries",d),h),restProps:s,scheduleUpdate:function(){e._popper&&e._popper.scheduleUpdate()}})}var m=c({},s,{style:c({},s.style,u),"data-placement":f,"data-x-out-of-boundaries":d});return"string"===typeof n?m.ref=l:m.innerRef=l,(0,p.createElement)(n,m,i)}}]),t}(p.Component);y.contextTypes={popperManager:d.default.object.isRequired},y.childContextTypes={popper:d.default.object.isRequired},y.propTypes={component:d.default.oneOfType([d.default.node,d.default.func]),innerRef:d.default.func,placement:d.default.oneOf(m.default.placements),eventsEnabled:d.default.bool,modifiers:d.default.object,children:d.default.oneOfType([d.default.node,d.default.func])},y.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ce))}}function o(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+r)?e:s(i(e))}function l(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===a(t,"position")?l(t):t:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||l(e.firstElementChild)===e)}function u(e){return null!==e.parentNode?u(e.parentNode):e}function p(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i=a.commonAncestorContainer;if(e!==i&&t!==i||r.contains(o))return c(i)?i:l(i);var s=u(e);return s.host?p(s.host,t):p(e,u(t).host)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(t,"top"),o=f(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function h(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function m(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],he()?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function y(){var e=document.body,t=document.documentElement,n=he()&&getComputedStyle(t);return{height:m("Height",e,t,n),width:m("Width",e,t,n)}}function v(e){return ge({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var t={};if(he())try{t=e.getBoundingClientRect();var n=f(e,"top"),r=f(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}catch(e){}else t=e.getBoundingClientRect();var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?y():{},s=i.width||e.clientWidth||o.right-o.left,l=i.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=h(p,"x"),u-=h(p,"y"),o.width-=c,o.height-=u}return v(o)}function b(e,t){var n=he(),r="HTML"===t.nodeName,o=g(e),i=g(t),l=s(e),c=a(t),u=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10),f=v({top:o.top-i.top-u,left:o.left-i.left-p,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!n&&r){var h=parseFloat(c.marginTop,10),m=parseFloat(c.marginLeft,10);f.top-=u-h,f.bottom-=u-h,f.left-=p-m,f.right-=p-m,f.marginTop=h,f.marginLeft=m}return(n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=d(f,t)),f}function w(e){var t=e.ownerDocument.documentElement,n=b(e,t),r=Math.max(t.clientWidth,window.innerWidth||0),o=Math.max(t.clientHeight,window.innerHeight||0),a=f(t),i=f(t,"left");return v({top:a-n.top+n.marginTop,left:i-n.left+n.marginLeft,width:r,height:o})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===a(e,"position")||E(i(e)))}function O(e,t,n,r){var o={top:0,left:0},a=p(e,t);if("viewport"===r)o=w(a);else{var l=void 0;"scrollParent"===r?(l=s(i(t)),"BODY"===l.nodeName&&(l=e.ownerDocument.documentElement)):l="window"===r?e.ownerDocument.documentElement:r;var c=b(l,a);if("HTML"!==l.nodeName||E(a))o=c;else{var u=y(),f=u.height,d=u.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=d+c.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function T(e){return e.width*e.height}function k(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=O(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(e){return ge({key:e},s[e],{area:T(s[e])})}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function C(e,t,n){return b(n,p(t,n))}function x(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function P(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function _(e,t,n){n=n.split("-")[0];var r=x(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[P(s)],o}function S(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=S(e,function(e){return e[t]===n});return e.indexOf(r)}function j(e,t,n){return(void 0===n?e:e.slice(0,N(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=v(t.offsets.popper),t.offsets.reference=v(t.offsets.reference),t=n(t,e))}),t}function M(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=_(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=j(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function A(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var o=t[r],a=o?""+o+n:e;if("undefined"!==typeof document.body.style[a])return a}return null}function D(){return this.state.isDestroyed=!0,A(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function I(e){var t=e.ownerDocument;return t?t.defaultView:window}function L(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||L(s(a.parentNode),t,n,r),r.push(a)}function z(e,t,n,r){n.updateBound=r,I(e).addEventListener("resize",n.updateBound,{passive:!0});var o=s(e);return L(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function U(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function F(e,t){return I(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function H(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=F(this.reference,this.state))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(r="px"),e.style[n]=t[n]+r})}function W(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e){return V(e.instance.popper,e.styles),W(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e}function K(e,t,n,r,o){var a=C(o,t,e),i=k(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),V(t,{position:"absolute"}),n}function $(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=S(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=l(e.instance.popper),c=g(s),u={position:o.position},p={left:Math.floor(o.left),top:Math.floor(o.top),bottom:Math.floor(o.bottom),right:Math.floor(o.right)},f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=R("transform"),m=void 0,y=void 0;if(y="bottom"===f?-c.height+p.bottom:p.top,m="right"===d?-c.width+p.right:p.left,i&&h)u[h]="translate3d("+m+"px, "+y+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var v="bottom"===f?-1:1,b="right"===d?-1:1;u[f]=y*v,u[d]=m*b,u.willChange=f+", "+d}var w={"x-placement":e.placement};return e.attributes=ge({},w,e.attributes),e.styles=ge({},u,e.styles),e.arrowStyles=ge({},e.offsets.arrow,e.arrowStyles),e}function Y(e,t,n){var r=S(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}function G(e,t){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=x(r)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=v(e.offsets.popper);var y=l[f]+l[u]/2-m/2,g=a(e.instance.popper),b=parseFloat(g["margin"+p],10),w=parseFloat(g["border"+p+"Width"],10),E=y-e.offsets.popper[f]-b-w;return E=Math.max(Math.min(s[u]-m,E),0),e.arrowElement=r,e.offsets.arrow=(n={},ve(n,f,Math.round(E)),ve(n,d,""),n),e}function J(e){return"end"===e?"start":"start"===e?"end":e}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=we.indexOf(e),r=we.slice(n+1).concat(we.slice(0,n));return t?r.reverse():r}function Q(e,t){if(A(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),r=e.placement.split("-")[0],o=P(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Ee.FLIP:i=[r,o];break;case Ee.CLOCKWISE:i=X(r);break;case Ee.COUNTERCLOCKWISE:i=X(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=P(r);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),v="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&y,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===a&&d||g&&"end"===a&&h||!g&&"start"===a&&m||!g&&"end"===a&&y);(f||v||b)&&(e.flipped=!0,(f||v)&&(r=i[l+1]),b&&(a=J(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=ge({},e.offsets.popper,_(e.instance.popper,e.offsets.reference,e.placement)),e=j(e.instance.modifiers,e,"flip"))}),e}function Z(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function ee(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return v(s)[t]/100*a}if("vh"===i||"vw"===i){return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a}return a}function te(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(S(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return ee(e,o,t,n)})}),c.forEach(function(e,t){e.forEach(function(n,r){B(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}function ne(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=B(+n)?[+n,0]:te(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function re(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var r=O(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=r;var o=t.priority,a=e.offsets.popper,i={primary:function(e){var n=a[e];return a[e]<r[e]&&!t.escapeWithReference&&(n=Math.max(a[e],r[e])),ve({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=a[n];return a[e]>r[e]&&!t.escapeWithReference&&(o=Math.min(a[n],r[e]-("right"===e?a.width:a.height))),ve({},n,o)}};return o.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";a=ge({},a,i[t](e))}),e.offsets.popper=a,e}function oe(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:ve({},l,a[l]),end:ve({},l,a[l]+a[c]-i[c])};e.offsets.popper=ge({},i,u[r])}return e}function ae(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=S(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ie(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=P(t),e.offsets.popper=v(o),e}for(var se="undefined"!==typeof window&&"undefined"!==typeof document,le=["Edge","Trident","Firefox"],ce=0,ue=0;ue<le.length;ue+=1)if(se&&navigator.userAgent.indexOf(le[ue])>=0){ce=1;break}var pe=se&&window.Promise,fe=pe?n:r,de=void 0,he=function(){return void 0===de&&(de=-1!==navigator.appVersion.indexOf("MSIE 10")),de},me=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ye=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ve=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],we=be.slice(3),Ee={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Oe={shift:{order:100,enabled:!0,fn:oe},offset:{order:200,enabled:!0,fn:ne,offset:0},preventOverflow:{order:300,enabled:!0,fn:re,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Z},arrow:{order:500,enabled:!0,fn:G,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Q,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ie},hide:{order:800,enabled:!0,fn:ae},computeStyle:{order:850,enabled:!0,fn:$,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:q,onLoad:K,gpuAcceleration:void 0}},Te={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Oe},ke=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=fe(this.update.bind(this)),this.options=ge({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ge({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=ge({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ge({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ye(e,[{key:"update",value:function(){return M.call(this)}},{key:"destroy",value:function(){return D.call(this)}},{key:"enableEventListeners",value:function(){return U.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),e}();ke.Utils=("undefined"!==typeof window?window:e).PopperUtils,ke.placements=be,ke.Defaults=Te,t.default=ke}.call(t,n(8))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),s=(r(i),n(1)),l=r(s),c=function(e,t){var n=e.component,r=void 0===n?"span":n,s=e.innerRef,l=e.children,c=o(e,["component","innerRef","children"]),u=t.popper,p=function(e){u.setArrowNode(e),"function"===typeof s&&s(e)},f=u.getArrowStyle();if("function"===typeof l){return l({arrowProps:{ref:p,style:f},restProps:c})}var d=a({},c,{style:a({},f,c.style)});return"string"===typeof r?d.ref=p:d.innerRef=p,(0,i.createElement)(r,d,l)};c.contextTypes={popper:l.default.object.isRequired},c.propTypes={component:l.default.oneOfType([l.default.node,l.default.func]),innerRef:l.default.func,children:l.default.oneOfType([l.default.node,l.default.func])},t.default=c},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&h.call(e)==s}function a(e){if("number"==typeof e)return e;if(o(e))return i;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var r=u.test(e);return r||p.test(e)?f(e.slice(2),r?2:8):c.test(e)?i:+e}var i=NaN,s="[object Symbol]",l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,d=Object.prototype,h=d.toString;e.exports=a},function(e,t,n){(function(e,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function o(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function i(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function s(e,t){return e.has(t)}function l(e,t){return null==e?void 0:e[t]}function c(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function u(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function f(){this.__data__=kt?kt(null):{},this.size=0}function d(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function h(e){var t=this.__data__;if(kt){var n=t[e];return n===ge?void 0:n}return it.call(t,e)?t[e]:void 0}function m(e){var t=this.__data__;return kt?void 0!==t[e]:it.call(t,e)}function y(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kt&&void 0===t?ge:t,this}function v(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function g(){this.__data__=[],this.size=0}function b(e){var t=this.__data__,n=U(t,e);return!(n<0)&&(n==t.length-1?t.pop():ht.call(t,n,1),--this.size,!0)}function w(e){var t=this.__data__,n=U(t,e);return n<0?void 0:t[n][1]}function E(e){return U(this.__data__,e)>-1}function O(e,t){var n=this.__data__,r=U(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function T(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(){this.size=0,this.__data__={hash:new p,map:new(wt||v),string:new p}}function C(e){var t=Q(this,e).delete(e);return this.size-=t?1:0,t}function x(e){return Q(this,e).get(e)}function P(e){return Q(this,e).has(e)}function _(e,t){var n=Q(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function S(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new T;++t<n;)this.add(e[t])}function N(e){return this.__data__.set(e,ge),this}function j(e){return this.__data__.has(e)}function M(e){var t=this.__data__=new v(e);this.size=t.size}function A(){this.__data__=new v,this.size=0}function R(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function D(e){return this.__data__.get(e)}function I(e){return this.__data__.has(e)}function L(e,t){var n=this.__data__;if(n instanceof v){var r=n.__data__;if(!wt||r.length<ve-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new T(r)}return n.set(e,t),this.size=n.size,this}function z(e,t){var n=Dt(e),r=!n&&Rt(e),o=!n&&!r&&It(e),a=!n&&!r&&!o&&Lt(e),s=n||r||o||a,l=s?i(e.length,String):[],c=l.length;for(var u in e)!t&&!it.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||te(u,c))||l.push(u);return l}function U(e,t){for(var n=e.length;n--;)if(se(e[n][0],t))return n;return-1}function F(e,t,n){var r=t(e);return Dt(e)?r:o(r,n(e))}function H(e){return null==e?void 0===e?Ue:Me:mt&&mt in Object(e)?ee(e):ae(e)}function B(e){return de(e)&&H(e)==Oe}function V(e,t,n,r,o){return e===t||(null==e||null==t||!de(e)&&!de(t)?e!==e&&t!==t:W(e,t,n,r,V,o))}function W(e,t,n,r,o,a){var i=Dt(e),s=Dt(t),l=i?Te:At(e),c=s?Te:At(t);l=l==Oe?Ae:l,c=c==Oe?Ae:c;var u=l==Ae,p=c==Ae,f=l==c;if(f&&It(e)){if(!It(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new M),i||Lt(e)?Y(e,t,n,r,o,a):G(e,t,l,n,r,o,a);if(!(n&be)){var d=u&&it.call(e,"__wrapped__"),h=p&&it.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,y=h?t.value():t;return a||(a=new M),o(m,y,n,r,a)}}return!!f&&(a||(a=new M),J(e,t,n,r,o,a))}function q(e){return!(!fe(e)||re(e))&&(ue(e)?ct:Ve).test(ie(e))}function K(e){return de(e)&&pe(e.length)&&!!qe[H(e)]}function $(e){if(!oe(e))return gt(e);var t=[];for(var n in Object(e))it.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Y(e,t,n,r,o,i){var l=n&be,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var p=i.get(e);if(p&&i.get(t))return p==t;var f=-1,d=!0,h=n&we?new S:void 0;for(i.set(e,t),i.set(t,e);++f<c;){var m=e[f],y=t[f];if(r)var v=l?r(y,m,f,t,e,i):r(m,y,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(h){if(!a(t,function(e,t){if(!s(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)})){d=!1;break}}else if(m!==y&&!o(m,y,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function G(e,t,n,r,o,a,i){switch(n){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fe:return!(e.byteLength!=t.byteLength||!a(new ft(e),new ft(t)));case Ce:case xe:case je:return se(+e,+t);case Pe:return e.name==t.name&&e.message==t.message;case De:case Le:return e==t+"";case Ne:var s=c;case Ie:var l=r&be;if(s||(s=u),e.size!=t.size&&!l)return!1;var p=i.get(e);if(p)return p==t;r|=we,i.set(e,t);var f=Y(s(e),s(t),r,o,a,i);return i.delete(e),f;case ze:if(jt)return jt.call(e)==jt.call(t)}return!1}function J(e,t,n,r,o,a){var i=n&be,s=X(e),l=s.length;if(l!=X(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:it.call(t,u)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var f=!0;a.set(e,t),a.set(t,e);for(var d=i;++c<l;){u=s[c];var h=e[u],m=t[u];if(r)var y=i?r(m,h,u,t,e,a):r(h,m,u,e,t,a);if(!(void 0===y?h===m||o(h,m,n,r,a):y)){f=!1;break}d||(d="constructor"==u)}if(f&&!d){var v=e.constructor,g=t.constructor;v!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g)&&(f=!1)}return a.delete(e),a.delete(t),f}function X(e){return F(e,he,Mt)}function Q(e,t){var n=e.__data__;return ne(t)?n["string"==typeof t?"string":"hash"]:n.map}function Z(e,t){var n=l(e,t);return q(n)?n:void 0}function ee(e){var t=it.call(e,mt),n=e[mt];try{e[mt]=void 0;var r=!0}catch(e){}var o=lt.call(e);return r&&(t?e[mt]=n:delete e[mt]),o}function te(e,t){return!!(t=null==t?Ee:t)&&("number"==typeof e||We.test(e))&&e>-1&&e%1==0&&e<t}function ne(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function re(e){return!!st&&st in e}function oe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rt)}function ae(e){return lt.call(e)}function ie(e){if(null!=e){try{return at.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function se(e,t){return e===t||e!==e&&t!==t}function le(e){return null!=e&&pe(e.length)&&!ue(e)}function ce(e,t){return V(e,t)}function ue(e){if(!fe(e))return!1;var t=H(e);return t==_e||t==Se||t==ke||t==Re}function pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ee}function fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function de(e){return null!=e&&"object"==typeof e}function he(e){return le(e)?z(e):$(e)}function me(){return[]}function ye(){return!1}var ve=200,ge="__lodash_hash_undefined__",be=1,we=2,Ee=9007199254740991,Oe="[object Arguments]",Te="[object Array]",ke="[object AsyncFunction]",Ce="[object Boolean]",xe="[object Date]",Pe="[object Error]",_e="[object Function]",Se="[object GeneratorFunction]",Ne="[object Map]",je="[object Number]",Me="[object Null]",Ae="[object Object]",Re="[object Proxy]",De="[object RegExp]",Ie="[object Set]",Le="[object String]",ze="[object Symbol]",Ue="[object Undefined]",Fe="[object ArrayBuffer]",He="[object DataView]",Be=/[\\^$.*+?()[\]{}|]/g,Ve=/^\[object .+?Constructor\]$/,We=/^(?:0|[1-9]\d*)$/,qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe[Oe]=qe[Te]=qe[Fe]=qe[Ce]=qe[He]=qe[xe]=qe[Pe]=qe[_e]=qe[Ne]=qe[je]=qe[Ae]=qe[De]=qe[Ie]=qe[Le]=qe["[object WeakMap]"]=!1;var Ke="object"==typeof e&&e&&e.Object===Object&&e,$e="object"==typeof self&&self&&self.Object===Object&&self,Ye=Ke||$e||Function("return this")(),Ge="object"==typeof t&&t&&!t.nodeType&&t,Je=Ge&&"object"==typeof n&&n&&!n.nodeType&&n,Xe=Je&&Je.exports===Ge,Qe=Xe&&Ke.process,Ze=function(){try{return Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),et=Ze&&Ze.isTypedArray,tt=Array.prototype,nt=Function.prototype,rt=Object.prototype,ot=Ye["__core-js_shared__"],at=nt.toString,it=rt.hasOwnProperty,st=function(){var e=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lt=rt.toString,ct=RegExp("^"+at.call(it).replace(Be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Xe?Ye.Buffer:void 0,pt=Ye.Symbol,ft=Ye.Uint8Array,dt=rt.propertyIsEnumerable,ht=tt.splice,mt=pt?pt.toStringTag:void 0,yt=Object.getOwnPropertySymbols,vt=ut?ut.isBuffer:void 0,gt=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),bt=Z(Ye,"DataView"),wt=Z(Ye,"Map"),Et=Z(Ye,"Promise"),Ot=Z(Ye,"Set"),Tt=Z(Ye,"WeakMap"),kt=Z(Object,"create"),Ct=ie(bt),xt=ie(wt),Pt=ie(Et),_t=ie(Ot),St=ie(Tt),Nt=pt?pt.prototype:void 0,jt=Nt?Nt.valueOf:void 0;p.prototype.clear=f,p.prototype.delete=d,p.prototype.get=h,p.prototype.has=m,p.prototype.set=y,v.prototype.clear=g,v.prototype.delete=b,v.prototype.get=w,v.prototype.has=E,v.prototype.set=O,T.prototype.clear=k,T.prototype.delete=C,T.prototype.get=x,T.prototype.has=P,T.prototype.set=_,S.prototype.add=S.prototype.push=N,S.prototype.has=j,M.prototype.clear=A,M.prototype.delete=R,M.prototype.get=D,M.prototype.has=I,M.prototype.set=L;var Mt=yt?function(e){return null==e?[]:(e=Object(e),r(yt(e),function(t){return dt.call(e,t)}))}:me,At=H;(bt&&At(new bt(new ArrayBuffer(1)))!=He||wt&&At(new wt)!=Ne||Et&&"[object Promise]"!=At(Et.resolve())||Ot&&At(new Ot)!=Ie||Tt&&"[object WeakMap]"!=At(new Tt))&&(At=function(e){var t=H(e),n=t==Ae?e.constructor:void 0,r=n?ie(n):"";if(r)switch(r){case Ct:return He;case xt:return Ne;case Pt:return"[object Promise]";case _t:return Ie;case St:return"[object WeakMap]"}return t});var Rt=B(function(){return arguments}())?B:function(e){return de(e)&&it.call(e,"callee")&&!dt.call(e,"callee")},Dt=Array.isArray,It=vt||ye,Lt=et?function(e){return function(t){return e(t)}}(et):K;n.exports=ce}).call(t,n(8),n(45)(e))},function(e,t,n){(function(n){var r,o,a,i={scope:{}};i.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},i.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof n&&null!=n?n:e},i.global=i.getGlobal(this),i.SYMBOL_PREFIX="jscomp_symbol_",i.initSymbol=function(){i.initSymbol=function(){},i.global.Symbol||(i.global.Symbol=i.Symbol)},i.symbolCounter_=0,i.Symbol=function(e){return i.SYMBOL_PREFIX+(e||"")+i.symbolCounter_++},i.initSymbolIterator=function(){i.initSymbol();var e=i.global.Symbol.iterator;e||(e=i.global.Symbol.iterator=i.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return i.arrayIterator(this)}}),i.initSymbolIterator=function(){}},i.arrayIterator=function(e){var t=0;return i.iteratorPrototype(function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}})},i.iteratorPrototype=function(e){return i.initSymbolIterator(),e={next:e},e[i.global.Symbol.iterator]=function(){return this},e},i.array=i.array||{},i.iteratorFromArray=function(e,t){i.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},i.polyfill=function(e,t,n,r){if(t){for(n=i.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}e=e[e.length-1],r=n[e],t=t(r),t!=r&&null!=t&&i.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},i.polyfill("Array.prototype.keys",function(e){return e||function(){return i.iteratorFromArray(this,function(e){return e})}},"es6-impl","es3");var s=this;!function(n,i){o=[],r=i,void 0!==(a="function"===typeof r?r.apply(t,o):r)&&(e.exports=a)}(0,function(){function e(e){if(!z.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function n(e){return e.reduce(function(e,t){return e.concat(z.arr(t)?n(t):t)},[])}function r(t){return z.arr(t)?t:(z.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some(function(e){return e===t})}function a(e){var t,n={};for(t in e)n[t]=e[t];return n}function i(e,t){var n,r=a(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=a(e);for(n in t)r[n]=z.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);e=parseInt(t[1],16);var n=parseInt(t[2],16),t=parseInt(t[3],16);return"rgba("+e+","+n+","+t+",1)"}function u(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100,n=n[4]||1;if(0==r)o=r=e=o;else{var a=.5>o?o*(1+r):o+r-o*r,i=2*o-a,o=t(i,a,e+1/3),r=t(i,a,e);e=t(i,a,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function p(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function f(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return z.fnc(e)?e(t.target,t.id,t.total):e}function h(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(e,t){return z.dom(e)&&o(L,t)?"transform":z.dom(e)&&(e.getAttribute(t)||z.svg(e)&&e[t])?"attribute":z.dom(e)&&"transform"!==t&&h(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=f(n),r=-1<n.indexOf("scale")?1:0+r;if(!(e=e.style.transform))return r;for(var o=[],a=[],i=[],s=/(\w+)\((.+?)\)/g;o=s.exec(e);)a.push(o[1]),i.push(o[2]);return e=t(i,function(e,t){return a[t]===n}),e.length?e[0]:r}function v(e,t){switch(m(e,t)){case"transform":return y(e,t);case"css":return h(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=p(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function E(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return w(e);case"polygon":var t=e.points;return w(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function O(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),a=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=z.pth(e)?e.totalLength:e,z.col(n))if(z.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=z.hex(n)?c(n):z.hsl(n)?u(n):void 0;else o=(o=p(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return n+="",{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:z.str(e)||t?n.split(r):[]}}function k(e){return e=e?n(z.arr(e)?e.map(r):r(e)):[],t(e,function(e,t,n){return n.indexOf(e)===t})}function C(e){var t=k(e);return t.map(function(e,n){return{target:e,id:n,total:t.length}})}function x(e,t){var n=a(t);if(z.arr(e)){var o=e.length;2!==o||z.obj(e[0])?z.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map(function(e,n){return n=n?0:t.delay,e=z.obj(e)&&!z.pth(e)?e:{value:e},z.und(e.delay)&&(e.delay=n),e}).map(function(e){return l(e,n)})}function P(e,t){var n,r={};for(n in e){var o=d(e[n],t);z.arr(o)&&(o=o.map(function(e){return d(e,t)}),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function _(e){return z.arr(e)?U.apply(this,e):F[e]}function S(e,t){var n;return e.tweens.map(function(r){r=P(r,t);var o=r.value,a=v(t.target,e.name),i=n?n.to.original:a,i=z.arr(o)?o[0]:i,s=g(z.arr(o)?o[1]:o,i),a=p(s)||p(i)||p(a);return r.from=T(i,a),r.to=T(s,a),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=_(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=z.pth(o),r.isColor=z.col(r.from.original),r.isColor&&(r.round=1),n=r})}function N(e,r){return t(n(e.map(function(e){return r.map(function(t){var n=m(e.target,t.name);if(n){var r=S(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t})})),function(e){return!z.und(e)})}function j(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map(function(t){return t[e]})):o?r.delay:n.offset+r.delay+r.duration}function M(e){var t,n=i(D,e),r=i(I,e),o=C(e.targets),a=[],s=l(n,r);for(t in e)s.hasOwnProperty(t)||"targets"===t||a.push({name:t,offset:s.offset,tweens:x(e[t],r)});return e=N(o,a),l(n,{children:[],animatables:o,animations:e,duration:j("duration",e,n,r),delay:j("delay",e,n,r)})}function A(e){function n(){return window.Promise&&new Promise(function(e){return p=e})}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,a=o.length;n<a;){var i=o[n],s=i.animatable,l=i.tweens,c=l.length-1,u=l[c];c&&(u=t(l,function(t){return e<t.end})[0]||u);for(var l=Math.min(Math.max(e-u.start-u.delay,0),u.duration)/u.duration,p=isNaN(l)?1:u.easing(l,u.elasticity),l=u.to.strings,f=u.round,c=[],m=void 0,m=u.to.numbers.length,y=0;y<m;y++){var v=void 0,v=u.to.numbers[y],g=u.from.numbers[y],v=u.isPath?O(u.value,p*v):g+p*(v-g);f&&(u.isColor&&2<y||(v=Math.round(v*f)/f)),c.push(v)}if(u=l.length)for(m=l[0],p=0;p<u;p++)f=l[p+1],y=c[p],isNaN(y)||(m=f?m+(y+f):m+(y+" "));else m=c[0];H[i.type](s.target,i.property,m,r,s.id),i.currentValue=m,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)R||(R=h(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[R]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function a(e){d[e]&&d[e](d)}function i(){d.remaining&&!0!==d.remaining&&d.remaining--}function s(e){var t=d.duration,s=d.offset,h=s+d.delay,m=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var w=0;w<b;w++)g[w].seek(v);else for(;b--;)g[b].seek(v)}(v>=h||!t)&&(d.began||(d.began=!0,a("begin")),a("run")),v>s&&v<t?o(v):(v<=s&&0!==m&&(o(0),y&&i()),(v>=t&&m!==t||!t)&&(o(t),y||i())),a("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(p(),f=n()))),u=0)}e=void 0===e?{}:e;var l,c,u=0,p=null,f=n(),d=M(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),s((u+l-c)*A.speed)},d.seek=function(e){s(r(e))},d.pause=function(){var e=B.indexOf(d);-1<e&&B.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,u=r(d.currentTime),B.push(d),V||W())},d.reverse=function(){d.reversed=!d.reversed,c=0,u=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=f,d.reset(),d.autoplay&&d.play(),d}var R,D={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},I={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},L="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),z={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return z.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||z.svg(e)},str:function(e){return"string"===typeof e},fnc:function(e){return"function"===typeof e},und:function(e){return"undefined"===typeof e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return z.hex(e)||z.rgb(e)||z.hsl(e)}},U=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var a=new Float32Array(11);if(t!==n||r!==o)for(var i=0;11>i;++i)a[i]=e(.1*i,t,r);return function(i){if(t===n&&r===o)return i;if(0===i)return 0;if(1===i)return 1;for(var s=0,l=1;10!==l&&a[l]<=i;++l)s+=.1;--l;var l=s+(i-a[l])/(a[l+1]-a[l])*.1,c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(s=0;4>s&&0!==(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++s)var u=e(l,t,r)-i,l=l-u/c;i=l}else if(0===c)i=l;else{var l=s,s=s+.1,p=0;do{u=l+(s-l)/2,c=e(u,t,r)-i,0<c?s=u:l=u}while(1e-7<Math.abs(c)&&10>++p);i=u}return e(i,n,o)}}}}(),F=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:U(.25,.25,.75,.75)},a={};for(t in r)a.type=t,r[a.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=z.fnc(t)?t:U.apply(s,t)}}(a)),a={type:a.type};return o}(),H={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},B=[],V=0,W=function(){function e(){V=requestAnimationFrame(t)}function t(t){var n=B.length;if(n){for(var r=0;r<n;)B[r]&&B[r].tick(t),r++;e()}else cancelAnimationFrame(V),V=0}return e}();return A.version="2.2.0",A.speed=1,A.running=B,A.remove=function(e){e=k(e);for(var t=B.length;t--;)for(var n=B[t],r=n.animations,a=r.length;a--;)o(e,r[a].animatable.target)&&(r.splice(a,1),r.length||n.pause())},A.getValue=v,A.path=function(t,n){var r=z.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:E(r)*(o/100)}}},A.setDashoffset=function(e){var t=E(e);return e.setAttribute("stroke-dasharray",t),t},A.bezier=U,A.easings=F,A.timeline=function(e){var t=A(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach(function(e){e.began=!0,e.completed=!0}),r(n).forEach(function(n){var r=l(n,i(I,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=z.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),r=A(r),r.began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)}),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},A.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},A})}).call(t,n(8))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){return 0===this.props.app.step||!0===this.props.contribution.complete?null:1===this.props.app.step?s.a.createElement("div",{id:"steps"},s.a.createElement("div",{className:"step active","data-desc":"Write your letter"},"\u270f\ufe0f"),s.a.createElement("div",{className:"step","data-desc":"Address your letter"},"\u2709\ufe0f"),s.a.createElement("div",{className:"step","data-desc":"Send"},"\ud83d\udcec")):2===this.props.app.step?s.a.createElement("div",{id:"steps"},s.a.createElement("div",{className:"step done","data-desc":"Write your letter"},s.a.createElement("i",{className:"fas fa-check"})),s.a.createElement("div",{className:"step active","data-desc":"Address your letter"},"\u2709\ufe0f"),s.a.createElement("div",{className:"step","data-desc":"Send"},"\ud83d\udcec")):3===this.props.app.step?s.a.createElement("div",{id:"steps"},s.a.createElement("div",{className:"step done","data-desc":"Write your letter"},s.a.createElement("i",{className:"fas fa-check"})),s.a.createElement("div",{className:"step done","data-desc":"Address your letter"},s.a.createElement("i",{className:"fas fa-check"})),s.a.createElement("div",{className:"step done","data-desc":"Send"},s.a.createElement("i",{className:"fas fa-check"}))):null}}]),t}(i.Component),p=function(e){return{app:e.app,contribution:e.contribution}};t.a=Object(l.b)(p,null)(u)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(28),u=n(13),p=n(175),f=n(178),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onAnimationComplete=n.onAnimationComplete.bind(n),n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.state={message:""},n}return a(t,e),d(t,[{key:"handleChange",value:function(e){this.setState({message:e.target.value})}},{key:"handleSubmit",value:function(){""!==this.state.message?this.props.submitLetter(this.state.message):this.props.submitLetter("default")}},{key:"onAnimationComplete",value:function(){this.props.letterCompleteAnimation()}},{key:"render",value:function(){return this.props.letterAnimationComplete?s.a.createElement(f.a,{submissionCount:32833,message:this.state.message,handleChange:this.handleChange,handleSubmit:this.handleSubmit}):s.a.createElement(p.a,{submissionCount:32833,onComplete:this.onAnimationComplete})}}]),t}(i.Component),m=function(e){return{letterAnimationComplete:e.app.letterAnimationComplete,submissionCount:e.app.submissionCount}},y=function(e){return{submitLetter:function(t){return e(Object(c.c)(t))},letterCompleteAnimation:function(){return e(Object(u.b)())}}};t.a=Object(l.b)(m,y)(h)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(15),i=n.n(a),s=n(176),l=n.n(s),c=n(7),u={svg:{fillOpacity:1,fill:"white",stroke:"white",strokeWidth:1,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}},p=function(e){var t=function(t){e.onComplete(t)};return o.a.createElement("div",null,o.a.createElement(c.l,null,o.a.createElement(c.h,{sm:"12",className:"mx-auto"},o.a.createElement("div",{className:"componentTitle"},o.a.createElement(i.a,{easing:"easeInOutQuart",delay:function(e,t){return 100*t},opacity:[0,1],duration:2e3},o.a.createElement("svg",{width:"100%",height:"3em",viewBox:"0 0 612 86.13"},o.a.createElement("g",{fill:"none",stroke:"#FFF",strokeMiterlimit:10},o.a.createElement("path",{style:u.svg,d:"M12.873 52.549c0-.588.128-1.412.384-2.473.255-1.061.6-1.885 1.035-2.473l3.029-4.294c.92-1.304 1.738-2.428 2.454-3.375a27.791 27.791 0 0 1 2.147-2.531c4.371-4.729 7.502-8.263 9.394-10.602 1.891-2.339 2.837-3.969 2.837-4.889 0-.614-.282-1.093-.844-1.438-.563-.345-1.304-.518-2.224-.518-1.892 0-4.27.671-7.132 2.013-2.863 1.342-6.206 3.087-10.027 5.234-3.822 2.147-5.949 3.221-6.384 3.221-.69 0-1.035-.499-1.035-1.496 0-.844.269-2.045.805-3.604.409-1.687.742-2.997.997-3.93a6.808 6.808 0 0 1 1.284-2.511c.601-.741 1.597-1.546 2.991-2.416 1.393-.869 3.534-2.058 6.423-3.566l.383 1.418c2.402-.971 4.671-1.712 6.806-2.224 2.134-.511 3.955-.767 5.464-.767 2.965 0 5.067.505 6.307 1.515 1.24 1.01 1.86 3.202 1.86 6.576 0 1.841-.269 3.375-.805 4.602-.537 1.227-1.585 2.939-3.144 5.138-3.554 5.164-6.225 8.742-8.014 10.736-5.189 5.931-7.784 9.394-7.784 10.391 0 .563.371.843 1.112.843.613 0 1.482-.434 2.607-1.304 1.125-.869 2.479-2.122 4.064-3.757s3.783-3.975 6.595-7.017c2.991-3.221 5.515-6.064 7.573-8.531 2.058-2.467 3.751-4.576 5.081-6.327 1.329-1.75 2.032-2.69 2.109-2.818 1.38-1.687 2.805-3.073 4.275-4.16 1.47-1.086 2.409-1.629 2.818-1.629.307 0 .665.281 1.074.843.409.563.76 1.227 1.055 1.994.293.767.441 1.355.441 1.764 0 .128-.307.748-.92 1.859a103.46 103.46 0 0 1-1.994 3.451c-.716 1.188-1.866 3.01-3.451 5.464-3.477 5.394-6.135 9.925-7.975 13.593-1.841 3.668-2.761 6.077-2.761 7.228 0 .409.146.786.441 1.131.293.345.594.518.901.518.409 0 1.15-.326 2.224-.978 1.073-.652 2.262-1.591 3.566-2.818a51.336 51.336 0 0 0 4.678-5.1 67.57 67.57 0 0 0 4.179-5.905c1.38-2.172 2.607-4.23 3.681-6.173a215.663 215.663 0 0 0 3.259-6.135l-.652-1.956c-.103-.307-.153-.703-.153-1.188 0-.383.753-1.629 2.262-3.738 1.508-2.109 2.505-3.164 2.991-3.164.537 0 .99.39 1.361 1.169.37.78.556 1.566.556 2.358 0 .869-.39 2.601-1.169 5.195-.78 2.595-1.994 5.732-3.643 9.413-1.648 3.681-3.688 7.426-6.116 11.235-2.096 3.323-4.339 6.167-6.729 8.531-2.391 2.365-4.544 4.122-6.461 5.272-1.917 1.15-3.336 1.726-4.256 1.726-1.048 0-2.147-.46-3.297-1.38-.946-.818-1.617-1.553-2.013-2.205a5.944 5.944 0 0 1-.786-2.128c-.128-.767-.192-1.662-.192-2.684 0-2.172.6-4.716 1.802-7.63 1.201-2.914 2.991-6.543 5.368-10.89-7.438 9.049-13.196 15.631-17.273 19.747-4.078 4.116-7.062 6.173-8.953 6.173-1.253 0-2.314-.748-3.183-2.243-.869-1.495-1.303-3.29-1.303-5.386zM65.518 49.635v-2.493c1.38-1.635 2.428-3.029 3.144-4.179-.818-.281-1.413-.626-1.783-1.035-.371-.409-.556-1.022-.556-1.841 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.868 22.868 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.202.741 1.802 2.224 1.802 1.559 0 4.269-1.584 8.129-4.754v2.569c-2.122 2.224-3.873 3.975-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.048-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.476-.716-.984-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.758.562-1.405 1.386-2.933 2.473-4.582a56.138 56.138 0 0 1 3.662-4.927c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.885 6.043-6.901 8.625z"}),o.a.createElement("path",{style:u.svg,d:"M107.159 46.682v2.799c-2.479 3.196-4.793 5.605-6.94 7.228-2.147 1.624-3.975 2.435-5.483 2.435-2.097 0-3.656-1.099-4.678-3.297-1.022-2.198-1.534-4.601-1.534-7.208 0-.997.102-1.949.307-2.856s.447-1.655.729-2.243c.281-.588.806-1.508 1.572-2.761 3.629-5.649 6.953-8.474 9.969-8.474 1.559 0 2.339.601 2.339 1.802 0 .818-.505 2.096-1.515 3.834-1.01 1.739-1.911 2.978-2.703 3.719-2.224 2.147-3.675 3.643-4.352 4.486a4.469 4.469 0 0 0-1.016 2.875c0 .92.345 1.687 1.036 2.301.69.613 1.584.92 2.684.92 1.201 0 2.524-.441 3.968-1.323 1.443-.882 3.316-2.294 5.617-4.237zm-2.608-17.14c-.639 0-1.246-.242-1.821-.729-.575-.485-.862-1.099-.862-1.84 0-1.125.537-2.377 1.61-3.758 1.073-1.38 2.186-2.07 3.336-2.07.767 0 1.405.237 1.917.709.511.473.767 1.157.767 2.051 0 1.099-.524 2.314-1.572 3.643-1.049 1.33-2.173 1.994-3.375 1.994z"}),o.a.createElement("path",{style:u.svg,d:"M120.272 26.782h1.649c1.354-2.428 2.582-4.147 3.681-5.157 1.099-1.01 2.352-1.515 3.757-1.515s2.109.32 2.109.958c0 .307-.55 1.138-1.648 2.492-1.1 1.355-1.931 2.492-2.493 3.413.869.103 1.643.192 2.32.269s1.208.141 1.591.191c-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.317-.096-1.802-.134a378.71 378.71 0 0 0-3.297-.249c-1.38 2.224-2.538 4.211-3.47 5.962-.934 1.751-1.649 3.355-2.147 4.813-.498 1.457-.748 2.837-.748 4.141 0 1.764.703 2.646 2.109 2.646.971 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.001 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.342-.704-.895-1.055-2.044-1.055-3.451 0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.905-.358.307-.697.607-1.016.901-.32.294-.614.563-.882.805-.269.243-.556.499-.863.767-.307.269-.614.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.932 30.932 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.269.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.843-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.086-.242 2.614-.364 4.582-.364z"}),o.a.createElement("path",{style:u.svg,d:"M132.581 48.063v.958c0 1.509.37 2.684 1.112 3.528.741.843 1.712 1.265 2.914 1.265 1.252 0 2.55-.293 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.971 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995s-5.1 2.78-7.707 2.78c-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.304 1.252-2.186 3.297-4.492 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.629-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.054 1.375 1.054 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.572-5.503 3.086-9.107 4.544zm.383-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.329 2.843-2.601 3.624-3.815.779-1.213 1.169-2.102 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882-1.035.588-2.083 1.355-3.144 2.3a16.916 16.916 0 0 0-2.856 3.336 10.755 10.755 0 0 0-1.65 4.18zM165.786 32.073l.69-4.486c.23-1.534.64-2.786 1.227-3.758.588-.971 1.617-2.038 3.087-3.202 1.47-1.163 3.751-2.818 6.844-4.965 7.438-5.189 13.229-7.784 17.37-7.784 1.252 0 2.141.256 2.665.767.524.512.786 1.406.786 2.684 0 .895-.339 2.122-1.016 3.681-.678 1.56-1.917 4.026-3.719 7.4a670.415 670.415 0 0 0-4.774 9.087 151.871 151.871 0 0 1-3.834 6.998c-1.432 2.467-2.391 4.161-2.876 5.081-.486.92-.729 1.61-.729 2.071 0 .512.166.953.499 1.323.332.371.741.556 1.227.556.664 0 1.412-.358 2.243-1.074.83-.715 2.46-2.262 4.889-4.64 1.175-1.175 2.435-2.569 3.777-4.179a299.348 299.348 0 0 0 5.003-6.212c1.994-2.531 3.834-4.882 5.521-7.055a687.98 687.98 0 0 1 2.837-3.643c.844-1.074 1.565-1.898 2.167-2.473.601-.575 1.08-.863 1.438-.863.307 0 .805.384 1.495 1.15l.92 1.189c.69.972 1.035 1.674 1.035 2.109 0 .511-.953 2.384-2.856 5.617a496.834 496.834 0 0 0-4.851 8.397c-1.329 2.365-3.048 5.777-5.157 10.238-2.108 4.461-4.135 9.413-6.077 14.858 5.189-3.911 8.742-6.524 10.659-7.841 1.917-1.316 3.311-1.975 4.18-1.975.588 0 .882.243.882.729 0 .537-.282 1.234-.844 2.09-.563.856-1.316 1.802-2.262 2.837s-2.371 2.531-4.275 4.486a1280.23 1280.23 0 0 1-6.231 6.346c-1.38 1.405-2.722 3.042-4.026 4.908l-3.029 4.333c-.716 1.022-1.368 1.61-1.956 1.764-.869.255-1.662.063-2.377-.575-.716-.639-1.073-1.649-1.073-3.029 0-.972.492-2.978 1.476-6.02.984-3.042 2.473-6.825 4.467-11.35 1.176-2.709 2.377-5.272 3.604-7.688s2.639-5.074 4.237-7.976c1.597-2.901 3.164-5.655 4.697-8.263s2.837-4.832 3.911-6.672a575.242 575.242 0 0 1-7.611 9.758c-2.518 3.158-5.33 6.48-8.436 9.969s-6.244 6.755-9.413 9.797c-1.38 1.304-2.372 2.191-2.972 2.665-.601.473-1.387.709-2.358.709-.613 0-1.208-.211-1.783-.632a5.155 5.155 0 0 1-1.438-1.649c-.383-.677-.575-1.335-.575-1.975 0-1.074.159-2.019.479-2.837.319-.818.875-2.045 1.668-3.681 3.476-7.029 6.006-11.848 7.592-14.455 5.675-9.1 8.512-14.2 8.512-15.299a1.08 1.08 0 0 0-.383-.863c-.256-.217-.575-.326-.959-.326-.716 0-1.572.313-2.569.939-.997.626-2.25 1.553-3.757 2.78a602.479 602.479 0 0 1-5.502 4.41 93.455 93.455 0 0 1-6.806 4.908 95.275 95.275 0 0 0-3.202 2.186c-1.188.844-1.872 1.266-2.051 1.266-.357 0-.537-.179-.537-.537 0-.332.076-1.035.23-2.109z"}),o.a.createElement("path",{style:u.svg,d:"M234.458 46.605v2.569c-1.687 1.534-3.042 2.557-4.064 3.067-1.022.512-2.492.716-4.409.614-3.323 3.937-6.25 5.905-8.781 5.905-1.432 0-2.735-.473-3.911-1.418s-2.115-2.237-2.818-3.873c-.704-1.635-1.055-3.463-1.055-5.483 0-1.636.543-3.451 1.63-5.445 1.086-1.994 2.492-3.854 4.218-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.147.186 2.837.556.69.371 1.035.888 1.035 1.553 0 .512-.294 1.1-.882 1.764.971.205 1.636.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.288 2.774-.863 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575a2.77 2.77 0 0 0 1.285-.326 8.603 8.603 0 0 0 1.131-.69c.331-.244 1.06-.787 2.185-1.631zm-7.898-10.084c-2.122 1.279-3.937 2.435-5.445 3.47-1.509 1.035-2.787 2.083-3.834 3.144-1.048 1.061-1.751 2.128-2.109 3.202-.639 2.863-.958 4.41-.958 4.64 0 1.687 1.175 2.531 3.528 2.531 1.099 0 2.939-.945 5.521-2.837-.435-1.201-.652-2.352-.652-3.451 0-1.61.332-3.252.997-4.927.663-1.675 1.648-3.599 2.952-5.772z"}),o.a.createElement("path",{style:u.svg,d:"M252.441 44.075c-3.707 4.908-6.525 8.397-8.455 10.468s-3.508 3.106-4.735 3.106c-.972 0-1.866-.403-2.684-1.208-.818-.805-1.451-1.891-1.898-3.259-.447-1.367-.671-2.831-.671-4.39 0-1.022.096-1.942.288-2.761.192-.818.556-1.719 1.093-2.703.537-.984 1.246-2.051 2.128-3.202a78.419 78.419 0 0 1 3.24-3.911l1.937-2.262c.523-.613 1.035-1.029 1.534-1.246.498-.217 1.31-.326 2.435-.326.818 0 1.597.109 2.339.326.741.217 1.112.441 1.112.671 0 .46-.377 1.291-1.131 2.492-.754 1.202-1.969 2.665-3.643 4.391-1.675 1.725-3.611 3.419-5.809 5.081-.486 1.508-.729 2.659-.729 3.451 0 1.099.422 1.649 1.265 1.649.307 0 .818-.262 1.534-.786.715-.524 1.923-1.534 3.623-3.029 1.7-1.495 3.227-2.818 4.582-3.968.997-.869 2.153-2.167 3.47-3.892 1.316-1.726 2.383-3.022 3.202-3.892 1.892-1.994 3.183-3.291 3.873-3.892.69-.6 1.354-.901 1.994-.901.613 0 1.028.191 1.246.575.217.383.326 1.164.326 2.339 0 .537-.051.972-.153 1.304-.103.333-.313.761-.633 1.284-.32.524-.965 1.49-1.936 2.895-.972 1.406-2.122 3.067-3.451 4.985a19.686 19.686 0 0 0-1.878 3.355c-.537 1.214-.806 2.128-.806 2.742 0 1.329.524 1.994 1.572 1.994.869 0 1.879-.358 3.029-1.074 1.15-.715 2.914-2.006 5.291-3.873v2.569c-2.991 2.761-5.202 4.768-6.633 6.02-1.432 1.253-2.671 2.199-3.719 2.837-1.048.639-2.045.958-2.991.958-2.147 0-3.221-1.278-3.221-3.834 0-.971.319-2.281.958-3.93.638-1.651 1.673-4.034 3.105-7.153z"}),o.a.createElement("path",{style:u.svg,d:"M264.213 49.635v-2.493c1.38-1.635 2.428-3.029 3.144-4.179-.818-.281-1.413-.626-1.783-1.035-.371-.409-.556-1.022-.556-1.841 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.868 22.868 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.202.741 1.802 2.224 1.802 1.559 0 4.269-1.584 8.129-4.754v2.569c-2.122 2.224-3.873 3.975-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.048-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.476-.716-.984-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.758.562-1.405 1.386-2.933 2.473-4.582a56.138 56.138 0 0 1 3.662-4.927c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.885 6.043-6.901 8.625zM350.178 29.696l1.189 1.188c-2.096 2.633-3.93 4.55-5.502 5.751-1.572 1.202-2.729 1.802-3.471 1.802-.613 0-.92-.549-.92-1.649 0-2.735 1.803-6.953 5.406-12.653 3.041-4.933 4.563-7.681 4.563-8.244 0-.485-.205-.729-.613-.729-.715 0-2.518 1.61-5.406 4.831s-6.455 7.771-10.697 13.65c-4.807 6.544-8.104 11.222-9.893 14.034 3.398.333 6.191.761 8.377 1.284 2.186.524 5.355 1.375 9.51 2.55 4.154 1.176 7.215 1.866 9.184 2.071-2.404 2.735-4.059 4.595-4.967 5.579-.906.983-1.604 1.578-2.088 1.783-.768.332-1.906.351-3.414.058-1.508-.294-3.898-.863-7.17-1.707a165.043 165.043 0 0 0-9.184-2.109c-2.85-.562-5.451-.843-7.803-.843-1.328 0-2.473.153-3.432.46-.957.307-2.287.812-3.986 1.515-1.701.703-2.896 1.054-3.585 1.054-.997 0-1.496-.409-1.496-1.227 0-.46.167-.984.499-1.572a291.25 291.25 0 0 1 2.454-3.873c.793-1.227 1.635-2.186 2.531-2.876.895-.69 2.186-1.227 3.873-1.61 1.686-.383 3.91-.588 6.67-.613 4.168-6.39 8.053-12.059 11.658-17.005 3.604-4.946 6.881-9.119 9.834-12.519 2.953-3.399 5.541-5.975 7.764-7.726 2.225-1.751 3.988-2.626 5.293-2.626.92 0 1.635.255 2.146.767.512.512.768 1.227.768 2.147 0 3.068-2.698 9.42-8.092 19.057zM380.893 46.605v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.716-4.41.614-3.324 3.937-6.25 5.905-8.781 5.905-1.432 0-2.734-.473-3.91-1.418s-2.115-2.237-2.818-3.873c-.703-1.635-1.055-3.463-1.055-5.483 0-1.636.543-3.451 1.629-5.445 1.088-1.994 2.492-3.854 4.219-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.967-1.061 3.795-1.591 5.482-1.591 1.201 0 2.146.186 2.838.556.689.371 1.035.888 1.035 1.553 0 .512-.295 1.1-.883 1.764.973.205 1.637.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.287 2.774-.863 4.64a23.15 23.15 0 0 1-2.357 5.253l.689.69h.576c.434 0 .861-.108 1.283-.326a8.631 8.631 0 0 0 1.133-.69c.329-.244 1.06-.787 2.185-1.631zm-7.901-10.084c-2.121 1.279-3.936 2.435-5.443 3.47-1.51 1.035-2.787 2.083-3.834 3.144-1.049 1.061-1.752 2.128-2.109 3.202-.639 2.863-.959 4.41-.959 4.64 0 1.687 1.176 2.531 3.527 2.531 1.1 0 2.939-.945 5.521-2.837-.436-1.201-.652-2.352-.652-3.451 0-1.61.332-3.252.998-4.927.664-1.675 1.648-3.599 2.951-5.772z"}),o.a.createElement("path",{style:u.svg,d:"M385.838 46.759l-.691 3.221c-.102.409-.152.87-.152 1.38 0 1.38.574 2.071 1.725 2.071 1.1 0 3.771-2.147 8.014-6.442.025-1.661.646-3.579 1.859-5.751 1.215-2.172 2.557-4.077 4.027-5.713 1.469-1.636 2.563-2.454 3.277-2.454 1.125 0 1.688.742 1.688 2.224 0 .896-.217 1.988-.652 3.279-.434 1.291-1.072 2.684-1.916 4.179s-1.879 3.036-3.107 4.62c.639 1.15 1.291 1.726 1.957 1.726.561 0 1.182-.198 1.859-.594.676-.396 1.527-1.003 2.549-1.821v2.569c-1.432 1.125-2.563 1.892-3.393 2.301-.832.409-1.898.613-3.201.613-.512 0-1.432-.345-2.762-1.035-2.607 2.761-4.729 4.825-6.365 6.192-1.635 1.368-2.965 2.051-3.986 2.051-1.764 0-3.266-1.054-4.506-3.163s-1.859-4.429-1.859-6.959c0-3.399 1.916-7.477 5.752-12.231 1.148-1.431 2.076-2.409 2.779-2.933s1.502-.786 2.396-.786c.766 0 1.494.141 2.186.422.689.282 1.035.613 1.035.997 0 1.278-.857 3.15-2.568 5.617-1.715 2.465-3.697 4.605-5.945 6.42z"}),o.a.createElement("path",{style:u.svg,d:"M412.332 48.063v.958c0 1.509.371 2.684 1.113 3.528.74.843 1.711 1.265 2.914 1.265 1.252 0 2.549-.293 3.891-.882 1.344-.588 2.678-1.367 4.008-2.339 1.328-.971 2.953-2.275 4.869-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.529 1.853-5.1 2.78-7.707 2.78-2.275 0-4.076-.882-5.406-2.646s-1.994-4.18-1.994-7.247c0-2.684.627-5.119 1.879-7.304s3.299-4.492 6.135-6.921c1.943-1.662 3.873-2.914 5.791-3.758 1.916-.843 3.629-1.265 5.137-1.265 1.201 0 2.154.275 2.857.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.602 3.215-1.803 4.812-1.201 1.598-3.035 3.183-5.502 4.755-2.467 1.572-5.502 3.086-9.108 4.544zm.385-2.493c2.301-.895 4.268-2.006 5.904-3.336 1.635-1.329 2.844-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.268-.882-.805-.882-.461 0-1.209.294-2.244.882-1.035.588-2.084 1.355-3.145 2.3a16.911 16.911 0 0 0-2.855 3.336 10.752 10.752 0 0 0-1.648 4.18zM491.779 29.696l1.189 1.188c-2.096 2.633-3.93 4.55-5.502 5.751-1.572 1.202-2.729 1.802-3.471 1.802-.613 0-.92-.549-.92-1.649 0-2.735 1.803-6.953 5.406-12.653 3.041-4.933 4.563-7.681 4.563-8.244 0-.485-.205-.729-.613-.729-.715 0-2.518 1.61-5.406 4.831s-6.455 7.771-10.697 13.65c-4.807 6.544-8.104 11.222-9.893 14.034 3.398.333 6.191.761 8.377 1.284 2.186.524 5.355 1.375 9.51 2.55 4.154 1.176 7.215 1.866 9.184 2.071-2.404 2.735-4.059 4.595-4.967 5.579-.906.983-1.604 1.578-2.088 1.783-.768.332-1.906.351-3.414.058-1.508-.294-3.898-.863-7.17-1.707a165.043 165.043 0 0 0-9.184-2.109c-2.85-.562-5.451-.843-7.803-.843-1.328 0-2.473.153-3.432.46-.957.307-2.287.812-3.986 1.515-1.701.703-2.896 1.054-3.586 1.054-.996 0-1.496-.409-1.496-1.227 0-.46.168-.984.5-1.572a302.106 302.106 0 0 1 2.453-3.873c.793-1.227 1.635-2.186 2.531-2.876.895-.69 2.186-1.227 3.873-1.61 1.686-.383 3.91-.588 6.67-.613 4.168-6.39 8.053-12.059 11.658-17.005 3.604-4.946 6.881-9.119 9.834-12.519 2.953-3.399 5.541-5.975 7.764-7.726 2.225-1.751 3.988-2.626 5.293-2.626.92 0 1.635.255 2.146.767.512.512.768 1.227.768 2.147.001 3.068-2.696 9.42-8.091 19.057zM503.973 48.063v.958c0 1.509.371 2.684 1.113 3.528.74.843 1.711 1.265 2.914 1.265 1.252 0 2.549-.293 3.891-.882 1.344-.588 2.678-1.367 4.008-2.339 1.328-.971 2.953-2.275 4.869-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.529 1.853-5.1 2.78-7.707 2.78-2.275 0-4.076-.882-5.406-2.646s-1.994-4.18-1.994-7.247c0-2.684.627-5.119 1.879-7.304s3.299-4.492 6.135-6.921c1.943-1.662 3.873-2.914 5.791-3.758 1.916-.843 3.629-1.265 5.137-1.265 1.201 0 2.154.275 2.857.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.602 3.215-1.803 4.812-1.201 1.598-3.035 3.183-5.502 4.755-2.468 1.572-5.503 3.086-9.108 4.544zm.384-2.493c2.301-.895 4.268-2.006 5.904-3.336 1.635-1.329 2.844-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.268-.882-.805-.882-.461 0-1.209.294-2.244.882-1.035.588-2.084 1.355-3.145 2.3a16.911 16.911 0 0 0-2.855 3.336 10.767 10.767 0 0 0-1.648 4.18z"}),o.a.createElement("path",{style:u.svg,d:"M534.227 26.782h1.648c1.354-2.428 2.582-4.147 3.68-5.157 1.1-1.01 2.352-1.515 3.758-1.515s2.109.32 2.109.958c0 .307-.551 1.138-1.648 2.492-1.1 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269.676.077 1.207.141 1.59.191-1.457 2.71-3.285 5.483-5.482 8.321-.717-.051-1.316-.096-1.803-.134a351.075 351.075 0 0 0-3.297-.249c-1.381 2.224-2.537 4.211-3.471 5.962-.934 1.751-1.648 3.355-2.146 4.813s-.748 2.837-.748 4.141c0 1.764.703 2.646 2.109 2.646.971 0 2.242-.518 3.814-1.553 1.572-1.036 3.674-2.627 6.309-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.078-.448-2.781-1.342s-1.055-2.044-1.055-3.451c0-.945.199-2.071.596-3.375.395-1.304 1.105-3.271 2.127-5.905-.357.307-.697.607-1.016.901a100.157 100.157 0 0 1-1.744 1.572c-.307.269-.613.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.738-11.848a30.894 30.894 0 0 0-2.262-.077c-1.51 0-2.633.103-3.375.307-.307.077-.594.16-.863.249-.268.09-.453.134-.555.134-.104 0-.154-.077-.154-.23 0-.844.523-2.109 1.572-3.796.844-1.431 1.643-2.492 2.396-3.182.754-.69 1.674-1.156 2.762-1.4 1.086-.242 2.614-.364 4.583-.364z"}),o.a.createElement("path",{style:u.svg,d:"M553.857 26.782h1.648c1.355-2.428 2.582-4.147 3.682-5.157 1.098-1.01 2.352-1.515 3.758-1.515 1.404 0 2.109.32 2.109.958 0 .307-.551 1.138-1.65 2.492-1.098 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269s1.207.141 1.592.191c-1.457 2.71-3.285 5.483-5.484 8.321-.715-.051-1.316-.096-1.801-.134a379.343 379.343 0 0 0-3.299-.249c-1.379 2.224-2.537 4.211-3.469 5.962-.934 1.751-1.648 3.355-2.148 4.813-.498 1.457-.746 2.837-.746 4.141 0 1.764.701 2.646 2.107 2.646.973 0 2.244-.518 3.816-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.076-.448-2.779-1.342s-1.055-2.044-1.055-3.451c0-.945.197-2.071.594-3.375s1.105-3.271 2.129-5.905c-.359.307-.697.607-1.018.901a84.916 84.916 0 0 1-1.744 1.572c-.307.269-.613.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.74-11.848a30.913 30.913 0 0 0-2.263-.077c-1.508 0-2.633.103-3.373.307-.307.077-.596.16-.863.249-.268.09-.455.134-.557.134s-.152-.077-.152-.23c0-.844.523-2.109 1.572-3.796.844-1.431 1.641-2.492 2.396-3.182.754-.69 1.674-1.156 2.76-1.4 1.086-.242 2.614-.364 4.582-.364z"}),o.a.createElement("path",{style:u.svg,d:"M566.166 48.063v.958c0 1.509.371 2.684 1.111 3.528.742.843 1.713 1.265 2.914 1.265 1.252 0 2.551-.293 3.893-.882 1.342-.588 2.678-1.367 4.006-2.339 1.33-.971 2.953-2.275 4.871-3.911v2.339c-2.889 3.477-5.6 6.142-8.129 7.995-2.531 1.853-5.1 2.78-7.707 2.78-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.625-5.119 1.879-7.304 1.252-2.186 3.297-4.492 6.135-6.921 1.941-1.662 3.873-2.914 5.789-3.758 1.918-.843 3.631-1.265 5.139-1.265 1.201 0 2.152.275 2.855.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.6 3.215-1.801 4.812-1.203 1.598-3.037 3.183-5.504 4.755-2.467 1.572-5.502 3.086-9.106 4.544zm.383-2.493c2.301-.895 4.27-2.006 5.906-3.336 1.635-1.329 2.842-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.27-.882-.807-.882-.459 0-1.207.294-2.242.882-1.035.588-2.084 1.355-3.145 2.3a16.92 16.92 0 0 0-2.857 3.336 10.814 10.814 0 0 0-1.648 4.18z"}),o.a.createElement("path",{style:u.svg,d:"M582.578 49.635v-2.493c1.379-1.635 2.428-3.029 3.143-4.179-.818-.281-1.412-.626-1.783-1.035-.369-.409-.555-1.022-.555-1.841 0-.92.383-2.083 1.15-3.489a19.927 19.927 0 0 1 2.838-3.949c1.123-1.227 2.146-2.019 3.066-2.377a2.32 2.32 0 0 1 1.035-.268c.512 0 .768.243.768.729 0 .435-.396 1.317-1.189 2.646 5.266-.818 8.59-1.227 9.969-1.227.537 0 .908.052 1.113.153.434.23.791.767 1.072 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.473.627-1.283 1.541-2.434 2.742a22.91 22.91 0 0 0-3.414 4.754c-.92 1.713-1.379 3.004-1.379 3.873 0 1.202.74 1.802 2.223 1.802 1.559 0 4.27-1.584 8.129-4.754v2.569c-2.121 2.224-3.873 3.975-5.252 5.253-1.381 1.279-2.66 2.295-3.836 3.048-1.176.754-2.223 1.131-3.143 1.131-1.074 0-1.969-.492-2.686-1.476-.715-.984-1.072-2.409-1.072-4.275 0-1.099.281-2.352.844-3.758.561-1.405 1.385-2.933 2.473-4.582a56.34 56.34 0 0 1 3.662-4.927 92.22 92.22 0 0 1-2.416.479c-.895.167-1.84.339-2.838.518-.996.179-1.764.32-2.301.422-1.583 3.167-3.884 6.043-6.9 8.625z"}))))),o.a.createElement(i.a,{opacity:[0,1],translateY:"3em",duration:1e3,elasticity:400},o.a.createElement("div",{className:"letter letter-animation"},o.a.createElement("address",null,o.a.createElement("strong",null,"Prime Minister Justin Trudeau"),o.a.createElement("br",null),"House of Commons",o.a.createElement("br",null),"Ottawa, Ontario",o.a.createElement("br",null),"K1A 0A6",o.a.createElement("br",null),o.a.createElement("abbr",{title:"Phone"},"P:")," (613) 995-0253"),o.a.createElement("h4",{className:"letter-salutation"},"My Dearest Justin,"),o.a.createElement(c.j,null,o.a.createElement(c.k,null,o.a.createElement("textarea",{autoFocus:!0,className:"form-control",name:"valentineLetter",id:"valentine",rows:"5",placeholder:"America has a ginormous crush on you. Please, don't break our hearts by building the dirtiest Tar Sands pipeline on Earth. When your piercing blue eyes raised taxes on the rich, we swooned. When those rippling abs built a gender-balanced cabinet, we sighed. When your curly locks fought to take in thousands of Syrian refugees, we purred like kittens. You're a burning hunk of pro science, pro gay, pro universal healthcare, and pro legal weed yumminess. Respect indigenous sovereignty and don't be a Trump. Canadians are counting on you. Everyone on Earth is counting on you."})),o.a.createElement("div",{className:"letter-signature"},o.a.createElement("p",null,"Love,",o.a.createElement("br",null),"America")),o.a.createElement("button",{disabled:!0,tabIndex:"-1",className:"btn btn-danger btn-block"},"\ud83d\udc8c Send")))))),o.a.createElement(c.l,null,o.a.createElement(c.h,null,o.a.createElement(i.a,{opacity:[0,1],translateY:"2em",elasticity:400,complete:function(e){return t(e)}},o.a.createElement("div",{className:"animated-message-count message-count"},o.a.createElement("p",null,!(0===e.submissionCount)&&o.a.createElement("span",null,o.a.createElement(l.a,{start:0,end:e.submissionCount})," letters sent")))))))};t.a=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.startAnimation=t.formatNumber=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=r(l),u=n(177),p=r(u),f=t.formatNumber=function(e,t){var n=e<0,r=""+Math.abs(e).toFixed(t.decimals),o=r.split("."),a=o[0],i=o.length>1?""+t.decimal+o[1]:"",s=/(\d+)(\d{3})/;if(t.separator)for(;s.test(a);)a=a.replace(s,"$1"+t.separator+"$2");return(n?"-":"")+(t.prefix||"")+a+i+(t.suffix||"")},d=t.startAnimation=function(e){if(!e||!e.spanElement)throw new Error("You need to pass the CountUp component as an argument!\neg. this.myCountUp.startAnimation(this.myCountUp);");var t=e.props,n=t.decimal,r=t.decimals,o=t.duration,a=t.easingFn,i=t.end,s=t.formattingFn,l=t.onComplete,c=t.onStart,u=t.prefix,f=t.separator,d=t.start,h=t.suffix,m=t.useEasing,y=new p.default(e.spanElement,d,i,r,o,{decimal:n,easingFn:a,formattingFn:s,separator:f,prefix:u,suffix:h,useEasing:m,useGrouping:!!f});"function"===typeof c&&c(),y.start(l)},h=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.spanElement=null,r.refSpan=function(e){r.spanElement=e},i=n,a(r,i)}return i(t,e),s(t,[{key:"componentDidMount",value:function(){d(this)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props.duration!==e.duration||this.props.end!==e.end||this.props.start!==e.start;return e.redraw||t}},{key:"componentDidUpdate",value:function(){d(this)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.start,r=e.decimal,o=e.decimals,a=e.separator,i=e.prefix,s=e.suffix,l=e.style;return c.default.createElement("span",{className:t,ref:this.refSpan,style:l},f(n,{decimal:r,decimals:o,separator:a,prefix:i,suffix:s}))}}]),t}(c.default.Component);h.defaultProps={className:void 0,decimal:".",decimals:0,duration:3,easingFn:null,end:100,formattingFn:null,onComplete:void 0,onStart:void 0,prefix:"",separator:"",start:0,suffix:"",redraw:!1,style:void 0,useEasing:!0},t.default=h},function(e,t,n){var r,o;!function(a,i){r=i,void 0!==(o="function"===typeof r?r.call(t,n,t,e):r)&&(e.exports=o)}(0,function(e,t,n){return function(e,t,n,r,o,a){function i(e){var t,n,r,o,a,i,s=e<0;if(e=Math.abs(e).toFixed(c.decimals),e+="",t=e.split("."),n=t[0],r=t.length>1?c.options.decimal+t[1]:"",c.options.useGrouping){for(o="",a=0,i=n.length;a<i;++a)0!==a&&a%3===0&&(o=c.options.separator+o),o=n[i-a-1]+o;n=o}return c.options.numerals.length&&(n=n.replace(/[0-9]/g,function(e){return c.options.numerals[+e]}),r=r.replace(/[0-9]/g,function(e){return c.options.numerals[+e]})),(s?"-":"")+c.options.prefix+n+r+c.options.suffix}function s(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t}function l(e){return"number"==typeof e&&!isNaN(e)}var c=this;if(c.version=function(){return"1.9.3"},c.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:s,formattingFn:i,prefix:"",suffix:"",numerals:[]},a&&"object"==typeof a)for(var u in c.options)a.hasOwnProperty(u)&&null!==a[u]&&(c.options[u]=a[u]);""===c.options.separator?c.options.useGrouping=!1:c.options.separator=""+c.options.separator;for(var p=0,f=["webkit","moz","ms","o"],d=0;d<f.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[f[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[f[d]+"CancelAnimationFrame"]||window[f[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-p)),o=window.setTimeout(function(){e(n+r)},r);return p=n+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),c.initialize=function(){return!!c.initialized||(c.error="",c.d="string"==typeof e?document.getElementById(e):e,c.d?(c.startVal=Number(t),c.endVal=Number(n),l(c.startVal)&&l(c.endVal)?(c.decimals=Math.max(0,r||0),c.dec=Math.pow(10,c.decimals),c.duration=1e3*Number(o)||2e3,c.countDown=c.startVal>c.endVal,c.frameVal=c.startVal,c.initialized=!0,!0):(c.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",!1)):(c.error="[CountUp] target is null or undefined",!1))},c.printValue=function(e){var t=c.options.formattingFn(e);"INPUT"===c.d.tagName?this.d.value=t:"text"===c.d.tagName||"tspan"===c.d.tagName?this.d.textContent=t:this.d.innerHTML=t},c.count=function(e){c.startTime||(c.startTime=e),c.timestamp=e;var t=e-c.startTime;c.remaining=c.duration-t,c.options.useEasing?c.countDown?c.frameVal=c.startVal-c.options.easingFn(t,0,c.startVal-c.endVal,c.duration):c.frameVal=c.options.easingFn(t,c.startVal,c.endVal-c.startVal,c.duration):c.countDown?c.frameVal=c.startVal-(c.startVal-c.endVal)*(t/c.duration):c.frameVal=c.startVal+(c.endVal-c.startVal)*(t/c.duration),c.countDown?c.frameVal=c.frameVal<c.endVal?c.endVal:c.frameVal:c.frameVal=c.frameVal>c.endVal?c.endVal:c.frameVal,c.frameVal=Math.round(c.frameVal*c.dec)/c.dec,c.printValue(c.frameVal),t<c.duration?c.rAF=requestAnimationFrame(c.count):c.callback&&c.callback()},c.start=function(e){c.initialize()&&(c.callback=e,c.rAF=requestAnimationFrame(c.count))},c.pauseResume=function(){c.paused?(c.paused=!1,delete c.startTime,c.duration=c.remaining,c.startVal=c.frameVal,requestAnimationFrame(c.count)):(c.paused=!0,cancelAnimationFrame(c.rAF))},c.reset=function(){c.paused=!1,delete c.startTime,c.initialized=!1,c.initialize()&&(cancelAnimationFrame(c.rAF),c.printValue(c.startVal))},c.update=function(e){if(c.initialize()){if(e=Number(e),!l(e))return void(c.error="[CountUp] update() - new endVal is not a number: "+e);c.error="",e!==c.frameVal&&(cancelAnimationFrame(c.rAF),c.paused=!1,delete c.startTime,c.startVal=c.frameVal,c.endVal=e,c.countDown=c.startVal>c.endVal,c.rAF=requestAnimationFrame(c.count))}},c.initialize()&&c.printValue(c.startVal)}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(7),i=function(e){var t=function(t){e.handleChange(t)},n=function(t){t.preventDefault(),e.handleSubmit()},r=e.message,i={svg:{fillOpacity:1,fill:"white",stroke:"white",strokeWidth:1,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}};return o.a.createElement("div",null,o.a.createElement(a.l,null,o.a.createElement(a.h,{sm:"12",className:"mx-auto"},o.a.createElement("div",{className:"componentTitle"},o.a.createElement("svg",{width:"100%",height:"3em",viewBox:"0 0 612 86.13"},o.a.createElement("g",{fill:"none",stroke:"#FFF",strokeMiterlimit:10},o.a.createElement("path",{style:i.svg,d:"M12.873 52.549c0-.588.128-1.412.384-2.473.255-1.061.6-1.885 1.035-2.473l3.029-4.294c.92-1.304 1.738-2.428 2.454-3.375a27.791 27.791 0 0 1 2.147-2.531c4.371-4.729 7.502-8.263 9.394-10.602 1.891-2.339 2.837-3.969 2.837-4.889 0-.614-.282-1.093-.844-1.438-.563-.345-1.304-.518-2.224-.518-1.892 0-4.27.671-7.132 2.013-2.863 1.342-6.206 3.087-10.027 5.234-3.822 2.147-5.949 3.221-6.384 3.221-.69 0-1.035-.499-1.035-1.496 0-.844.269-2.045.805-3.604.409-1.687.742-2.997.997-3.93a6.808 6.808 0 0 1 1.284-2.511c.601-.741 1.597-1.546 2.991-2.416 1.393-.869 3.534-2.058 6.423-3.566l.383 1.418c2.402-.971 4.671-1.712 6.806-2.224 2.134-.511 3.955-.767 5.464-.767 2.965 0 5.067.505 6.307 1.515 1.24 1.01 1.86 3.202 1.86 6.576 0 1.841-.269 3.375-.805 4.602-.537 1.227-1.585 2.939-3.144 5.138-3.554 5.164-6.225 8.742-8.014 10.736-5.189 5.931-7.784 9.394-7.784 10.391 0 .563.371.843 1.112.843.613 0 1.482-.434 2.607-1.304 1.125-.869 2.479-2.122 4.064-3.757s3.783-3.975 6.595-7.017c2.991-3.221 5.515-6.064 7.573-8.531 2.058-2.467 3.751-4.576 5.081-6.327 1.329-1.75 2.032-2.69 2.109-2.818 1.38-1.687 2.805-3.073 4.275-4.16 1.47-1.086 2.409-1.629 2.818-1.629.307 0 .665.281 1.074.843.409.563.76 1.227 1.055 1.994.293.767.441 1.355.441 1.764 0 .128-.307.748-.92 1.859a103.46 103.46 0 0 1-1.994 3.451c-.716 1.188-1.866 3.01-3.451 5.464-3.477 5.394-6.135 9.925-7.975 13.593-1.841 3.668-2.761 6.077-2.761 7.228 0 .409.146.786.441 1.131.293.345.594.518.901.518.409 0 1.15-.326 2.224-.978 1.073-.652 2.262-1.591 3.566-2.818a51.336 51.336 0 0 0 4.678-5.1 67.57 67.57 0 0 0 4.179-5.905c1.38-2.172 2.607-4.23 3.681-6.173a215.663 215.663 0 0 0 3.259-6.135l-.652-1.956c-.103-.307-.153-.703-.153-1.188 0-.383.753-1.629 2.262-3.738 1.508-2.109 2.505-3.164 2.991-3.164.537 0 .99.39 1.361 1.169.37.78.556 1.566.556 2.358 0 .869-.39 2.601-1.169 5.195-.78 2.595-1.994 5.732-3.643 9.413-1.648 3.681-3.688 7.426-6.116 11.235-2.096 3.323-4.339 6.167-6.729 8.531-2.391 2.365-4.544 4.122-6.461 5.272-1.917 1.15-3.336 1.726-4.256 1.726-1.048 0-2.147-.46-3.297-1.38-.946-.818-1.617-1.553-2.013-2.205a5.944 5.944 0 0 1-.786-2.128c-.128-.767-.192-1.662-.192-2.684 0-2.172.6-4.716 1.802-7.63 1.201-2.914 2.991-6.543 5.368-10.89-7.438 9.049-13.196 15.631-17.273 19.747-4.078 4.116-7.062 6.173-8.953 6.173-1.253 0-2.314-.748-3.183-2.243-.869-1.495-1.303-3.29-1.303-5.386zM65.518 49.635v-2.493c1.38-1.635 2.428-3.029 3.144-4.179-.818-.281-1.413-.626-1.783-1.035-.371-.409-.556-1.022-.556-1.841 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.868 22.868 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.202.741 1.802 2.224 1.802 1.559 0 4.269-1.584 8.129-4.754v2.569c-2.122 2.224-3.873 3.975-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.048-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.476-.716-.984-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.758.562-1.405 1.386-2.933 2.473-4.582a56.138 56.138 0 0 1 3.662-4.927c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.885 6.043-6.901 8.625z"}),o.a.createElement("path",{style:i.svg,d:"M107.159 46.682v2.799c-2.479 3.196-4.793 5.605-6.94 7.228-2.147 1.624-3.975 2.435-5.483 2.435-2.097 0-3.656-1.099-4.678-3.297-1.022-2.198-1.534-4.601-1.534-7.208 0-.997.102-1.949.307-2.856s.447-1.655.729-2.243c.281-.588.806-1.508 1.572-2.761 3.629-5.649 6.953-8.474 9.969-8.474 1.559 0 2.339.601 2.339 1.802 0 .818-.505 2.096-1.515 3.834-1.01 1.739-1.911 2.978-2.703 3.719-2.224 2.147-3.675 3.643-4.352 4.486a4.469 4.469 0 0 0-1.016 2.875c0 .92.345 1.687 1.036 2.301.69.613 1.584.92 2.684.92 1.201 0 2.524-.441 3.968-1.323 1.443-.882 3.316-2.294 5.617-4.237zm-2.608-17.14c-.639 0-1.246-.242-1.821-.729-.575-.485-.862-1.099-.862-1.84 0-1.125.537-2.377 1.61-3.758 1.073-1.38 2.186-2.07 3.336-2.07.767 0 1.405.237 1.917.709.511.473.767 1.157.767 2.051 0 1.099-.524 2.314-1.572 3.643-1.049 1.33-2.173 1.994-3.375 1.994z"}),o.a.createElement("path",{style:i.svg,d:"M120.272 26.782h1.649c1.354-2.428 2.582-4.147 3.681-5.157 1.099-1.01 2.352-1.515 3.757-1.515s2.109.32 2.109.958c0 .307-.55 1.138-1.648 2.492-1.1 1.355-1.931 2.492-2.493 3.413.869.103 1.643.192 2.32.269s1.208.141 1.591.191c-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.317-.096-1.802-.134a378.71 378.71 0 0 0-3.297-.249c-1.38 2.224-2.538 4.211-3.47 5.962-.934 1.751-1.649 3.355-2.147 4.813-.498 1.457-.748 2.837-.748 4.141 0 1.764.703 2.646 2.109 2.646.971 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.001 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.342-.704-.895-1.055-2.044-1.055-3.451 0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.905-.358.307-.697.607-1.016.901-.32.294-.614.563-.882.805-.269.243-.556.499-.863.767-.307.269-.614.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.932 30.932 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.269.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.843-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.086-.242 2.614-.364 4.582-.364z"}),o.a.createElement("path",{style:i.svg,d:"M132.581 48.063v.958c0 1.509.37 2.684 1.112 3.528.741.843 1.712 1.265 2.914 1.265 1.252 0 2.55-.293 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.971 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995s-5.1 2.78-7.707 2.78c-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.304 1.252-2.186 3.297-4.492 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.629-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.054 1.375 1.054 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.572-5.503 3.086-9.107 4.544zm.383-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.329 2.843-2.601 3.624-3.815.779-1.213 1.169-2.102 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882-1.035.588-2.083 1.355-3.144 2.3a16.916 16.916 0 0 0-2.856 3.336 10.755 10.755 0 0 0-1.65 4.18zM165.786 32.073l.69-4.486c.23-1.534.64-2.786 1.227-3.758.588-.971 1.617-2.038 3.087-3.202 1.47-1.163 3.751-2.818 6.844-4.965 7.438-5.189 13.229-7.784 17.37-7.784 1.252 0 2.141.256 2.665.767.524.512.786 1.406.786 2.684 0 .895-.339 2.122-1.016 3.681-.678 1.56-1.917 4.026-3.719 7.4a670.415 670.415 0 0 0-4.774 9.087 151.871 151.871 0 0 1-3.834 6.998c-1.432 2.467-2.391 4.161-2.876 5.081-.486.92-.729 1.61-.729 2.071 0 .512.166.953.499 1.323.332.371.741.556 1.227.556.664 0 1.412-.358 2.243-1.074.83-.715 2.46-2.262 4.889-4.64 1.175-1.175 2.435-2.569 3.777-4.179a299.348 299.348 0 0 0 5.003-6.212c1.994-2.531 3.834-4.882 5.521-7.055a687.98 687.98 0 0 1 2.837-3.643c.844-1.074 1.565-1.898 2.167-2.473.601-.575 1.08-.863 1.438-.863.307 0 .805.384 1.495 1.15l.92 1.189c.69.972 1.035 1.674 1.035 2.109 0 .511-.953 2.384-2.856 5.617a496.834 496.834 0 0 0-4.851 8.397c-1.329 2.365-3.048 5.777-5.157 10.238-2.108 4.461-4.135 9.413-6.077 14.858 5.189-3.911 8.742-6.524 10.659-7.841 1.917-1.316 3.311-1.975 4.18-1.975.588 0 .882.243.882.729 0 .537-.282 1.234-.844 2.09-.563.856-1.316 1.802-2.262 2.837s-2.371 2.531-4.275 4.486a1280.23 1280.23 0 0 1-6.231 6.346c-1.38 1.405-2.722 3.042-4.026 4.908l-3.029 4.333c-.716 1.022-1.368 1.61-1.956 1.764-.869.255-1.662.063-2.377-.575-.716-.639-1.073-1.649-1.073-3.029 0-.972.492-2.978 1.476-6.02.984-3.042 2.473-6.825 4.467-11.35 1.176-2.709 2.377-5.272 3.604-7.688s2.639-5.074 4.237-7.976c1.597-2.901 3.164-5.655 4.697-8.263s2.837-4.832 3.911-6.672a575.242 575.242 0 0 1-7.611 9.758c-2.518 3.158-5.33 6.48-8.436 9.969s-6.244 6.755-9.413 9.797c-1.38 1.304-2.372 2.191-2.972 2.665-.601.473-1.387.709-2.358.709-.613 0-1.208-.211-1.783-.632a5.155 5.155 0 0 1-1.438-1.649c-.383-.677-.575-1.335-.575-1.975 0-1.074.159-2.019.479-2.837.319-.818.875-2.045 1.668-3.681 3.476-7.029 6.006-11.848 7.592-14.455 5.675-9.1 8.512-14.2 8.512-15.299a1.08 1.08 0 0 0-.383-.863c-.256-.217-.575-.326-.959-.326-.716 0-1.572.313-2.569.939-.997.626-2.25 1.553-3.757 2.78a602.479 602.479 0 0 1-5.502 4.41 93.455 93.455 0 0 1-6.806 4.908 95.275 95.275 0 0 0-3.202 2.186c-1.188.844-1.872 1.266-2.051 1.266-.357 0-.537-.179-.537-.537 0-.332.076-1.035.23-2.109z"}),o.a.createElement("path",{style:i.svg,d:"M234.458 46.605v2.569c-1.687 1.534-3.042 2.557-4.064 3.067-1.022.512-2.492.716-4.409.614-3.323 3.937-6.25 5.905-8.781 5.905-1.432 0-2.735-.473-3.911-1.418s-2.115-2.237-2.818-3.873c-.704-1.635-1.055-3.463-1.055-5.483 0-1.636.543-3.451 1.63-5.445 1.086-1.994 2.492-3.854 4.218-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.147.186 2.837.556.69.371 1.035.888 1.035 1.553 0 .512-.294 1.1-.882 1.764.971.205 1.636.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.288 2.774-.863 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575a2.77 2.77 0 0 0 1.285-.326 8.603 8.603 0 0 0 1.131-.69c.331-.244 1.06-.787 2.185-1.631zm-7.898-10.084c-2.122 1.279-3.937 2.435-5.445 3.47-1.509 1.035-2.787 2.083-3.834 3.144-1.048 1.061-1.751 2.128-2.109 3.202-.639 2.863-.958 4.41-.958 4.64 0 1.687 1.175 2.531 3.528 2.531 1.099 0 2.939-.945 5.521-2.837-.435-1.201-.652-2.352-.652-3.451 0-1.61.332-3.252.997-4.927.663-1.675 1.648-3.599 2.952-5.772z"}),o.a.createElement("path",{style:i.svg,d:"M252.441 44.075c-3.707 4.908-6.525 8.397-8.455 10.468s-3.508 3.106-4.735 3.106c-.972 0-1.866-.403-2.684-1.208-.818-.805-1.451-1.891-1.898-3.259-.447-1.367-.671-2.831-.671-4.39 0-1.022.096-1.942.288-2.761.192-.818.556-1.719 1.093-2.703.537-.984 1.246-2.051 2.128-3.202a78.419 78.419 0 0 1 3.24-3.911l1.937-2.262c.523-.613 1.035-1.029 1.534-1.246.498-.217 1.31-.326 2.435-.326.818 0 1.597.109 2.339.326.741.217 1.112.441 1.112.671 0 .46-.377 1.291-1.131 2.492-.754 1.202-1.969 2.665-3.643 4.391-1.675 1.725-3.611 3.419-5.809 5.081-.486 1.508-.729 2.659-.729 3.451 0 1.099.422 1.649 1.265 1.649.307 0 .818-.262 1.534-.786.715-.524 1.923-1.534 3.623-3.029 1.7-1.495 3.227-2.818 4.582-3.968.997-.869 2.153-2.167 3.47-3.892 1.316-1.726 2.383-3.022 3.202-3.892 1.892-1.994 3.183-3.291 3.873-3.892.69-.6 1.354-.901 1.994-.901.613 0 1.028.191 1.246.575.217.383.326 1.164.326 2.339 0 .537-.051.972-.153 1.304-.103.333-.313.761-.633 1.284-.32.524-.965 1.49-1.936 2.895-.972 1.406-2.122 3.067-3.451 4.985a19.686 19.686 0 0 0-1.878 3.355c-.537 1.214-.806 2.128-.806 2.742 0 1.329.524 1.994 1.572 1.994.869 0 1.879-.358 3.029-1.074 1.15-.715 2.914-2.006 5.291-3.873v2.569c-2.991 2.761-5.202 4.768-6.633 6.02-1.432 1.253-2.671 2.199-3.719 2.837-1.048.639-2.045.958-2.991.958-2.147 0-3.221-1.278-3.221-3.834 0-.971.319-2.281.958-3.93.638-1.651 1.673-4.034 3.105-7.153z"}),o.a.createElement("path",{style:i.svg,d:"M264.213 49.635v-2.493c1.38-1.635 2.428-3.029 3.144-4.179-.818-.281-1.413-.626-1.783-1.035-.371-.409-.556-1.022-.556-1.841 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.868 22.868 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.202.741 1.802 2.224 1.802 1.559 0 4.269-1.584 8.129-4.754v2.569c-2.122 2.224-3.873 3.975-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.048-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.476-.716-.984-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.758.562-1.405 1.386-2.933 2.473-4.582a56.138 56.138 0 0 1 3.662-4.927c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.885 6.043-6.901 8.625zM350.178 29.696l1.189 1.188c-2.096 2.633-3.93 4.55-5.502 5.751-1.572 1.202-2.729 1.802-3.471 1.802-.613 0-.92-.549-.92-1.649 0-2.735 1.803-6.953 5.406-12.653 3.041-4.933 4.563-7.681 4.563-8.244 0-.485-.205-.729-.613-.729-.715 0-2.518 1.61-5.406 4.831s-6.455 7.771-10.697 13.65c-4.807 6.544-8.104 11.222-9.893 14.034 3.398.333 6.191.761 8.377 1.284 2.186.524 5.355 1.375 9.51 2.55 4.154 1.176 7.215 1.866 9.184 2.071-2.404 2.735-4.059 4.595-4.967 5.579-.906.983-1.604 1.578-2.088 1.783-.768.332-1.906.351-3.414.058-1.508-.294-3.898-.863-7.17-1.707a165.043 165.043 0 0 0-9.184-2.109c-2.85-.562-5.451-.843-7.803-.843-1.328 0-2.473.153-3.432.46-.957.307-2.287.812-3.986 1.515-1.701.703-2.896 1.054-3.585 1.054-.997 0-1.496-.409-1.496-1.227 0-.46.167-.984.499-1.572a291.25 291.25 0 0 1 2.454-3.873c.793-1.227 1.635-2.186 2.531-2.876.895-.69 2.186-1.227 3.873-1.61 1.686-.383 3.91-.588 6.67-.613 4.168-6.39 8.053-12.059 11.658-17.005 3.604-4.946 6.881-9.119 9.834-12.519 2.953-3.399 5.541-5.975 7.764-7.726 2.225-1.751 3.988-2.626 5.293-2.626.92 0 1.635.255 2.146.767.512.512.768 1.227.768 2.147 0 3.068-2.698 9.42-8.092 19.057zM380.893 46.605v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.716-4.41.614-3.324 3.937-6.25 5.905-8.781 5.905-1.432 0-2.734-.473-3.91-1.418s-2.115-2.237-2.818-3.873c-.703-1.635-1.055-3.463-1.055-5.483 0-1.636.543-3.451 1.629-5.445 1.088-1.994 2.492-3.854 4.219-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.967-1.061 3.795-1.591 5.482-1.591 1.201 0 2.146.186 2.838.556.689.371 1.035.888 1.035 1.553 0 .512-.295 1.1-.883 1.764.973.205 1.637.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.287 2.774-.863 4.64a23.15 23.15 0 0 1-2.357 5.253l.689.69h.576c.434 0 .861-.108 1.283-.326a8.631 8.631 0 0 0 1.133-.69c.329-.244 1.06-.787 2.185-1.631zm-7.901-10.084c-2.121 1.279-3.936 2.435-5.443 3.47-1.51 1.035-2.787 2.083-3.834 3.144-1.049 1.061-1.752 2.128-2.109 3.202-.639 2.863-.959 4.41-.959 4.64 0 1.687 1.176 2.531 3.527 2.531 1.1 0 2.939-.945 5.521-2.837-.436-1.201-.652-2.352-.652-3.451 0-1.61.332-3.252.998-4.927.664-1.675 1.648-3.599 2.951-5.772z"}),o.a.createElement("path",{style:i.svg,d:"M385.838 46.759l-.691 3.221c-.102.409-.152.87-.152 1.38 0 1.38.574 2.071 1.725 2.071 1.1 0 3.771-2.147 8.014-6.442.025-1.661.646-3.579 1.859-5.751 1.215-2.172 2.557-4.077 4.027-5.713 1.469-1.636 2.563-2.454 3.277-2.454 1.125 0 1.688.742 1.688 2.224 0 .896-.217 1.988-.652 3.279-.434 1.291-1.072 2.684-1.916 4.179s-1.879 3.036-3.107 4.62c.639 1.15 1.291 1.726 1.957 1.726.561 0 1.182-.198 1.859-.594.676-.396 1.527-1.003 2.549-1.821v2.569c-1.432 1.125-2.563 1.892-3.393 2.301-.832.409-1.898.613-3.201.613-.512 0-1.432-.345-2.762-1.035-2.607 2.761-4.729 4.825-6.365 6.192-1.635 1.368-2.965 2.051-3.986 2.051-1.764 0-3.266-1.054-4.506-3.163s-1.859-4.429-1.859-6.959c0-3.399 1.916-7.477 5.752-12.231 1.148-1.431 2.076-2.409 2.779-2.933s1.502-.786 2.396-.786c.766 0 1.494.141 2.186.422.689.282 1.035.613 1.035.997 0 1.278-.857 3.15-2.568 5.617-1.715 2.465-3.697 4.605-5.945 6.42z"}),o.a.createElement("path",{style:i.svg,d:"M412.332 48.063v.958c0 1.509.371 2.684 1.113 3.528.74.843 1.711 1.265 2.914 1.265 1.252 0 2.549-.293 3.891-.882 1.344-.588 2.678-1.367 4.008-2.339 1.328-.971 2.953-2.275 4.869-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.529 1.853-5.1 2.78-7.707 2.78-2.275 0-4.076-.882-5.406-2.646s-1.994-4.18-1.994-7.247c0-2.684.627-5.119 1.879-7.304s3.299-4.492 6.135-6.921c1.943-1.662 3.873-2.914 5.791-3.758 1.916-.843 3.629-1.265 5.137-1.265 1.201 0 2.154.275 2.857.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.602 3.215-1.803 4.812-1.201 1.598-3.035 3.183-5.502 4.755-2.467 1.572-5.502 3.086-9.108 4.544zm.385-2.493c2.301-.895 4.268-2.006 5.904-3.336 1.635-1.329 2.844-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.268-.882-.805-.882-.461 0-1.209.294-2.244.882-1.035.588-2.084 1.355-3.145 2.3a16.911 16.911 0 0 0-2.855 3.336 10.752 10.752 0 0 0-1.648 4.18zM491.779 29.696l1.189 1.188c-2.096 2.633-3.93 4.55-5.502 5.751-1.572 1.202-2.729 1.802-3.471 1.802-.613 0-.92-.549-.92-1.649 0-2.735 1.803-6.953 5.406-12.653 3.041-4.933 4.563-7.681 4.563-8.244 0-.485-.205-.729-.613-.729-.715 0-2.518 1.61-5.406 4.831s-6.455 7.771-10.697 13.65c-4.807 6.544-8.104 11.222-9.893 14.034 3.398.333 6.191.761 8.377 1.284 2.186.524 5.355 1.375 9.51 2.55 4.154 1.176 7.215 1.866 9.184 2.071-2.404 2.735-4.059 4.595-4.967 5.579-.906.983-1.604 1.578-2.088 1.783-.768.332-1.906.351-3.414.058-1.508-.294-3.898-.863-7.17-1.707a165.043 165.043 0 0 0-9.184-2.109c-2.85-.562-5.451-.843-7.803-.843-1.328 0-2.473.153-3.432.46-.957.307-2.287.812-3.986 1.515-1.701.703-2.896 1.054-3.586 1.054-.996 0-1.496-.409-1.496-1.227 0-.46.168-.984.5-1.572a302.106 302.106 0 0 1 2.453-3.873c.793-1.227 1.635-2.186 2.531-2.876.895-.69 2.186-1.227 3.873-1.61 1.686-.383 3.91-.588 6.67-.613 4.168-6.39 8.053-12.059 11.658-17.005 3.604-4.946 6.881-9.119 9.834-12.519 2.953-3.399 5.541-5.975 7.764-7.726 2.225-1.751 3.988-2.626 5.293-2.626.92 0 1.635.255 2.146.767.512.512.768 1.227.768 2.147.001 3.068-2.696 9.42-8.091 19.057zM503.973 48.063v.958c0 1.509.371 2.684 1.113 3.528.74.843 1.711 1.265 2.914 1.265 1.252 0 2.549-.293 3.891-.882 1.344-.588 2.678-1.367 4.008-2.339 1.328-.971 2.953-2.275 4.869-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.529 1.853-5.1 2.78-7.707 2.78-2.275 0-4.076-.882-5.406-2.646s-1.994-4.18-1.994-7.247c0-2.684.627-5.119 1.879-7.304s3.299-4.492 6.135-6.921c1.943-1.662 3.873-2.914 5.791-3.758 1.916-.843 3.629-1.265 5.137-1.265 1.201 0 2.154.275 2.857.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.602 3.215-1.803 4.812-1.201 1.598-3.035 3.183-5.502 4.755-2.468 1.572-5.503 3.086-9.108 4.544zm.384-2.493c2.301-.895 4.268-2.006 5.904-3.336 1.635-1.329 2.844-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.268-.882-.805-.882-.461 0-1.209.294-2.244.882-1.035.588-2.084 1.355-3.145 2.3a16.911 16.911 0 0 0-2.855 3.336 10.767 10.767 0 0 0-1.648 4.18z"}),o.a.createElement("path",{style:i.svg,d:"M534.227 26.782h1.648c1.354-2.428 2.582-4.147 3.68-5.157 1.1-1.01 2.352-1.515 3.758-1.515s2.109.32 2.109.958c0 .307-.551 1.138-1.648 2.492-1.1 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269.676.077 1.207.141 1.59.191-1.457 2.71-3.285 5.483-5.482 8.321-.717-.051-1.316-.096-1.803-.134a351.075 351.075 0 0 0-3.297-.249c-1.381 2.224-2.537 4.211-3.471 5.962-.934 1.751-1.648 3.355-2.146 4.813s-.748 2.837-.748 4.141c0 1.764.703 2.646 2.109 2.646.971 0 2.242-.518 3.814-1.553 1.572-1.036 3.674-2.627 6.309-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.078-.448-2.781-1.342s-1.055-2.044-1.055-3.451c0-.945.199-2.071.596-3.375.395-1.304 1.105-3.271 2.127-5.905-.357.307-.697.607-1.016.901a100.157 100.157 0 0 1-1.744 1.572c-.307.269-.613.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.738-11.848a30.894 30.894 0 0 0-2.262-.077c-1.51 0-2.633.103-3.375.307-.307.077-.594.16-.863.249-.268.09-.453.134-.555.134-.104 0-.154-.077-.154-.23 0-.844.523-2.109 1.572-3.796.844-1.431 1.643-2.492 2.396-3.182.754-.69 1.674-1.156 2.762-1.4 1.086-.242 2.614-.364 4.583-.364z"}),o.a.createElement("path",{style:i.svg,d:"M553.857 26.782h1.648c1.355-2.428 2.582-4.147 3.682-5.157 1.098-1.01 2.352-1.515 3.758-1.515 1.404 0 2.109.32 2.109.958 0 .307-.551 1.138-1.65 2.492-1.098 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269s1.207.141 1.592.191c-1.457 2.71-3.285 5.483-5.484 8.321-.715-.051-1.316-.096-1.801-.134a379.343 379.343 0 0 0-3.299-.249c-1.379 2.224-2.537 4.211-3.469 5.962-.934 1.751-1.648 3.355-2.148 4.813-.498 1.457-.746 2.837-.746 4.141 0 1.764.701 2.646 2.107 2.646.973 0 2.244-.518 3.816-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.076-.448-2.779-1.342s-1.055-2.044-1.055-3.451c0-.945.197-2.071.594-3.375s1.105-3.271 2.129-5.905c-.359.307-.697.607-1.018.901a84.916 84.916 0 0 1-1.744 1.572c-.307.269-.613.543-.92.825v-2.646c2.684-2.249 5.93-6.198 9.74-11.848a30.913 30.913 0 0 0-2.263-.077c-1.508 0-2.633.103-3.373.307-.307.077-.596.16-.863.249-.268.09-.455.134-.557.134s-.152-.077-.152-.23c0-.844.523-2.109 1.572-3.796.844-1.431 1.641-2.492 2.396-3.182.754-.69 1.674-1.156 2.76-1.4 1.086-.242 2.614-.364 4.582-.364z"}),o.a.createElement("path",{style:i.svg,d:"M566.166 48.063v.958c0 1.509.371 2.684 1.111 3.528.742.843 1.713 1.265 2.914 1.265 1.252 0 2.551-.293 3.893-.882 1.342-.588 2.678-1.367 4.006-2.339 1.33-.971 2.953-2.275 4.871-3.911v2.339c-2.889 3.477-5.6 6.142-8.129 7.995-2.531 1.853-5.1 2.78-7.707 2.78-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.625-5.119 1.879-7.304 1.252-2.186 3.297-4.492 6.135-6.921 1.941-1.662 3.873-2.914 5.789-3.758 1.918-.843 3.631-1.265 5.139-1.265 1.201 0 2.152.275 2.855.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.6 3.215-1.801 4.812-1.203 1.598-3.037 3.183-5.504 4.755-2.467 1.572-5.502 3.086-9.106 4.544zm.383-2.493c2.301-.895 4.27-2.006 5.906-3.336 1.635-1.329 2.842-2.601 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.27-.882-.807-.882-.459 0-1.207.294-2.242.882-1.035.588-2.084 1.355-3.145 2.3a16.92 16.92 0 0 0-2.857 3.336 10.814 10.814 0 0 0-1.648 4.18z"}),o.a.createElement("path",{style:i.svg,d:"M582.578 49.635v-2.493c1.379-1.635 2.428-3.029 3.143-4.179-.818-.281-1.412-.626-1.783-1.035-.369-.409-.555-1.022-.555-1.841 0-.92.383-2.083 1.15-3.489a19.927 19.927 0 0 1 2.838-3.949c1.123-1.227 2.146-2.019 3.066-2.377a2.32 2.32 0 0 1 1.035-.268c.512 0 .768.243.768.729 0 .435-.396 1.317-1.189 2.646 5.266-.818 8.59-1.227 9.969-1.227.537 0 .908.052 1.113.153.434.23.791.767 1.072 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.473.627-1.283 1.541-2.434 2.742a22.91 22.91 0 0 0-3.414 4.754c-.92 1.713-1.379 3.004-1.379 3.873 0 1.202.74 1.802 2.223 1.802 1.559 0 4.27-1.584 8.129-4.754v2.569c-2.121 2.224-3.873 3.975-5.252 5.253-1.381 1.279-2.66 2.295-3.836 3.048-1.176.754-2.223 1.131-3.143 1.131-1.074 0-1.969-.492-2.686-1.476-.715-.984-1.072-2.409-1.072-4.275 0-1.099.281-2.352.844-3.758.561-1.405 1.385-2.933 2.473-4.582a56.34 56.34 0 0 1 3.662-4.927 92.22 92.22 0 0 1-2.416.479c-.895.167-1.84.339-2.838.518-.996.179-1.764.32-2.301.422-1.583 3.167-3.884 6.043-6.9 8.625z"})))),o.a.createElement("div",{className:"letter letter-form"},o.a.createElement("address",null,o.a.createElement("strong",null,"Prime Minister Justin Trudeau"),o.a.createElement("br",null),"House of Commons",o.a.createElement("br",null),"Ottawa, Ontario",o.a.createElement("br",null),"K1A 0A6",o.a.createElement("br",null),o.a.createElement("abbr",{title:"Phone"},"P:")," (613) 995-0253"),o.a.createElement("h4",{className:"letter-salutation"},"My Dearest Justin,"),o.a.createElement(a.j,{onSubmit:n},o.a.createElement(a.k,null,o.a.createElement("textarea",{autoFocus:!0,onChange:t,value:r,className:"form-control",name:"valentineLetter",id:"valentine",rows:"5",placeholder:"America has a ginormous crush on you. Please, don't break our hearts by building the dirtiest Tar Sands pipeline on Earth. When your piercing blue eyes raised taxes on the rich, we swooned. When those rippling abs built a gender-balanced cabinet, we sighed. When your curly locks fought to take in thousands of Syrian refugees, we purred like kittens. You're a burning hunk of pro science, pro gay, pro universal healthcare, and pro legal weed yumminess. Respect indigenous sovereignty and don't be a Trump. Canadians are counting on you. Everyone on Earth is counting on you."})),o.a.createElement("div",{className:"letter-signature"},o.a.createElement("p",null,"Love,",o.a.createElement("br",null),"America")),o.a.createElement("button",{className:"btn btn-danger btn-block"},"\ud83d\udc8c Send"))))),o.a.createElement(a.l,null,o.a.createElement(a.h,null,o.a.createElement("div",{className:"message-count"},o.a.createElement("p",null,!(0===e.submissionCount)&&o.a.createElement("span",null,e.submissionCount," letters sent"))))))};t.a=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(28),u=n(13),p=n(180),f=n(181),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onAnimationComplete=n.onAnimationComplete.bind(n),n.handleClick=n.handleClick.bind(n),n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return a(t,e),d(t,[{key:"handleClick",value:function(e){console.log(e+" clicked")}},{key:"handleChange",value:function(e,t){var n={};n="email"===e?{email:t,postalCode:this.props.advocacy.activist.postalCode}:{email:this.props.advocacy.activist.email,postalCode:t},this.props.updateActivist(n)}},{key:"handleSubmit",value:function(){this.props.submitAdvocacy(this.props.advocacy)}},{key:"onAnimationComplete",value:function(){this.props.envelopeCompleteAnimation()}},{key:"render",value:function(){return this.props.advocacy.success?null:this.props.envelopeAnimationCompleted?s.a.createElement(f.a,{email:this.props.advocacy.activist.email,postalCode:this.props.advocacy.activist.postalCode,status:this.props.advocacy.status,handleClick:this.handleClick,handleChange:this.handleChange,handleSubmit:this.handleSubmit,advocacyError:this.props.advocacy.error}):s.a.createElement(p.a,{onComplete:this.onAnimationComplete})}}]),t}(i.Component),m=function(e){return{advocacy:e.advocacy,envelopeAnimationCompleted:e.app.envelopeAnimationComplete}},y=function(e){return{updateActivist:function(t){return e(Object(c.d)(t))},submitAdvocacy:function(t){return e(Object(c.b)(t))},envelopeCompleteAnimation:function(){return e(Object(u.a)())}}};t.a=Object(l.b)(m,y)(h)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(15),i=n.n(a),s=n(7),l={svg:{fillOpacity:1,fill:"white",stroke:"white",strokeWidth:1,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}},c=function(e){var t=function(t){e.onComplete(t)};return o.a.createElement(s.l,null,o.a.createElement(s.h,{sm:"12",className:"envelope-container"},o.a.createElement("div",{className:"componentTitle"},o.a.createElement(i.a,{easing:"easeInOutQuart",delay:function(e,t){return 100*t},opacity:[0,1],duration:2e3},o.a.createElement("svg",{width:"100%",height:"3em",viewBox:"0 0 542.54 79.383"},o.a.createElement("path",{style:l.svg,d:"M45.074 40.739c-3.068.103-5.317.153-6.749.153-2.199 0-5.241-.051-9.126-.153-.818.896-1.815 1.95-2.991 3.164s-2.288 2.339-3.336 3.374a364.11 364.11 0 0 1-2.703 2.646c-.754.729-1.374 1.336-1.859 1.821a1758.809 1758.809 0 0 0-5.541 5.406 22.578 22.578 0 0 1-2.704 2.281c-.945.678-1.814 1.017-2.607 1.017-.895 0-1.342-.409-1.342-1.228 0-.895.639-2.275 1.917-4.141 1.279-1.865 2.723-3.515 4.333-4.946s2.927-2.147 3.949-2.147c.281 0 .677.129 1.189.384l7.285-7.784c-.92-.127-2.122-.211-3.604-.249-1.483-.038-2.479-.146-2.991-.326-.512-.178-.767-.613-.767-1.304 0-1.099 1.175-2.824 3.527-5.176 1.278-1.304 2.479-2.134 3.604-2.492 1.125-.357 3.271-.55 6.441-.575-1.866.256-3.189.556-3.968.901-.78.345-1.208.862-1.285 1.553h2.051c.626 0 1.444-.006 2.454-.02a59.136 59.136 0 0 0 2.243-.058c4.192-4.09 8-7.649 11.426-10.679a135.94 135.94 0 0 1 10.832-8.627 105.601 105.601 0 0 1 12.135-7.496c.844 1.1 1.266 2.25 1.266 3.451 0 .997-.326 2.146-.978 3.45s-2.032 3.752-4.141 7.343a350.406 350.406 0 0 0-6.422 11.446c.715 0 1.31.006 1.783.019.473.014.978.032 1.515.058 1.457 0 2.345.025 2.665.077.319.051.479.307.479.767 0 .205-.198.569-.594 1.093-.397.524-1.093 1.394-2.09 2.607s-1.969 2.447-2.914 3.7l-5.637.46c-2.991 5.624-4.486 8.794-4.486 9.509 0 1.049.549 1.572 1.648 1.572.537 0 2.761-1.125 6.672-3.374l-.307 2.032a440.736 440.736 0 0 0-4.889 3.738 77.824 77.824 0 0 1-3.029 2.263c-.857.6-1.636 1.048-2.339 1.342a5.496 5.496 0 0 1-2.128.44c-.844 0-1.675-.39-2.493-1.169-.818-.779-1.227-1.885-1.227-3.317 0-.587.217-1.424.652-2.511s.901-2.128 1.4-3.125 1.761-3.386 3.781-7.17zm-7.247-8.703l12.423-.23c1.457-2.479 2.639-4.486 3.546-6.02a665.076 665.076 0 0 1 2.991-5.004 372.746 372.746 0 0 1 2.799-4.582 271.879 271.879 0 0 0 2.588-4.256 91.686 91.686 0 0 0-5.637 3.834c-1.917 1.406-4.078 3.1-6.48 5.08a172.515 172.515 0 0 0-6.403 5.521 138.838 138.838 0 0 0-5.827 5.657zM78.892 44.536c-2.25 2.556-4.263 4.729-6.039 6.518-1.777 1.79-3.221 3.125-4.333 4.007-1.112.882-1.873 1.323-2.282 1.323-.665 0-1.413-.537-2.243-1.61-.831-1.073-1.541-2.44-2.128-4.103a15.076 15.076 0 0 1-.882-5.062c0-2.479 1.201-4.979 3.604-7.496a33.02 33.02 0 0 1 8.205-6.27c3.068-1.661 5.368-2.492 6.902-2.492 1.252 0 2.479.793 3.681 2.378 1.968-4.116 3.84-7.771 5.617-10.967 1.776-3.195 3.265-5.572 4.467-7.132 1.201-1.559 2.057-2.339 2.569-2.339.562 0 1.08.275 1.553.824.473.55.709 1.17.709 1.86 0 1.329-.972 3.61-2.914 6.844a974.632 974.632 0 0 1-5.751 9.452c-1.892 3.067-3.515 6.09-4.87 9.067-1.355 2.979-2.032 5.732-2.032 8.264 0 2.3.741 3.45 2.224 3.45.894 0 2.019-.504 3.374-1.515 1.354-1.009 3.284-2.703 5.79-5.08v2.799c-5.521 7.132-9.777 10.698-12.768 10.698-1.202 0-2.064-.46-2.588-1.381-.524-.92-.786-2.287-.786-4.103.001-2.451.308-5.097.921-7.934zm2.837-9.356c-2.275.768-4.946 2.001-8.014 3.7-3.067 1.7-4.921 2.87-5.56 3.509-.563.512-1.061 1.47-1.496 2.876-.435 1.405-.652 2.467-.652 3.182 0 .436.128.793.383 1.074s.575.422.959.422c.357 0 .767-.153 1.227-.46.46-.308 1.194-.907 2.205-1.803 1.009-.895 1.668-1.47 1.975-1.726a241.83 241.83 0 0 1 2.895-2.473c1.495-1.266 2.588-2.256 3.278-2.972a11.307 11.307 0 0 0 1.764-2.396 9.808 9.808 0 0 0 1.036-2.933z"}),o.a.createElement("path",{style:l.svg,d:"M111.637 44.536c-2.25 2.556-4.263 4.729-6.039 6.518-1.777 1.79-3.221 3.125-4.333 4.007-1.112.882-1.873 1.323-2.282 1.323-.665 0-1.413-.537-2.243-1.61-.831-1.073-1.541-2.44-2.128-4.103a15.076 15.076 0 0 1-.882-5.062c0-2.479 1.201-4.979 3.604-7.496a33.02 33.02 0 0 1 8.205-6.27c3.068-1.661 5.368-2.492 6.902-2.492 1.252 0 2.479.793 3.681 2.378 1.968-4.116 3.84-7.771 5.617-10.967 1.776-3.195 3.265-5.572 4.467-7.132 1.201-1.559 2.057-2.339 2.569-2.339.562 0 1.08.275 1.553.824.473.55.709 1.17.709 1.86 0 1.329-.972 3.61-2.914 6.844a974.632 974.632 0 0 1-5.751 9.452c-1.892 3.067-3.515 6.09-4.87 9.067-1.355 2.979-2.032 5.732-2.032 8.264 0 2.3.741 3.45 2.224 3.45.894 0 2.019-.504 3.374-1.515 1.354-1.009 3.284-2.703 5.79-5.08v2.799c-5.521 7.132-9.777 10.698-12.768 10.698-1.202 0-2.064-.46-2.588-1.381-.524-.92-.786-2.287-.786-4.103.001-2.451.308-5.097.921-7.934zm2.838-9.356c-2.275.768-4.946 2.001-8.014 3.7-3.067 1.7-4.921 2.87-5.56 3.509-.563.512-1.061 1.47-1.496 2.876-.435 1.405-.652 2.467-.652 3.182 0 .436.128.793.383 1.074s.575.422.959.422c.357 0 .767-.153 1.227-.46.46-.308 1.194-.907 2.205-1.803 1.009-.895 1.668-1.47 1.975-1.726a241.83 241.83 0 0 1 2.895-2.473c1.495-1.266 2.588-2.256 3.278-2.972a11.307 11.307 0 0 0 1.764-2.396 9.863 9.863 0 0 0 1.036-2.933z"}),o.a.createElement("path",{style:l.svg,d:"M126.476 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.413-.626-1.783-1.035-.371-.408-.556-1.021-.556-1.84 0-.921.383-2.083 1.15-3.489s1.712-2.723 2.837-3.949c1.125-1.228 2.147-2.02 3.067-2.378.358-.179.703-.269 1.035-.269.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.61.281.844.421 1.688.421 2.531 0 .536-.236 1.118-.709 1.744-.474.627-1.285 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.38 1.278-2.659 2.295-3.834 3.049-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.477-.716-.983-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.149 56.149 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.885 6.048-6.901 8.629z"}),o.a.createElement("path",{style:l.svg,d:"M155.924 45.839v.959c0 1.509.37 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.972 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.531 1.853-5.1 2.779-7.707 2.779-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.297-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.629-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824.703.55 1.054 1.374 1.054 2.474 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.573-5.503 3.087-9.107 4.544zm.383-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.328 2.843-2.601 3.624-3.814.779-1.214 1.169-2.103 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882s-2.083 1.355-3.144 2.301a16.887 16.887 0 0 0-2.856 3.336 10.75 10.75 0 0 0-1.65 4.178z"}),o.a.createElement("path",{style:l.svg,d:"M172.564 45.532v-.92c6.595-6.953 11.132-11.822 13.612-14.608.562-3.145 1.917-4.717 4.064-4.717.537 0 1.112.153 1.726.46l.23.729c-.103.308-.153.742-.153 1.304 0 .486.185 1.388.556 2.703.37 1.317.658 2.423.863 3.317.204.895.307 1.904.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.636 4.352c.92.153 1.648.23 2.186.23 1.048 0 2.179-.262 3.393-.786 1.214-.523 2.454-1.227 3.719-2.108 1.266-.883 2.742-2.026 4.429-3.433v2.569c-3.272 3.195-6.199 5.617-8.78 7.267-2.583 1.648-4.806 2.473-6.672 2.473-2.403 0-4.627-1.022-6.672-3.067-1.202-1.227-1.949-2.402-2.243-3.527s-.443-2.647-.443-4.565zm14.303-5.866l-.69-5.598c-1.585 1.789-4.972 5.228-10.161 10.313 1.534.333 2.582.78 3.144 1.343.562.563 1.354 1.648 2.377 3.259 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08 0-.255-.007-.485-.019-.69a10.658 10.658 0 0 0-.057-.613z"}),o.a.createElement("path",{style:l.svg,d:"M197.066 45.532v-.92c6.595-6.953 11.132-11.822 13.612-14.608.562-3.145 1.917-4.717 4.064-4.717.537 0 1.112.153 1.726.46l.23.729c-.103.308-.153.742-.153 1.304 0 .486.185 1.388.556 2.703.37 1.317.658 2.423.863 3.317.204.895.307 1.904.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.636 4.352c.92.153 1.648.23 2.186.23 1.048 0 2.179-.262 3.393-.786 1.214-.523 2.454-1.227 3.719-2.108 1.266-.883 2.742-2.026 4.429-3.433v2.569c-3.272 3.195-6.199 5.617-8.78 7.267-2.583 1.648-4.806 2.473-6.672 2.473-2.403 0-4.627-1.022-6.672-3.067-1.202-1.227-1.949-2.402-2.243-3.527s-.443-2.647-.443-4.565zm14.302-5.866l-.69-5.598c-1.585 1.789-4.972 5.228-10.161 10.313 1.534.333 2.582.78 3.144 1.343.562.563 1.354 1.648 2.377 3.259 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08a9.833 9.833 0 0 0-.076-1.303zM238.132 29.851l.69-4.486c.23-1.534.64-2.786 1.227-3.758.588-.972 1.617-2.038 3.087-3.202 1.47-1.162 3.751-2.817 6.844-4.965 7.438-5.189 13.229-7.784 17.37-7.784 1.252 0 2.141.256 2.665.768s.786 1.405.786 2.684c0 .896-.339 2.122-1.016 3.681-.678 1.56-1.917 4.026-3.719 7.4s-3.394 6.403-4.774 9.088a152.386 152.386 0 0 1-3.834 6.997c-1.432 2.468-2.391 4.16-2.876 5.081-.486.92-.729 1.61-.729 2.07 0 .512.166.952.499 1.322.332.371.741.557 1.227.557.664 0 1.412-.357 2.243-1.074.83-.715 2.46-2.262 4.889-4.639 1.175-1.176 2.435-2.569 3.777-4.18 1.342-1.61 3.01-3.681 5.003-6.212a1230.3 1230.3 0 0 0 5.522-7.055 639.024 639.024 0 0 1 2.837-3.643c.844-1.074 1.565-1.898 2.167-2.474.6-.575 1.079-.862 1.438-.862.307 0 .805.383 1.495 1.15l.921 1.188c.689.972 1.035 1.674 1.035 2.108 0 .512-.953 2.384-2.857 5.617a496.046 496.046 0 0 0-4.85 8.397c-1.33 2.365-3.049 5.777-5.157 10.237-2.108 4.461-4.135 9.414-6.078 14.858 5.189-3.911 8.743-6.524 10.659-7.841 1.918-1.316 3.311-1.975 4.18-1.975.588 0 .883.243.883.729 0 .536-.282 1.233-.844 2.089-.563.857-1.316 1.803-2.263 2.838s-2.371 2.53-4.274 4.486a1280.23 1280.23 0 0 1-6.231 6.346c-1.38 1.405-2.722 3.042-4.026 4.908l-3.029 4.332c-.716 1.022-1.368 1.61-1.956 1.764-.869.256-1.662.064-2.377-.574-.716-.64-1.073-1.649-1.073-3.029 0-.972.492-2.979 1.476-6.021s2.473-6.825 4.467-11.35c1.176-2.709 2.377-5.271 3.604-7.688s2.639-5.074 4.237-7.976c1.597-2.9 3.164-5.655 4.698-8.263 1.533-2.607 2.837-4.831 3.91-6.672-2.557 3.35-5.094 6.602-7.611 9.759s-5.329 6.479-8.435 9.969-6.244 6.755-9.413 9.797c-1.38 1.304-2.372 2.191-2.972 2.665-.601.473-1.387.709-2.358.709-.613 0-1.208-.211-1.783-.633s-1.055-.971-1.438-1.648c-.383-.677-.575-1.335-.575-1.975 0-1.073.159-2.02.479-2.838.319-.817.875-2.044 1.668-3.681 3.476-7.029 6.006-11.848 7.592-14.455 5.675-9.101 8.512-14.2 8.512-15.299 0-.358-.128-.646-.383-.863-.256-.217-.575-.326-.958-.326-.716 0-1.572.313-2.569.939-.997.627-2.25 1.554-3.757 2.78a587.519 587.519 0 0 1-5.502 4.409 93.155 93.155 0 0 1-6.806 4.908 93.795 93.795 0 0 0-3.202 2.186c-1.188.844-1.872 1.266-2.051 1.266-.357 0-.537-.179-.537-.537-.004-.328.073-1.031.226-2.104z"}),o.a.createElement("path",{style:l.svg,d:"M306.805 44.382v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.716-4.41.613-3.322 3.938-6.25 5.905-8.78 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.872s-1.055-3.464-1.055-5.483c0-1.636.543-3.451 1.631-5.444 1.086-1.994 2.492-3.854 4.217-5.579 1.726-1.726 3.572-3.119 5.541-4.18 1.968-1.061 3.796-1.591 5.482-1.591 1.201 0 2.148.186 2.838.556.69.371 1.035.889 1.035 1.553 0 .512-.294 1.1-.882 1.764.972.205 1.636.544 1.994 1.017.357.473.536 1.336.536 2.588 0 1.227-.287 2.773-.862 4.64s-1.361 3.617-2.358 5.253l.69.69h.575a2.77 2.77 0 0 0 1.285-.326 8.538 8.538 0 0 0 1.131-.69c.332-.243 1.06-.787 2.185-1.631zm-7.898-10.084c-2.123 1.278-3.938 2.435-5.445 3.471-1.509 1.035-2.787 2.083-3.834 3.144-1.049 1.062-1.752 2.128-2.109 3.202-.639 2.863-.959 4.409-.959 4.64 0 1.687 1.176 2.53 3.528 2.53 1.099 0 2.938-.945 5.521-2.838-.434-1.201-.651-2.352-.651-3.45 0-1.61.332-3.253.997-4.928.663-1.674 1.647-3.598 2.952-5.771z"}),o.a.createElement("path",{style:l.svg,d:"M324.787 41.852c-3.705 4.908-6.523 8.397-8.454 10.468-1.93 2.07-3.508 3.105-4.735 3.105-.972 0-1.866-.402-2.685-1.207-.818-.806-1.45-1.892-1.897-3.26-.447-1.367-.671-2.831-.671-4.391 0-1.021.096-1.941.287-2.76.192-.818.557-1.72 1.094-2.704.537-.983 1.246-2.051 2.127-3.201a79.543 79.543 0 0 1 3.24-3.911l1.938-2.262c.523-.614 1.035-1.029 1.533-1.247.498-.217 1.31-.325 2.435-.325.818 0 1.598.108 2.34.325.74.218 1.111.441 1.111.672 0 .46-.377 1.291-1.131 2.492s-1.969 2.665-3.643 4.39c-1.675 1.726-3.611 3.42-5.81 5.081-.486 1.509-.729 2.658-.729 3.45 0 1.1.422 1.649 1.266 1.649.307 0 .817-.262 1.533-.786.716-.523 1.924-1.534 3.624-3.029a350.869 350.869 0 0 1 4.582-3.969c.996-.868 2.152-2.166 3.469-3.892s2.385-3.022 3.203-3.892c1.891-1.994 3.182-3.291 3.873-3.892.689-.601 1.354-.901 1.992-.901.615 0 1.029.191 1.246.575.217.383.326 1.163.326 2.339 0 .537-.051.972-.152 1.304-.104.332-.314.761-.633 1.284-.32.524-.965 1.489-1.938 2.896-.971 1.405-2.121 3.067-3.449 4.984a19.583 19.583 0 0 0-1.879 3.354c-.537 1.215-.807 2.129-.807 2.742 0 1.329.523 1.993 1.572 1.993.869 0 1.879-.357 3.029-1.073 1.15-.715 2.914-2.007 5.291-3.873v2.569c-2.99 2.761-5.201 4.768-6.633 6.02-1.432 1.253-2.672 2.199-3.719 2.838-1.049.64-2.045.959-2.99.959-2.148 0-3.223-1.278-3.223-3.835 0-.971.32-2.281.959-3.93.641-1.647 1.676-4.03 3.108-7.149z"}),o.a.createElement("path",{style:l.svg,d:"M336.559 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.412-.626-1.783-1.035-.37-.408-.556-1.021-.556-1.84 0-.921.384-2.083 1.15-3.489s1.712-2.723 2.838-3.949c1.124-1.228 2.146-2.02 3.067-2.378a2.306 2.306 0 0 1 1.035-.269c.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.61s.422 1.688.422 2.531c0 .536-.236 1.118-.709 1.744-.474.627-1.284 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.278-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.409-1.073-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.554 56.554 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.885 6.048-6.901 8.629zM422.524 27.473l1.188 1.188c-2.096 2.634-3.93 4.551-5.502 5.752-1.572 1.202-2.729 1.802-3.47 1.802-.613 0-.921-.549-.921-1.648 0-2.735 1.803-6.953 5.407-12.653 3.041-4.933 4.563-7.682 4.563-8.244 0-.485-.205-.729-.613-.729-.716 0-2.519 1.61-5.406 4.832-2.89 3.221-6.455 7.771-10.698 13.649-4.806 6.545-8.104 11.223-9.893 14.034 3.399.332 6.192.761 8.378 1.284 2.186.524 5.355 1.375 9.51 2.55 4.153 1.176 7.214 1.866 9.183 2.07-2.403 2.736-4.059 4.596-4.966 5.579-.907.984-1.604 1.578-2.089 1.783-.768.332-1.905.352-3.413.058-1.509-.294-3.898-.863-7.17-1.706a163.669 163.669 0 0 0-9.184-2.109c-2.851-.562-5.451-.844-7.803-.844-1.329 0-2.473.153-3.432.461-.958.307-2.288.812-3.987 1.514-1.7.703-2.896 1.055-3.585 1.055-.997 0-1.496-.409-1.496-1.227 0-.46.167-.984.499-1.572a291.25 291.25 0 0 1 2.454-3.873c.792-1.227 1.635-2.186 2.53-2.875.895-.69 2.186-1.228 3.873-1.61 1.687-.384 3.91-.588 6.671-.614 4.167-6.39 8.053-12.059 11.657-17.005 3.604-4.946 6.882-9.119 9.835-12.52 2.952-3.399 5.54-5.975 7.764-7.726 2.225-1.751 3.988-2.627 5.292-2.627.92 0 1.636.256 2.147.768.511.511.767 1.227.767 2.146.001 3.067-2.697 9.42-8.09 19.057zM434.717 45.839v.959c0 1.509.371 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339s2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.995-2.53 1.853-5.1 2.779-7.707 2.779-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.298-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.63-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824s1.055 1.374 1.055 2.474c0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.502 3.087-9.107 4.544zm.384-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.328 2.843-2.601 3.623-3.814.779-1.214 1.17-2.103 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882s-2.084 1.355-3.145 2.301-2.013 2.058-2.856 3.336a10.777 10.777 0 0 0-1.648 4.178z"}),o.a.createElement("path",{style:l.svg,d:"M464.971 24.559h1.648c1.354-2.428 2.582-4.146 3.681-5.157 1.099-1.009 2.352-1.515 3.758-1.515 1.405 0 2.109.32 2.109.959 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.102 1.643.191 2.32.268.677.077 1.207.142 1.591.192-1.457 2.71-3.285 5.482-5.483 8.32-.716-.051-1.316-.096-1.802-.135l-1.477-.114c-.498-.039-1.105-.083-1.821-.135-1.38 2.225-2.537 4.212-3.47 5.963-.934 1.751-1.648 3.354-2.147 4.812-.498 1.457-.747 2.838-.747 4.142 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553s3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.234-15.299 11.234-1.15 0-2.077-.447-2.78-1.342s-1.055-2.045-1.055-3.451c0-.945.198-2.07.595-3.374.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.306.269-.613.544-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.078c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.091-.454.135-.556.135-.103 0-.153-.077-.153-.23 0-.843.523-2.108 1.572-3.796.844-1.431 1.642-2.492 2.396-3.183.754-.689 1.674-1.156 2.761-1.399 1.086-.242 2.613-.364 4.582-.364z"}),o.a.createElement("path",{style:l.svg,d:"M484.603 24.559h1.648c1.354-2.428 2.582-4.146 3.681-5.157 1.099-1.009 2.352-1.515 3.758-1.515 1.405 0 2.109.32 2.109.959 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.102 1.643.191 2.32.268.677.077 1.207.142 1.591.192-1.457 2.71-3.285 5.482-5.483 8.32-.716-.051-1.316-.096-1.802-.135l-1.477-.114c-.498-.039-1.105-.083-1.821-.135-1.38 2.225-2.537 4.212-3.47 5.963-.934 1.751-1.648 3.354-2.147 4.812-.498 1.457-.747 2.838-.747 4.142 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553s3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.234-15.299 11.234-1.15 0-2.077-.447-2.78-1.342s-1.055-2.045-1.055-3.451c0-.945.198-2.07.595-3.374.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.306.269-.613.544-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.078c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.091-.454.135-.556.135-.103 0-.153-.077-.153-.23 0-.843.523-2.108 1.572-3.796.844-1.431 1.642-2.492 2.396-3.183.754-.689 1.674-1.156 2.761-1.399 1.086-.242 2.613-.364 4.582-.364z"}),o.a.createElement("path",{style:l.svg,d:"M496.91 45.839v.959c0 1.509.371 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339s2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.995-2.53 1.853-5.1 2.779-7.707 2.779-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.298-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.63-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824s1.055 1.374 1.055 2.474c0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.503 3.087-9.107 4.544zm.383-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.328 2.843-2.601 3.623-3.814.779-1.214 1.17-2.103 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882s-2.084 1.355-3.145 2.301-2.013 2.058-2.856 3.336a10.777 10.777 0 0 0-1.648 4.178z"}),o.a.createElement("path",{style:l.svg,d:"M513.322 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.412-.626-1.783-1.035-.37-.408-.556-1.021-.556-1.84 0-.921.384-2.083 1.15-3.489s1.712-2.723 2.838-3.949c1.124-1.228 2.146-2.02 3.067-2.378a2.306 2.306 0 0 1 1.035-.269c.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.61s.422 1.688.422 2.531c0 .536-.236 1.118-.709 1.744-.474.627-1.284 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.278-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.409-1.073-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.554 56.554 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.886 6.048-6.901 8.629z"})))),o.a.createElement("div",{className:"envelope"},o.a.createElement("div",{className:"envelope-inner"},o.a.createElement(s.j,null,o.a.createElement(s.k,{disabled:!0},o.a.createElement(i.a,{opacity:[0,1],translateY:"1em",delay:400,elasticity:400},o.a.createElement("input",{tabIndex:"-1",disabled:!0,className:"form-control",type:"email",name:"email",id:"email",placeholder:"Email Address"}))),o.a.createElement(s.k,{disabled:!0},o.a.createElement(i.a,{opacity:[0,1],translateY:"1em",delay:600,elasticity:600},o.a.createElement("input",{tabIndex:"-1",disabled:!0,className:"form-control",type:"postalCode",name:"postalCode",id:"postalCode",placeholder:"Postal Code"}))),o.a.createElement(i.a,{opacity:[0,1],translateY:"2em",delay:900,elasticity:700,complete:function(e){return t(e)}},o.a.createElement("button",{className:"btn btn-danger btn-block",disabled:!0,tabIndex:"-1"},"Send Your Love Letter"))))),o.a.createElement("div",{className:"envelope-disclaimer"},o.a.createElement("p",null,o.a.createElement("strong",null,"This advocacy tool is brought to you by Other98, Stand.earth, Daily Kos, SumOfUs, Friends of the Earth US, 198 Methods, Native Organizer's Alliance, People's Action, Oil Change International and Greenpeace USA.")),o.a.createElement("p",null,"By sending your valentine, you agree to receive email updates on this and other important climate campaigns from one or more of the above participating organizations. You can, of course, opt out of receiving these updates at any time."))))};t.a=c},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(7),i=function(e){var t=function(t){e.handleClick(t.target.name)},n=function(t){e.handleChange(t.target.name,t.target.value)},r=function(t){t.preventDefault(),e.handleSubmit()},i={svg:{fillOpacity:1,fill:"white",stroke:"white",strokeWidth:1,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}};return o.a.createElement("div",null,o.a.createElement(a.l,null,o.a.createElement(a.h,{sm:"12",className:"envelope-container"},o.a.createElement("div",{className:"componentTitle"},o.a.createElement("svg",{width:"100%",height:"3em",viewBox:"0 0 542.54 79.383"},o.a.createElement("path",{style:i.svg,d:"M45.074 40.739c-3.068.103-5.317.153-6.749.153-2.199 0-5.241-.051-9.126-.153-.818.896-1.815 1.95-2.991 3.164s-2.288 2.339-3.336 3.374a364.11 364.11 0 0 1-2.703 2.646c-.754.729-1.374 1.336-1.859 1.821a1758.809 1758.809 0 0 0-5.541 5.406 22.578 22.578 0 0 1-2.704 2.281c-.945.678-1.814 1.017-2.607 1.017-.895 0-1.342-.409-1.342-1.228 0-.895.639-2.275 1.917-4.141 1.279-1.865 2.723-3.515 4.333-4.946s2.927-2.147 3.949-2.147c.281 0 .677.129 1.189.384l7.285-7.784c-.92-.127-2.122-.211-3.604-.249-1.483-.038-2.479-.146-2.991-.326-.512-.178-.767-.613-.767-1.304 0-1.099 1.175-2.824 3.527-5.176 1.278-1.304 2.479-2.134 3.604-2.492 1.125-.357 3.271-.55 6.441-.575-1.866.256-3.189.556-3.968.901-.78.345-1.208.862-1.285 1.553h2.051c.626 0 1.444-.006 2.454-.02a59.136 59.136 0 0 0 2.243-.058c4.192-4.09 8-7.649 11.426-10.679a135.94 135.94 0 0 1 10.832-8.627 105.601 105.601 0 0 1 12.135-7.496c.844 1.1 1.266 2.25 1.266 3.451 0 .997-.326 2.146-.978 3.45s-2.032 3.752-4.141 7.343a350.406 350.406 0 0 0-6.422 11.446c.715 0 1.31.006 1.783.019.473.014.978.032 1.515.058 1.457 0 2.345.025 2.665.077.319.051.479.307.479.767 0 .205-.198.569-.594 1.093-.397.524-1.093 1.394-2.09 2.607s-1.969 2.447-2.914 3.7l-5.637.46c-2.991 5.624-4.486 8.794-4.486 9.509 0 1.049.549 1.572 1.648 1.572.537 0 2.761-1.125 6.672-3.374l-.307 2.032a440.736 440.736 0 0 0-4.889 3.738 77.824 77.824 0 0 1-3.029 2.263c-.857.6-1.636 1.048-2.339 1.342a5.496 5.496 0 0 1-2.128.44c-.844 0-1.675-.39-2.493-1.169-.818-.779-1.227-1.885-1.227-3.317 0-.587.217-1.424.652-2.511s.901-2.128 1.4-3.125 1.761-3.386 3.781-7.17zm-7.247-8.703l12.423-.23c1.457-2.479 2.639-4.486 3.546-6.02a665.076 665.076 0 0 1 2.991-5.004 372.746 372.746 0 0 1 2.799-4.582 271.879 271.879 0 0 0 2.588-4.256 91.686 91.686 0 0 0-5.637 3.834c-1.917 1.406-4.078 3.1-6.48 5.08a172.515 172.515 0 0 0-6.403 5.521 138.838 138.838 0 0 0-5.827 5.657zM78.892 44.536c-2.25 2.556-4.263 4.729-6.039 6.518-1.777 1.79-3.221 3.125-4.333 4.007-1.112.882-1.873 1.323-2.282 1.323-.665 0-1.413-.537-2.243-1.61-.831-1.073-1.541-2.44-2.128-4.103a15.076 15.076 0 0 1-.882-5.062c0-2.479 1.201-4.979 3.604-7.496a33.02 33.02 0 0 1 8.205-6.27c3.068-1.661 5.368-2.492 6.902-2.492 1.252 0 2.479.793 3.681 2.378 1.968-4.116 3.84-7.771 5.617-10.967 1.776-3.195 3.265-5.572 4.467-7.132 1.201-1.559 2.057-2.339 2.569-2.339.562 0 1.08.275 1.553.824.473.55.709 1.17.709 1.86 0 1.329-.972 3.61-2.914 6.844a974.632 974.632 0 0 1-5.751 9.452c-1.892 3.067-3.515 6.09-4.87 9.067-1.355 2.979-2.032 5.732-2.032 8.264 0 2.3.741 3.45 2.224 3.45.894 0 2.019-.504 3.374-1.515 1.354-1.009 3.284-2.703 5.79-5.08v2.799c-5.521 7.132-9.777 10.698-12.768 10.698-1.202 0-2.064-.46-2.588-1.381-.524-.92-.786-2.287-.786-4.103.001-2.451.308-5.097.921-7.934zm2.837-9.356c-2.275.768-4.946 2.001-8.014 3.7-3.067 1.7-4.921 2.87-5.56 3.509-.563.512-1.061 1.47-1.496 2.876-.435 1.405-.652 2.467-.652 3.182 0 .436.128.793.383 1.074s.575.422.959.422c.357 0 .767-.153 1.227-.46.46-.308 1.194-.907 2.205-1.803 1.009-.895 1.668-1.47 1.975-1.726a241.83 241.83 0 0 1 2.895-2.473c1.495-1.266 2.588-2.256 3.278-2.972a11.307 11.307 0 0 0 1.764-2.396 9.808 9.808 0 0 0 1.036-2.933z"}),o.a.createElement("path",{style:i.svg,d:"M111.637 44.536c-2.25 2.556-4.263 4.729-6.039 6.518-1.777 1.79-3.221 3.125-4.333 4.007-1.112.882-1.873 1.323-2.282 1.323-.665 0-1.413-.537-2.243-1.61-.831-1.073-1.541-2.44-2.128-4.103a15.076 15.076 0 0 1-.882-5.062c0-2.479 1.201-4.979 3.604-7.496a33.02 33.02 0 0 1 8.205-6.27c3.068-1.661 5.368-2.492 6.902-2.492 1.252 0 2.479.793 3.681 2.378 1.968-4.116 3.84-7.771 5.617-10.967 1.776-3.195 3.265-5.572 4.467-7.132 1.201-1.559 2.057-2.339 2.569-2.339.562 0 1.08.275 1.553.824.473.55.709 1.17.709 1.86 0 1.329-.972 3.61-2.914 6.844a974.632 974.632 0 0 1-5.751 9.452c-1.892 3.067-3.515 6.09-4.87 9.067-1.355 2.979-2.032 5.732-2.032 8.264 0 2.3.741 3.45 2.224 3.45.894 0 2.019-.504 3.374-1.515 1.354-1.009 3.284-2.703 5.79-5.08v2.799c-5.521 7.132-9.777 10.698-12.768 10.698-1.202 0-2.064-.46-2.588-1.381-.524-.92-.786-2.287-.786-4.103.001-2.451.308-5.097.921-7.934zm2.838-9.356c-2.275.768-4.946 2.001-8.014 3.7-3.067 1.7-4.921 2.87-5.56 3.509-.563.512-1.061 1.47-1.496 2.876-.435 1.405-.652 2.467-.652 3.182 0 .436.128.793.383 1.074s.575.422.959.422c.357 0 .767-.153 1.227-.46.46-.308 1.194-.907 2.205-1.803 1.009-.895 1.668-1.47 1.975-1.726a241.83 241.83 0 0 1 2.895-2.473c1.495-1.266 2.588-2.256 3.278-2.972a11.307 11.307 0 0 0 1.764-2.396 9.863 9.863 0 0 0 1.036-2.933z"}),o.a.createElement("path",{style:i.svg,d:"M126.476 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.413-.626-1.783-1.035-.371-.408-.556-1.021-.556-1.84 0-.921.383-2.083 1.15-3.489s1.712-2.723 2.837-3.949c1.125-1.228 2.147-2.02 3.067-2.378.358-.179.703-.269 1.035-.269.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.61.281.844.421 1.688.421 2.531 0 .536-.236 1.118-.709 1.744-.474.627-1.285 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.38 1.278-2.659 2.295-3.834 3.049-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.477-.716-.983-1.074-2.409-1.074-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.149 56.149 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.885 6.048-6.901 8.629z"}),o.a.createElement("path",{style:i.svg,d:"M155.924 45.839v.959c0 1.509.37 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.972 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.995-2.531 1.853-5.1 2.779-7.707 2.779-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.297-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.629-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824.703.55 1.054 1.374 1.054 2.474 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.573-5.503 3.087-9.107 4.544zm.383-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.328 2.843-2.601 3.624-3.814.779-1.214 1.169-2.103 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882s-2.083 1.355-3.144 2.301a16.887 16.887 0 0 0-2.856 3.336 10.75 10.75 0 0 0-1.65 4.178z"}),o.a.createElement("path",{style:i.svg,d:"M172.564 45.532v-.92c6.595-6.953 11.132-11.822 13.612-14.608.562-3.145 1.917-4.717 4.064-4.717.537 0 1.112.153 1.726.46l.23.729c-.103.308-.153.742-.153 1.304 0 .486.185 1.388.556 2.703.37 1.317.658 2.423.863 3.317.204.895.307 1.904.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.636 4.352c.92.153 1.648.23 2.186.23 1.048 0 2.179-.262 3.393-.786 1.214-.523 2.454-1.227 3.719-2.108 1.266-.883 2.742-2.026 4.429-3.433v2.569c-3.272 3.195-6.199 5.617-8.78 7.267-2.583 1.648-4.806 2.473-6.672 2.473-2.403 0-4.627-1.022-6.672-3.067-1.202-1.227-1.949-2.402-2.243-3.527s-.443-2.647-.443-4.565zm14.303-5.866l-.69-5.598c-1.585 1.789-4.972 5.228-10.161 10.313 1.534.333 2.582.78 3.144 1.343.562.563 1.354 1.648 2.377 3.259 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08 0-.255-.007-.485-.019-.69a10.658 10.658 0 0 0-.057-.613z"}),o.a.createElement("path",{style:i.svg,d:"M197.066 45.532v-.92c6.595-6.953 11.132-11.822 13.612-14.608.562-3.145 1.917-4.717 4.064-4.717.537 0 1.112.153 1.726.46l.23.729c-.103.308-.153.742-.153 1.304 0 .486.185 1.388.556 2.703.37 1.317.658 2.423.863 3.317.204.895.307 1.904.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.636 4.352c.92.153 1.648.23 2.186.23 1.048 0 2.179-.262 3.393-.786 1.214-.523 2.454-1.227 3.719-2.108 1.266-.883 2.742-2.026 4.429-3.433v2.569c-3.272 3.195-6.199 5.617-8.78 7.267-2.583 1.648-4.806 2.473-6.672 2.473-2.403 0-4.627-1.022-6.672-3.067-1.202-1.227-1.949-2.402-2.243-3.527s-.443-2.647-.443-4.565zm14.302-5.866l-.69-5.598c-1.585 1.789-4.972 5.228-10.161 10.313 1.534.333 2.582.78 3.144 1.343.562.563 1.354 1.648 2.377 3.259 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08a9.833 9.833 0 0 0-.076-1.303zM238.132 29.851l.69-4.486c.23-1.534.64-2.786 1.227-3.758.588-.972 1.617-2.038 3.087-3.202 1.47-1.162 3.751-2.817 6.844-4.965 7.438-5.189 13.229-7.784 17.37-7.784 1.252 0 2.141.256 2.665.768s.786 1.405.786 2.684c0 .896-.339 2.122-1.016 3.681-.678 1.56-1.917 4.026-3.719 7.4s-3.394 6.403-4.774 9.088a152.386 152.386 0 0 1-3.834 6.997c-1.432 2.468-2.391 4.16-2.876 5.081-.486.92-.729 1.61-.729 2.07 0 .512.166.952.499 1.322.332.371.741.557 1.227.557.664 0 1.412-.357 2.243-1.074.83-.715 2.46-2.262 4.889-4.639 1.175-1.176 2.435-2.569 3.777-4.18 1.342-1.61 3.01-3.681 5.003-6.212a1230.3 1230.3 0 0 0 5.522-7.055 639.024 639.024 0 0 1 2.837-3.643c.844-1.074 1.565-1.898 2.167-2.474.6-.575 1.079-.862 1.438-.862.307 0 .805.383 1.495 1.15l.921 1.188c.689.972 1.035 1.674 1.035 2.108 0 .512-.953 2.384-2.857 5.617a496.046 496.046 0 0 0-4.85 8.397c-1.33 2.365-3.049 5.777-5.157 10.237-2.108 4.461-4.135 9.414-6.078 14.858 5.189-3.911 8.743-6.524 10.659-7.841 1.918-1.316 3.311-1.975 4.18-1.975.588 0 .883.243.883.729 0 .536-.282 1.233-.844 2.089-.563.857-1.316 1.803-2.263 2.838s-2.371 2.53-4.274 4.486a1280.23 1280.23 0 0 1-6.231 6.346c-1.38 1.405-2.722 3.042-4.026 4.908l-3.029 4.332c-.716 1.022-1.368 1.61-1.956 1.764-.869.256-1.662.064-2.377-.574-.716-.64-1.073-1.649-1.073-3.029 0-.972.492-2.979 1.476-6.021s2.473-6.825 4.467-11.35c1.176-2.709 2.377-5.271 3.604-7.688s2.639-5.074 4.237-7.976c1.597-2.9 3.164-5.655 4.698-8.263 1.533-2.607 2.837-4.831 3.91-6.672-2.557 3.35-5.094 6.602-7.611 9.759s-5.329 6.479-8.435 9.969-6.244 6.755-9.413 9.797c-1.38 1.304-2.372 2.191-2.972 2.665-.601.473-1.387.709-2.358.709-.613 0-1.208-.211-1.783-.633s-1.055-.971-1.438-1.648c-.383-.677-.575-1.335-.575-1.975 0-1.073.159-2.02.479-2.838.319-.817.875-2.044 1.668-3.681 3.476-7.029 6.006-11.848 7.592-14.455 5.675-9.101 8.512-14.2 8.512-15.299 0-.358-.128-.646-.383-.863-.256-.217-.575-.326-.958-.326-.716 0-1.572.313-2.569.939-.997.627-2.25 1.554-3.757 2.78a587.519 587.519 0 0 1-5.502 4.409 93.155 93.155 0 0 1-6.806 4.908 93.795 93.795 0 0 0-3.202 2.186c-1.188.844-1.872 1.266-2.051 1.266-.357 0-.537-.179-.537-.537-.004-.328.073-1.031.226-2.104z"}),o.a.createElement("path",{style:i.svg,d:"M306.805 44.382v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.716-4.41.613-3.322 3.938-6.25 5.905-8.78 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.872s-1.055-3.464-1.055-5.483c0-1.636.543-3.451 1.631-5.444 1.086-1.994 2.492-3.854 4.217-5.579 1.726-1.726 3.572-3.119 5.541-4.18 1.968-1.061 3.796-1.591 5.482-1.591 1.201 0 2.148.186 2.838.556.69.371 1.035.889 1.035 1.553 0 .512-.294 1.1-.882 1.764.972.205 1.636.544 1.994 1.017.357.473.536 1.336.536 2.588 0 1.227-.287 2.773-.862 4.64s-1.361 3.617-2.358 5.253l.69.69h.575a2.77 2.77 0 0 0 1.285-.326 8.538 8.538 0 0 0 1.131-.69c.332-.243 1.06-.787 2.185-1.631zm-7.898-10.084c-2.123 1.278-3.938 2.435-5.445 3.471-1.509 1.035-2.787 2.083-3.834 3.144-1.049 1.062-1.752 2.128-2.109 3.202-.639 2.863-.959 4.409-.959 4.64 0 1.687 1.176 2.53 3.528 2.53 1.099 0 2.938-.945 5.521-2.838-.434-1.201-.651-2.352-.651-3.45 0-1.61.332-3.253.997-4.928.663-1.674 1.647-3.598 2.952-5.771z"}),o.a.createElement("path",{style:i.svg,d:"M324.787 41.852c-3.705 4.908-6.523 8.397-8.454 10.468-1.93 2.07-3.508 3.105-4.735 3.105-.972 0-1.866-.402-2.685-1.207-.818-.806-1.45-1.892-1.897-3.26-.447-1.367-.671-2.831-.671-4.391 0-1.021.096-1.941.287-2.76.192-.818.557-1.72 1.094-2.704.537-.983 1.246-2.051 2.127-3.201a79.543 79.543 0 0 1 3.24-3.911l1.938-2.262c.523-.614 1.035-1.029 1.533-1.247.498-.217 1.31-.325 2.435-.325.818 0 1.598.108 2.34.325.74.218 1.111.441 1.111.672 0 .46-.377 1.291-1.131 2.492s-1.969 2.665-3.643 4.39c-1.675 1.726-3.611 3.42-5.81 5.081-.486 1.509-.729 2.658-.729 3.45 0 1.1.422 1.649 1.266 1.649.307 0 .817-.262 1.533-.786.716-.523 1.924-1.534 3.624-3.029a350.869 350.869 0 0 1 4.582-3.969c.996-.868 2.152-2.166 3.469-3.892s2.385-3.022 3.203-3.892c1.891-1.994 3.182-3.291 3.873-3.892.689-.601 1.354-.901 1.992-.901.615 0 1.029.191 1.246.575.217.383.326 1.163.326 2.339 0 .537-.051.972-.152 1.304-.104.332-.314.761-.633 1.284-.32.524-.965 1.489-1.938 2.896-.971 1.405-2.121 3.067-3.449 4.984a19.583 19.583 0 0 0-1.879 3.354c-.537 1.215-.807 2.129-.807 2.742 0 1.329.523 1.993 1.572 1.993.869 0 1.879-.357 3.029-1.073 1.15-.715 2.914-2.007 5.291-3.873v2.569c-2.99 2.761-5.201 4.768-6.633 6.02-1.432 1.253-2.672 2.199-3.719 2.838-1.049.64-2.045.959-2.99.959-2.148 0-3.223-1.278-3.223-3.835 0-.971.32-2.281.959-3.93.641-1.647 1.676-4.03 3.108-7.149z"}),o.a.createElement("path",{style:i.svg,d:"M336.559 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.412-.626-1.783-1.035-.37-.408-.556-1.021-.556-1.84 0-.921.384-2.083 1.15-3.489s1.712-2.723 2.838-3.949c1.124-1.228 2.146-2.02 3.067-2.378a2.306 2.306 0 0 1 1.035-.269c.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.61s.422 1.688.422 2.531c0 .536-.236 1.118-.709 1.744-.474.627-1.284 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.278-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.409-1.073-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.554 56.554 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.885 6.048-6.901 8.629zM422.524 27.473l1.188 1.188c-2.096 2.634-3.93 4.551-5.502 5.752-1.572 1.202-2.729 1.802-3.47 1.802-.613 0-.921-.549-.921-1.648 0-2.735 1.803-6.953 5.407-12.653 3.041-4.933 4.563-7.682 4.563-8.244 0-.485-.205-.729-.613-.729-.716 0-2.519 1.61-5.406 4.832-2.89 3.221-6.455 7.771-10.698 13.649-4.806 6.545-8.104 11.223-9.893 14.034 3.399.332 6.192.761 8.378 1.284 2.186.524 5.355 1.375 9.51 2.55 4.153 1.176 7.214 1.866 9.183 2.07-2.403 2.736-4.059 4.596-4.966 5.579-.907.984-1.604 1.578-2.089 1.783-.768.332-1.905.352-3.413.058-1.509-.294-3.898-.863-7.17-1.706a163.669 163.669 0 0 0-9.184-2.109c-2.851-.562-5.451-.844-7.803-.844-1.329 0-2.473.153-3.432.461-.958.307-2.288.812-3.987 1.514-1.7.703-2.896 1.055-3.585 1.055-.997 0-1.496-.409-1.496-1.227 0-.46.167-.984.499-1.572a291.25 291.25 0 0 1 2.454-3.873c.792-1.227 1.635-2.186 2.53-2.875.895-.69 2.186-1.228 3.873-1.61 1.687-.384 3.91-.588 6.671-.614 4.167-6.39 8.053-12.059 11.657-17.005 3.604-4.946 6.882-9.119 9.835-12.52 2.952-3.399 5.54-5.975 7.764-7.726 2.225-1.751 3.988-2.627 5.292-2.627.92 0 1.636.256 2.147.768.511.511.767 1.227.767 2.146.001 3.067-2.697 9.42-8.09 19.057zM434.717 45.839v.959c0 1.509.371 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339s2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.995-2.53 1.853-5.1 2.779-7.707 2.779-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.298-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.63-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824s1.055 1.374 1.055 2.474c0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.502 3.087-9.107 4.544zm.384-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.328 2.843-2.601 3.623-3.814.779-1.214 1.17-2.103 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882s-2.084 1.355-3.145 2.301-2.013 2.058-2.856 3.336a10.777 10.777 0 0 0-1.648 4.178z"}),o.a.createElement("path",{style:i.svg,d:"M464.971 24.559h1.648c1.354-2.428 2.582-4.146 3.681-5.157 1.099-1.009 2.352-1.515 3.758-1.515 1.405 0 2.109.32 2.109.959 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.102 1.643.191 2.32.268.677.077 1.207.142 1.591.192-1.457 2.71-3.285 5.482-5.483 8.32-.716-.051-1.316-.096-1.802-.135l-1.477-.114c-.498-.039-1.105-.083-1.821-.135-1.38 2.225-2.537 4.212-3.47 5.963-.934 1.751-1.648 3.354-2.147 4.812-.498 1.457-.747 2.838-.747 4.142 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553s3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.234-15.299 11.234-1.15 0-2.077-.447-2.78-1.342s-1.055-2.045-1.055-3.451c0-.945.198-2.07.595-3.374.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.306.269-.613.544-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.078c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.091-.454.135-.556.135-.103 0-.153-.077-.153-.23 0-.843.523-2.108 1.572-3.796.844-1.431 1.642-2.492 2.396-3.183.754-.689 1.674-1.156 2.761-1.399 1.086-.242 2.613-.364 4.582-.364z"}),o.a.createElement("path",{style:i.svg,d:"M484.603 24.559h1.648c1.354-2.428 2.582-4.146 3.681-5.157 1.099-1.009 2.352-1.515 3.758-1.515 1.405 0 2.109.32 2.109.959 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.102 1.643.191 2.32.268.677.077 1.207.142 1.591.192-1.457 2.71-3.285 5.482-5.483 8.32-.716-.051-1.316-.096-1.802-.135l-1.477-.114c-.498-.039-1.105-.083-1.821-.135-1.38 2.225-2.537 4.212-3.47 5.963-.934 1.751-1.648 3.354-2.147 4.812-.498 1.457-.747 2.838-.747 4.142 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553s3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.234-15.299 11.234-1.15 0-2.077-.447-2.78-1.342s-1.055-2.045-1.055-3.451c0-.945.198-2.07.595-3.374.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.306.269-.613.544-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.078c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.091-.454.135-.556.135-.103 0-.153-.077-.153-.23 0-.843.523-2.108 1.572-3.796.844-1.431 1.642-2.492 2.396-3.183.754-.689 1.674-1.156 2.761-1.399 1.086-.242 2.613-.364 4.582-.364z"}),o.a.createElement("path",{style:i.svg,d:"M496.91 45.839v.959c0 1.509.371 2.685 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.294 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339s2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.995-2.53 1.853-5.1 2.779-7.707 2.779-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.684.626-5.119 1.879-7.305 1.252-2.186 3.298-4.492 6.135-6.921 1.942-1.661 3.873-2.914 5.79-3.757 1.917-.844 3.63-1.266 5.138-1.266 1.201 0 2.153.274 2.856.824s1.055 1.374 1.055 2.474c0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.503 3.087-9.107 4.544zm.383-2.492c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.328 2.843-2.601 3.623-3.814.779-1.214 1.17-2.103 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882s-2.084 1.355-3.145 2.301-2.013 2.058-2.856 3.336a10.777 10.777 0 0 0-1.648 4.178z"}),o.a.createElement("path",{style:i.svg,d:"M513.322 47.411v-2.492c1.38-1.636 2.428-3.029 3.144-4.18-.818-.28-1.412-.626-1.783-1.035-.37-.408-.556-1.021-.556-1.84 0-.921.384-2.083 1.15-3.489s1.712-2.723 2.838-3.949c1.124-1.228 2.146-2.02 3.067-2.378a2.306 2.306 0 0 1 1.035-.269c.511 0 .767.243.767.729 0 .436-.396 1.317-1.188 2.646 5.266-.818 8.589-1.228 9.969-1.228.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.61s.422 1.688.422 2.531c0 .536-.236 1.118-.709 1.744-.474.627-1.284 1.54-2.435 2.741a22.874 22.874 0 0 0-3.413 4.755c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.278-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.409-1.073-4.275 0-1.099.281-2.352.844-3.757.562-1.406 1.386-2.934 2.473-4.582a56.554 56.554 0 0 1 3.662-4.928c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.18-1.764.32-2.301.422-1.585 3.172-3.886 6.048-6.901 8.629z"}))),o.a.createElement("div",{className:"envelope envelope-form"},o.a.createElement("div",{className:"envelope-inner"},!(0===e.advocacyError)&&o.a.createElement(a.a,{color:"danger"},"There was a problem submitting your valentine. Can you be a sweetheart and try again?"),o.a.createElement(a.j,{onSubmit:r},o.a.createElement(a.k,null,o.a.createElement("input",{className:"form-control",type:"email",name:"email",id:"email",placeholder:"Email Address",value:e.email,onClick:t,onChange:n})),o.a.createElement(a.k,null,o.a.createElement("input",{className:"form-control",type:"postalCode",name:"postalCode",id:"postalCode",placeholder:"Postal Code",value:e.postalCode,onClick:t,onChange:n})),o.a.createElement("button",{className:"btn btn-danger btn-block"},"Send Your Love Letter")))),o.a.createElement("div",{className:"envelope-disclaimer"},o.a.createElement("p",null,o.a.createElement("strong",null,"This advocacy tool is brought to you by Other98, Stand.earth, Daily Kos, SumOfUs, Friends of the Earth US, 198 Methods, Native Organizer's Alliance, People's Action, Oil Change International and Greenpeace USA.")),o.a.createElement("p",null,"By sending your valentine, you agree to receive email updates on this and other important climate campaigns from one or more of the above participating organizations. You can, of course, opt out of receiving these updates at any time.")))))};t.a=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(55),u=(n.n(c),n(56)),p=n.n(u),f=n(14),d=n(7),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.levelOne=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/1000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){a.props.completedContribution(e.body.amount)})},a.levelTwo=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/2500",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){a.props.completedContribution(e.body.amount)})},a.levelThree=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/5000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){a.props.completedContribution(e.body.amount)})},a.levelFour=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/50000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){a.props.completedContribution(e.body.amount)})},a.levelFive=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/500000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){a.props.completedContribution(e.body.amount)})},i=n,o(a,i)}return a(t,e),h(t,[{key:"render",value:function(){var e=!1;return this.props.contributionTotal>0&&(e=!0),s.a.createElement(d.l,null,s.a.createElement(d.h,{id:"thank-you"},s.a.createElement("div",{className:"thank-you-transition"},s.a.createElement("h1",{className:"thank-you-heading"},"Your letter is in the mail!"),s.a.createElement("p",{className:"thank-you-note"},"Wanna go even further?")),s.a.createElement(d.l,null,s.a.createElement(d.h,{xs:"12",lg:"7"},s.a.createElement("div",{className:"justin-video"},s.a.createElement(p.a,{url:n(63),controls:!0,fileConfig:{attributes:{poster:"https://dearestjustin.org/share.png"}},width:"100%",height:"100%"}))),s.a.createElement(d.h,{xs:"12",lg:"5",className:"justin-header"},s.a.createElement(d.b,{color:"primary",pill:!0},"Open Campaign"),s.a.createElement("h2",null,"Help us get this outrageous video love letter from America on Justin\u2019s TV set in Canada"),s.a.createElement("hr",null),s.a.createElement("p",null,"Who knew how cheap it was to buy airtime in Canada? For the mere price of a fancy dinner for two (a $14,000 dinner) we can play our video valentine during SNL & Colbert in the Ottawa market."),e&&s.a.createElement("h4",null,s.a.createElement("span",{className:"badge badge-primary"},s.a.createElement("strong",null,"$",this.props.contributionTotal," USD raised"))))),s.a.createElement(d.l,null,s.a.createElement(d.h,{xs:"12",md:"5",className:"order-md-2"},s.a.createElement("h3",null,"Donation Levels"),s.a.createElement("hr",null),s.a.createElement(d.c,null,s.a.createElement(d.d,null,s.a.createElement(d.g,null,"$10 USD"),s.a.createElement(d.e,null,"Contributor Level"),s.a.createElement(d.f,null,"Donate $10 towards getting our ad onto the airwaves and we'll send you a whole mess of good vibes, on the house! (You're probably already swimming in them)"),s.a.createElement("button",{className:"btn btn-primary disabled"},"Contribute $10"))),s.a.createElement(d.c,null,s.a.createElement(d.d,null,s.a.createElement(d.g,null,"$25 USD"),s.a.createElement(d.e,null,"Activist Level"),s.a.createElement(d.f,null,"Donate $25 and then when Trudeau dismisses this pipeline wholesale you can give yourself a big ol' pat-on-the-back. It was probably your $25 that got the ad in front of him. No doubt."),s.a.createElement("button",{className:"btn btn-primary disabled"},"Contribute $25"))),s.a.createElement(d.c,null,s.a.createElement(d.d,null,s.a.createElement(d.g,null,"$50 USD"),s.a.createElement(d.e,null,"Tastemaker Level"),s.a.createElement(d.f,null,"Donate $50 and sleep soundly knowing that you are a creator of culture, not just a consumer of it. By the way, do you have any film recommendations? Our Netflix queues are getting pretty dry."),s.a.createElement("button",{className:"btn btn-primary disabled"},"Contribute $50"))),s.a.createElement(d.c,null,s.a.createElement(d.d,null,s.a.createElement(d.g,null,"$500 USD"),s.a.createElement(d.e,null,"Producer Level"),s.a.createElement(d.f,null,"Donate $500 and be able to brag to your friends that you're kind of a big deal TV producer these days. If you want to use as a reference, you can have any of the major film or television studios in North America contact us and we'll confirm it with them."),s.a.createElement("button",{className:"btn btn-primary disabled"},"Contribute $500"))),s.a.createElement(d.c,null,s.a.createElement(d.d,null,s.a.createElement(d.g,null,"$5000 USD"),s.a.createElement(d.e,null,"Financier Level"),s.a.createElement(d.f,null,"If only more financiers were interested in climate justice. All they go on about is oil and profit. Not you, though. You're a mensch."),s.a.createElement("button",{className:"btn btn-primary disabled"},"Contribute $5000")))),s.a.createElement(d.h,{xs:"12",md:"7",className:"order-md-1 story"},s.a.createElement(d.a,null,"Thank you! The campaign has concluded."),s.a.createElement("h3",null,"What We Need From Justin"),s.a.createElement("hr",null),s.a.createElement("p",null,"Justin Trudeau has been a dreamboat on a lot of issues, from gay rights to taxing the rich to respecting immigrants. But he\u2019s breaking our hearts when it comes to climate and his passion for building dirty Tar Sands pipelines. Help us broadcast this hilarious and sexy video valentine on televisions in Ottawa where Justin lives. Together with Justin, we can stop the Kinder Morgan pipeline and save our climate."),s.a.createElement("h4",null,"\u270a\ud83c\udffe Respect Indigenous Sovereignty"),s.a.createElement("p",null,"Seven First Nations in the pipeline's path (and dozens more all over the continent) have been fighting to stop Kinder Morgan for years. Justin ",s.a.createElement("em",null,"explicitly")," promised that indigenous groups would have veto power over oil projects affecting their land and water. Now he\u2019s steamrolling right over them. This is unacceptable."),s.a.createElement("h4",null,"\ud83d\udca7 Water Is Life"),s.a.createElement("p",null,"If the Kinder Morgan pipeline becomes operational, it will cross scores of rivers and streams and imperil the fresh water of millions of Canadians. The dirty crude, known as bitumen, is toxic to the region's salmon. It will also mean 700% more oil tankers traversing the fragile waters of the Salish Sea (aka Puget Sound)."),s.a.createElement("h4",null,"\ud83d\udca3 Real Hunks Don't Detonate Carbon Bombs"),s.a.createElement("p",null,"Kinder Morgan's Trans Mountain Pipeline expansion would dramatically ramp up Big Oil's exploitation of the Tar Sands, one of the Earth's largest and dirtiest carbon deposits. \"If Canada proceeds, and we do nothing, it will be game over for the climate,\" according to James Hansen, former head of NASA's Goddard Institute."),s.a.createElement("h4",null,"\ud83d\udcfa Broadcast Schedules"),s.a.createElement(d.m,{className:"table table-bordered table-inverted"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{scope:"col"},"Program"),s.a.createElement("th",{scope:"col"},"Airtime"),s.a.createElement("th",{scope:"col"},"Price"))),s.a.createElement("tbody",null,s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83e\udd85 Colbert"),s.a.createElement("td",null,"Nightly, 11:35pm"),s.a.createElement("td",null,"$1360 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\u270d\ud83c\udffc Madam Secretary"),s.a.createElement("td",null,"Sun 10p-11p"),s.a.createElement("td",null,"$3995 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83d\ude02 SNL"),s.a.createElement("td",null,"Sat 11:30p-1a"),s.a.createElement("td",null,"$11,293 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83c\udfd5 Survivor"),s.a.createElement("td",null,"Wed 8p-10p"),s.a.createElement("td",null,"$31,256 USD"))))))))}}]),t}(s.a.Component),y=function(e){return{contributionTotal:e.contribution.total,advocacy:e.advocacy}},v=function(e){return{completedContribution:function(t){return e(Object(f.a)(t))}}};t.a=Object(l.b)(y,v)(m)},function(e,t){function n(e,t){for(var n in t)e.setAttribute(n,t[n])}function r(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function o(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,a){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"===typeof t&&(a=t,t={}),t=t||{},a=a||function(){},s.type=t.type||"text/javascript",s.charset=t.charset||"utf8",s.async=!("async"in t)||!!t.async,s.src=e,t.attrs&&n(s,t.attrs),t.text&&(s.text=""+t.text),("onload"in s?r:o)(s,a),s.onload||r(s,a),i.appendChild(s)}},function(e,t,n){"use strict";function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||a(e)}function a(e){return e.$$typeof===d}function i(e){return Array.isArray(e)?[]:{}}function s(e,t){return t&&!1===t.clone||!p(e)?e:u(i(e),e,t)}function l(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function c(e,t,n){var r={};return p(e)&&Object.keys(e).forEach(function(t){r[t]=s(e[t],n)}),Object.keys(t).forEach(function(o){p(t[o])&&e[o]?r[o]=u(e[o],t[o],n):r[o]=s(t[o],n)}),r}function u(e,t,n){var r=Array.isArray(t),o=Array.isArray(e),a=n||{arrayMerge:l};if(r===o)return r?(a.arrayMerge||l)(e,t,n):c(e,t,n);return s(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){return r(e)&&!o(e)},f="function"===typeof Symbol&&Symbol.for,d=f?Symbol.for("react.element"):60103;u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return u(e,n,t)},{})};var h=u;t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(57),a=r(o),i=n(58),s=r(i),l=n(59),c=r(l),u=n(186),p=r(u),f=n(187),d=r(f),h=n(188),m=r(h),y=n(189),v=r(y),g=n(60),b=r(g),w=n(61),E=r(w);t.default=[a.default,s.default,c.default,p.default,d.default,m.default,v.default,b.default,E.default]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(5),u="//connect.facebook.net/en_US/sdk.js",p=/facebook\.com\/([^\/?].+\/)?video(s|\.php)[\/?].*$/,f="facebook-player-",d=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=c.callPlayer,a.playerID=f+(0,c.randomString)(),i=n,o(a,i)}return a(t,e),i(t,[{key:"load",value:function(e,t){var n=this;if(t)return void(0,c.getSDK)(u,"FB","fbAsyncInit").then(function(e){return e.XFBML.parse()});(0,c.getSDK)(u,"FB","fbAsyncInit").then(function(e){e.init({appId:n.props.config.facebook.appId,xfbml:!0,version:"v2.5"}),e.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("error",n.props.onError),n.props.onReady())})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){0!==e&&this.callPlayer("unmute"),this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e={width:"100%",height:"100%",backgroundColor:"black"};return l.default.createElement("div",{style:e,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-allowfullscreen":"true","data-controls":this.props.controls?void 0:"false"})}}]),t}(s.Component);d.displayName="Facebook",d.canPlay=function(e){return p.test(e)},d.loopOnEnded=!0,t.default=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(5),u=/streamable.com\/([a-z0-9]+)$/,p=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=c.callPlayer,a.duration=null,a.currentTime=null,a.secondsLoaded=null,a.ref=function(e){a.iframe=e},i=n,o(a,i)}return a(t,e),i(t,[{key:"load",value:function(e){var t=this;(0,c.getSDK)("//cdn.embed.ly/player-0.0.12.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r}),t.player.on("buffered",function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)}))},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(u)[1],t={width:"100%",height:"100%"};return l.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/"+e,frameBorder:"0",scrolling:"no",style:t,allowFullScreen:!0})}}]),t}(s.Component);p.displayName="Streamable",p.canPlay=function(e){return u.test(e)},t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(5),p=/(?:wistia.com|wi.st)\/(?:medias|embed)\/(.*)$/,f=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=u.callPlayer,i=n,o(a,i)}return a(t,e),s(t,[{key:"getID",value:function(e){return e&&e.match(p)[1]}},{key:"load",value:function(e){var t=this,n=this.props,r=n.controls,o=n.onReady,a=n.onPlay,s=n.onPause,l=n.onSeek,c=n.onEnded,p=n.config;(0,u.getSDK)("//fast.wistia.com/assets/external/E-v1.js","Wistia").then(function(){window._wq=window._wq||[],window._wq.push({id:t.getID(e),options:i({controlsVisibleOnLoad:r},p.wistia.options),onReady:function(e){t.player=e,t.player.bind("play",a),t.player.bind("pause",s),t.player.bind("seek",l),t.player.bind("end",c),o()}})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("remove")}},{key:"seekTo",value:function(e){this.callPlayer("time",e)}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.getID(this.props.url),t="wistia_embed wistia_async_"+e,n={width:"100%",height:"100%"};return c.default.createElement("div",{key:e,className:t,style:n})}}]),t}(l.Component);f.displayName="Wistia",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(5),u=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,p=/(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/,f="twitch-player-",d=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.callPlayer=c.callPlayer,a.playerID=f+(0,c.randomString)(),i=n,o(a,i)}return a(t,e),i(t,[{key:"load",value:function(e,t){var n=this,r=this.props,o=r.playsinline,a=r.onError,i=p.test(e),s=i?e.match(p)[1]:e.match(u)[1];if(t)return void(i?this.player.setChannel(s):this.player.setVideo("v"+s));(0,c.getSDK)("//player.twitch.tv/js/embed/v1.js","Twitch").then(function(e){n.player=new e.Player(n.playerID,{video:i?"":s,channel:i?s:"",height:"100%",width:"100%",playsinline:o,autoplay:n.props.playing});var t=e.Player,r=t.READY,a=t.PLAY,l=t.PAUSE,c=t.ENDED;n.player.addEventListener(r,n.props.onReady),n.player.addEventListener(a,n.props.onPlay),n.player.addEventListener(l,n.props.onPause),n.player.addEventListener(c,n.props.onEnded)},a)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e={width:"100%",height:"100%"};return l.default.createElement("div",{style:e,id:this.playerID})}}]),t}(s.Component);d.displayName="Twitch",d.canPlay=function(e){return u.test(e)||p.test(e)},d.loopOnEnded=!0,t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,c=v[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var u=s.value;!u.Player.canPlay(e)&&t[u.configKey].preload&&n.push(i.default.createElement(l.default,{key:u.Player.displayName,activePlayer:u.Player,url:u.url,playing:!0,style:{display:"none"}}))}}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(62),l=r(s),c=n(57),u=r(c),p=n(58),f=r(p),d=n(59),h=r(d),m=n(60),y=r(m),v=[{Player:u.default,configKey:"youtube",url:"https://www.youtube.com/watch?v=GlCmAC4MHek"},{Player:f.default,configKey:"soundcloud",url:"https://soundcloud.com/seucheu/john-cage-433-8-bit-version"},{Player:h.default,configKey:"vimeo",url:"https://vimeo.com/127250231"},{Player:y.default,configKey:"dailymotion",url:"http://www.dailymotion.com/video/xqdpyk"}]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"thank-you-for-everything"},s.a.createElement("h1",null,"Thank You!"))}}]),t}(i.Component);t.a=Object(l.b)(null,null)(u)},function(e,t){},function(e,t){},function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function a(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function i(e,t,n){return i=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:a,i.apply(null,arguments)}function s(e,t){this.a=e,this.o=t||e,this.c=this.o.document}function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){e=e.c.getElementsByTagName(t)[0],e||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var a=!1,i=0;i<r.length;i+=1)if(t[o]===r[i]){a=!0;break}a||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(a=!1,i=0;i<n.length;i+=1)if(r[o]===n[i]){a=!0;break}a||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e){return e.o.location.hostname||e.a.location.hostname}function h(e,t,n){function r(){s&&o&&a&&(s(i),s=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,a=!0,i=null,s=n||null;ae?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,i=Error("Stylesheet failed to load"),r()}):setTimeout(function(){o=!0,r()},0),c(e,"head",t)}function m(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var a=l(e,"script",{src:t}),i=!1;return a.onload=a.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,n&&n(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){i||(i=!0,n&&n(Error("Script load timeout")))},r||5e3),a}return null}function y(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,b(e)}}function g(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function w(e){this.a=e||"-"}function E(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function O(e){return C(e)+" "+e.f+"00 300px "+T(e.c)}function T(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function k(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function x(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function P(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new w("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function _(e){e.g&&p(e.f,[e.a.c("wf","loading")]),N(e,"loading")}function S(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}N(e,"inactive")}function N(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,k(n)):e.h[t]())}function j(){this.c={}}function M(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var a=e.c[r];a&&o.push(a(t[r],n))}return o}function A(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function R(e){c(e.c,"body",e.a)}function D(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+T(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function I(e,t,n,r,o,a){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=a||void 0}function L(e,t,n,r,o,a,i){this.v=e,this.B=t,this.c=n,this.a=r,this.s=i||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),e=new E(this.a.c+",serif",k(this.a)),e=D(e),this.g.a.style.cssText=e,e=new E(this.a.c+",sans-serif",k(this.a)),e=D(e),this.h.a.style.cssText=e,e=new E("serif",k(this.a)),e=D(e),this.j.a.style.cssText=e,e=new E("sans-serif",k(this.a)),e=D(e),this.m.a.style.cssText=e,R(this.g),R(this.h),R(this.j),R(this.m)}function z(){if(null===se){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);se=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return se}function U(e,t,n){for(var r in ie)if(ie.hasOwnProperty(r)&&t===e.f[ie[r]]&&n===e.f[ie[r]])return!0;return!1}function F(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=z()&&U(e,n,r)),t?oe()-e.A>=e.w?z()&&U(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):H(e):B(e,e.v)}function H(e){setTimeout(i(function(){F(this)},e),50)}function B(e,t){setTimeout(i(function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)},e),0)}function V(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}function W(e){0==--e.f&&e.j&&(e.m?(e=e.a,e.g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),N(e,"active")):S(e.a))}function q(e){this.j=e,this.a=new j,this.h=0,this.f=this.g=!0}function K(e,t,n,r,o){var a=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=o||null,s=r||null||{};if(0===n.length&&a)S(t.a);else{t.f+=n.length,a&&(t.j=a);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],f=s[u.c],d=t.a,h=u;if(d.g&&p(d.f,[d.a.c("wf",h.c,k(h).toString(),"loading")]),N(d,"fontloading",h),d=null,null===le)if(window.FontFace){var h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);le=h?42<parseInt(h[1],10):!m}else le=!1;d=le?new I(i(t.g,t),i(t.h,t),t.c,u,t.s,f):new L(i(t.g,t),i(t.h,t),t.c,u,t.s,e,f),c.push(d)}for(l=0;l<c.length;l++)c[l].start()}},0)}function $(e,t,n){var r=[],o=n.timeout;_(t);var r=M(e.a,n,e.c),a=new V(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){K(e,a,t,n,r)})}function Y(e,t){this.c=e,this.a=t}function G(e,t){this.c=e,this.a=t}function J(e,t){this.c=e||ce,this.a=[],this.f=[],this.g=t||""}function X(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),e.a.push(o.join(a))}}function Q(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}function Z(e){this.f=e,this.a=[],this.c={}}function ee(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),a=["n4"];if(2<=r.length){var i,s=r[1];if(i=[],s)for(var s=s.split(","),l=s.length,c=0;c<l;c++){var u;if(u=s[c],u.match(/^[\w-]+$/)){var p=de.exec(u.toLowerCase());if(null==p)u="";else{if(u=p[2],u=null==u||""==u?"n":fe[u],null==(p=p[1])||""==p)p="4";else var f=pe[p],p=f||(isNaN(p)?"4":p.substr(0,1));u=[u,p].join("")}}else u="";u&&i.push(u)}0<i.length&&(a=i),3==r.length&&(r=r[2],i=[],r=r?r.split(","):i,0<r.length&&(r=ue[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=ue[o])&&(e.c[o]=r),r=0;r<a.length;r+=1)e.a.push(new E(o,a[r]))}}function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}var oe=Date.now||function(){return+new Date},ae=!!window.FontFace;w.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},I.prototype.start=function(){var e=this.c.o.document,t=this,n=oe(),r=new Promise(function(r,o){function a(){oe()-n>=t.f?o():e.fonts.load(O(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(a,25)},function(){o()})}a()}),o=null,a=new Promise(function(e,n){o=setTimeout(n,t.f)});Promise.race([a,r]).then(function(){o&&(clearTimeout(o),o=null),t.g(t.a)},function(){t.j(t.a)})};var ie={D:"serif",C:"sans-serif"},se=null;L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=oe(),F(this)};var le=null;V.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),N(t,"fontactive",e),this.m=!0,W(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,k(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),p(t.f,r,o)}N(t,"fontinactive",e),W(this)},q.prototype.load=function(e){this.c=new s(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,$(this,new P(this.c,e),e)},Y.prototype.load=function(e){function t(){if(a["__mti_fntLst"+r]){var n,o=a["__mti_fntLst"+r](),i=[];if(o)for(var s=0;s<o.length;s++){var l=o[s].fontfamily;void 0!=o[s].fontStyle&&void 0!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,i.push(new E(l,n))):i.push(new E(l))}e(i)}else setTimeout(function(){t()},50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var a=n.c.o;m(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),function(o){o?e([]):(a["__MonotypeConfiguration__"+r]=function(){return n.a},t())}).id="__MonotypeAPIScript__"+r}else e([])},G.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],a=this.a.testStrings||{},i=new y;for(t=0,n=r.length;t<n;t++)h(this.c,r[t],v(i));var s=[];for(t=0,n=o.length;t<n;t++)if(r=o[t].split(":"),r[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new E(r[0],l[c]));else s.push(new E(r[0]));g(i,function(){e(s,a)})};var ce="https://fonts.googleapis.com/css",ue={latin:"BESbswy","latin-ext":"\xe7\xf6\xfc\u011f\u015f",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},pe={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},fe={i:"i",italic:"i",n:"n",normal:"n"},de=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/,he={Arimo:!0,Cousine:!0,Tinos:!0};te.prototype.load=function(e){var t=new y,n=this.c,r=new J(this.a.api,this.a.text),o=this.a.families;X(r,o);var a=new Z(o);ee(a),h(n,Q(r),v(t)),g(t,function(){e(a.a,a.c,he)})},ne.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var a=t[o],i=t[o+1],s=0;s<i.length;s++)r.push(new E(a,i[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,a=n.fonts.length;o<a;++o){var i=n.fonts[o];r.a.push(new E(i.name,x("font-weight:"+i.weight+";font-style:"+i.style)))}e(r.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+d(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var me=new q(window);me.a.c.custom=function(e,t){return new G(t,e)},me.a.c.fontdeck=function(e,t){return new re(t,e)},me.a.c.monotype=function(e,t){return new Y(t,e)},me.a.c.typekit=function(e,t){return new ne(t,e)},me.a.c.google=function(e,t){return new te(t,e)};var ye={load:i(me.load,me)};void 0!==(r=function(){return ye}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(6),c=n(55),u=n.n(c),p=n(15),f=(n.n(p),n(56)),d=n.n(f),h=n(14),m=n(7),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.levelOne=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/1000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){n.props.completedContribution(e.body.amount)})},n.levelTwo=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/2500",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){n.props.completedContribution(e.body.amount)})},n.levelThree=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/5000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){n.props.completedContribution(e.body.amount)})},n.levelFour=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/50000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){n.props.completedContribution(e.body.amount)})},n.levelFive=function(e){console.log(e),fetch("https://api.dearestjustin.org/contribution/create/500000",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){n.props.completedContribution(e.body.amount)})},n.state={svg:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2.5,strokeOpacity:1},svg2:{fillOpacity:0,fill:"white",stroke:"white",strokeWidth:2,strokeOpacity:1}},n.props.setContributionTotal(),n}return a(t,e),y(t,[{key:"render",value:function(){var e=!1;return this.props.contributionTotal>0&&(e=!0),this.props.contributionComplete?s.a.createElement(m.l,{id:"contribution-complete-thank-you"},s.a.createElement(m.h,null,s.a.createElement("h1",null,"Thank You!"))):s.a.createElement(m.l,null,s.a.createElement(m.h,{id:"thank-you"},s.a.createElement("div",{className:"direct-contribution-header"},s.a.createElement(m.l,null,s.a.createElement(m.h,null,s.a.createElement("svg",{width:"100%",height:"5em",viewBox:"49.833 27.167 514.667 106",preserveAspectRatio:"xMidYMin meet"},s.a.createElement("path",{style:this.state.svg,d:"M63.427 56.685c0 .233.216.351.651.351.301 0 1.662-.201 4.084-.601 2.421-.401 4.617-.619 6.589-.652-2.205.601-4.101 1.211-5.687 1.829a112.96 112.96 0 0 0-4.91 2.054c-1.687.752-2.898 1.254-3.632 1.504-.736.25-1.37.375-1.904.375-1.704 0-2.556-1.102-2.556-3.308 0-5.678 1.437-9.669 4.309-11.975 1.168-.936 3.047-2.045 5.637-3.333 2.588-1.285 5.511-2.504 8.768-3.657s6.839-2.146 10.747-2.981c3.908-.835 7.766-1.252 11.574-1.252 3.908 0 7.499.568 10.772 1.704 3.273 1.136 6.013 2.73 8.217 4.785 2.205 2.054 3.9 4.568 5.086 7.541 1.185 2.974 1.778 6.313 1.778 10.02 0 5.646-1.629 11.123-4.885 16.434-3.257 5.311-7.599 9.995-13.028 14.054-5.428 4.059-11.547 7.274-18.362 9.645-6.814 2.371-13.528 3.557-20.141 3.557-1.236 0-2.214-.134-2.932-.401-.719-.268-1.228-.793-1.528-1.578-.301-.785-.451-1.946-.451-3.482 0-1.904.149-3.457.451-4.66.301-1.201.802-2.589 1.503-4.158 4.81-10.656 13.177-24.066 25.102-40.232-2.404.267-5.044.777-7.916 1.528a105.124 105.124 0 0 0-8.167 2.48c-2.573.902-4.744 1.771-6.514 2.606-1.771.834-2.655 1.435-2.655 1.803zm26.704-8.718c0 .067.066.443.201 1.128.133.685.201 1.278.201 1.778 0 .769-.394 1.846-1.178 3.231-.785 1.386-2.33 3.85-4.635 7.391a414.222 414.222 0 0 0-5.912 9.319c-1.637 2.672-3.574 6.113-5.812 10.321a103.896 103.896 0 0 1-1.453 2.707c-.268.469-.694 1.236-1.278 2.305-.585 1.069-1.011 1.988-1.278 2.754-.267.77-.4 1.354-.4 1.755 0 .868.476 1.478 1.428 1.829.952.352 2.313.526 4.083.526 4.542 0 9.352-.826 14.43-2.48a59.253 59.253 0 0 0 14.305-6.889c4.458-2.939 8.023-6.264 10.696-9.971 2.672-3.708 4.009-7.582 4.009-11.624 0-4.609-1.688-8.158-5.06-10.646-3.375-2.488-8.285-3.732-14.731-3.732a89.208 89.208 0 0 0-7.616.298zM133.22 86.747V88c0 1.971.484 3.507 1.452 4.608.969 1.102 2.237 1.654 3.808 1.654 1.637 0 3.333-.384 5.086-1.153 1.753-.769 3.498-1.786 5.235-3.056 1.736-1.27 3.858-2.974 6.364-5.111v3.056c-3.775 4.543-7.315 8.025-10.623 10.446-3.307 2.422-6.664 3.633-10.07 3.633-2.973 0-5.327-1.152-7.064-3.457-1.737-2.304-2.605-5.461-2.605-9.469 0-3.507.818-6.689 2.455-9.544 1.636-2.857 4.309-5.87 8.016-9.044 2.538-2.17 5.06-3.808 7.565-4.909 2.505-1.103 4.743-1.654 6.714-1.654 1.569 0 2.813.36 3.732 1.078.918.718 1.377 1.797 1.377 3.232 0 2.104-.785 4.2-2.354 6.287-1.571 2.088-3.967 4.159-7.19 6.214-3.223 2.052-7.189 4.031-11.898 5.936zm.501-3.257c3.006-1.169 5.578-2.623 7.716-4.359 2.137-1.736 3.715-3.399 4.735-4.985 1.019-1.586 1.528-2.748 1.528-3.482 0-.769-.351-1.153-1.053-1.153-.601 0-1.578.384-2.931 1.153s-2.723 1.771-4.108 3.006c-1.387 1.237-2.63 2.689-3.732 4.359a14.042 14.042 0 0 0-2.155 5.461z"}),s.a.createElement("path",{style:this.state.svg,d:"M161.026 75.974c5.077-4.608 10.004-8.033 14.781-10.271 4.775-2.237 8.468-3.356 11.072-3.356.702 0 1.353.292 1.954.877a6.66 6.66 0 0 1 1.428 2.028c.351.77.527 1.337.527 1.703 0 .602-.234 1.044-.701 1.328-.468.284-1.287.625-2.456 1.027.233.535.534 1.22.902 2.055.368.834.651 1.511.853 2.027.2.518.301.978.301 1.379 0 .801-.811 2.296-2.43 4.484-1.621 2.188-2.756 3.8-3.407 4.834-.651 1.036-.978 2.305-.978 3.808 0 2.474 1.136 3.708 3.408 3.708 2.337 0 5.995-2.187 10.972-6.563V88.1c-8.45 9.386-14.496 14.078-18.137 14.078-1.303 0-2.229-.427-2.78-1.278-.551-.852-.827-2.112-.827-3.783 0-2.637.953-6.462 2.856-11.473-4.877 5.41-8.501 9.261-10.873 11.548-2.372 2.288-4.326 3.431-5.862 3.431-.735 0-1.654-.633-2.756-1.904-1.102-1.269-2.078-2.914-2.931-4.935a16.014 16.014 0 0 1-1.278-6.288c0-1.57.15-2.881.451-3.934.301-1.051.885-2.129 1.753-3.231.868-1.1 2.255-2.554 4.158-4.357zm24-5.512c-8.685 3.975-14.873 7.35-18.563 10.122-3.691 2.773-5.536 5.628-5.536 8.568 0 1.07.184 1.946.551 2.63.367.685.869 1.028 1.503 1.028.368 0 1.019-.234 1.953-.702 3.508-2.07 6.714-4.767 9.621-8.091 2.905-3.325 6.395-7.842 10.471-13.555z"}),s.a.createElement("path",{style:this.state.svg,d:"M196.299 88.801v-3.257c1.804-2.138 3.173-3.958 4.109-5.461-1.07-.368-1.846-.818-2.331-1.353-.485-.535-.727-1.335-.727-2.405 0-1.202.501-2.722 1.504-4.56a26.212 26.212 0 0 1 3.707-5.162c1.471-1.603 2.806-2.637 4.009-3.105.468-.234.918-.351 1.354-.351.667 0 1.002.318 1.002.952 0 .568-.519 1.721-1.554 3.457 6.88-1.069 11.223-1.604 13.027-1.604.701 0 1.185.068 1.453.202.567.3 1.035 1.002 1.403 2.104a10.41 10.41 0 0 1 .551 3.307c0 .701-.309 1.461-.927 2.28-.619.818-1.679 2.013-3.183 3.582a29.783 29.783 0 0 0-4.458 6.212c-1.203 2.238-1.804 3.925-1.804 5.06 0 1.571.968 2.354 2.906 2.354 2.037 0 5.577-2.07 10.622-6.212v3.356c-2.773 2.906-5.061 5.194-6.864 6.863-1.803 1.671-3.474 2.999-5.01 3.984-1.537.985-2.906 1.478-4.109 1.478-1.402 0-2.573-.642-3.507-1.929-.935-1.286-1.402-3.148-1.402-5.587 0-1.436.367-3.072 1.102-4.909.735-1.838 1.812-3.834 3.232-5.988a73.617 73.617 0 0 1 4.785-6.438c-.936.201-1.988.409-3.157.625-1.169.218-2.406.442-3.707.676-1.303.235-2.305.418-3.006.551-2.073 4.146-5.079 7.904-9.02 11.278z"}),s.a.createElement("path",{style:this.state.svg,d:"M234.779 86.747V88c0 1.971.484 3.507 1.452 4.608.969 1.102 2.237 1.654 3.808 1.654 1.637 0 3.333-.384 5.086-1.153 1.753-.769 3.498-1.786 5.235-3.056 1.736-1.27 3.858-2.974 6.363-5.111v3.056c-3.775 4.543-7.314 8.025-10.622 10.446-3.307 2.422-6.664 3.633-10.07 3.633-2.973 0-5.328-1.152-7.065-3.457-1.737-2.304-2.606-5.461-2.606-9.469 0-3.507.818-6.689 2.455-9.544 1.636-2.857 4.309-5.87 8.016-9.044 2.538-2.17 5.061-3.808 7.565-4.909C246.902 64.551 249.14 64 251.11 64c1.57 0 2.813.36 3.732 1.078.919.718 1.378 1.797 1.378 3.232 0 2.104-.785 4.2-2.354 6.287-1.571 2.088-3.967 4.159-7.19 6.214-3.222 2.052-7.189 4.031-11.897 5.936zm.5-3.257c3.006-1.169 5.578-2.623 7.716-4.359 2.138-1.736 3.715-3.399 4.734-4.985 1.019-1.586 1.528-2.748 1.528-3.482 0-.769-.351-1.153-1.053-1.153-.601 0-1.578.384-2.931 1.153-1.354.769-2.723 1.771-4.109 3.006-1.386 1.237-2.63 2.689-3.732 4.359a14.1 14.1 0 0 0-2.153 5.461z"}),s.a.createElement("path",{style:this.state.svg,d:"M256.522 86.345v-1.202c8.618-9.085 14.547-15.447 17.786-19.089.735-4.108 2.506-6.163 5.312-6.163.701 0 1.454.202 2.254.602l.301.953c-.134.399-.2.968-.2 1.703 0 .635.242 1.813.727 3.533a95.916 95.916 0 0 1 1.128 4.334c.267 1.17.4 2.489.4 3.958 0 2.205-.501 4.317-1.503 6.339-1.002 2.021-2.454 3.958-4.359 5.812-1.903 1.854-4.359 3.75-7.365 5.687 1.203.2 2.154.3 2.855.3 1.37 0 2.848-.342 4.434-1.027 1.586-.685 3.207-1.604 4.86-2.755 1.653-1.153 3.583-2.646 5.787-4.485v3.357c-4.276 4.176-8.101 7.34-11.474 9.494-3.374 2.154-6.281 3.232-8.718 3.232-3.141 0-6.047-1.336-8.719-4.008-1.57-1.604-2.547-3.14-2.931-4.609-.382-1.473-.575-3.46-.575-5.966zm18.689-7.665l-.903-7.314c-2.07 2.337-6.497 6.83-13.277 13.477 2.004.435 3.374 1.02 4.109 1.754.735.735 1.77 2.154 3.107 4.259 2.272-.935 4.016-2.213 5.235-3.833 1.219-1.619 1.829-3.833 1.829-6.639a12.742 12.742 0 0 0-.1-1.704z"}),s.a.createElement("path",{style:this.state.svg,d:"M306.325 58.939h2.154c1.771-3.173 3.374-5.419 4.81-6.738 1.438-1.319 3.073-1.98 4.911-1.98 1.837 0 2.755.418 2.755 1.253 0 .4-.72 1.487-2.154 3.256-1.437 1.771-2.522 3.257-3.256 4.459 1.136.134 2.146.25 3.03.352.884.101 1.578.183 2.08.25-1.905 3.542-4.294 7.165-7.166 10.873-.936-.066-1.723-.125-2.356-.175l-1.929-.151c-.649-.05-1.444-.107-2.378-.175-1.803 2.906-3.316 5.503-4.534 7.791-1.22 2.289-2.154 4.384-2.806 6.288-.651 1.905-.978 3.708-.978 5.411 0 2.305.919 3.457 2.755 3.457 1.27 0 2.931-.675 4.986-2.029 2.055-1.352 4.8-3.431 8.241-6.237V88.2c-9.018 9.788-15.682 14.681-19.99 14.681-1.502 0-2.714-.586-3.633-1.754-.918-1.169-1.378-2.672-1.378-4.509 0-1.235.259-2.706.777-4.41.518-1.703 1.444-4.275 2.781-7.715-.468.4-.911.794-1.328 1.178-.417.384-.801.734-1.152 1.051-.35.318-.727.652-1.127 1.003-.401.352-.801.71-1.202 1.078v-3.458c3.507-2.938 7.749-8.099 12.726-15.482-.502-.032-.97-.057-1.402-.075a40.866 40.866 0 0 0-1.554-.024c-1.971 0-3.44.132-4.409.4-.4.1-.777.208-1.126.326-.351.117-.593.174-.727.174s-.2-.1-.2-.301c0-1.102.684-2.754 2.053-4.959 1.103-1.87 2.147-3.257 3.132-4.159.985-.901 2.187-1.51 3.608-1.829 1.417-.319 3.414-.477 5.986-.477zM381.58 88.5l-13.327 7.516a299.374 299.374 0 0 1-8.845 14.104c-2.955 4.425-5.577 8.083-7.865 10.972-2.288 2.889-4.266 5.094-5.937 6.613-1.671 1.52-2.905 2.279-3.707 2.279-1.068 0-1.938-.36-2.605-1.078-.667-.719-1.002-1.561-1.002-2.528 0-3.608 2.029-8.127 6.087-13.553 4.059-5.429 10.479-11.199 19.265-17.311 3.81-7.314 6.947-13.961 9.421-19.941 2.471-5.978 4.357-11.088 5.661-15.331 1.302-4.241 2.212-7.649 2.729-10.221.519-2.572.777-4.208.777-4.91 0-1.436-.551-2.155-1.653-2.155-.901 0-2.23.519-3.984 1.553-1.752 1.036-3.648 2.581-5.687 4.635-2.037 2.055-3.941 4.435-5.711 7.14-1.771 2.673-3.383 5.67-4.835 8.995-1.452 3.324-2.571 6.387-3.355 9.193-.786 2.806-1.178 5.06-1.178 6.765 0 .434.066 1.386.2 2.856.301-.467.667-1.036 1.103-1.703a14.32 14.32 0 0 1 1.653-2.054 11.204 11.204 0 0 1 2.104-1.754 5.773 5.773 0 0 1 1.553-.827c.601-.216.902-.191.902.076 0 .201-.952 1.461-2.857 3.782a190.666 190.666 0 0 0-4.96 6.289c-.801 1.069-1.869 2.071-3.206 3.006-1.336.935-2.421 1.403-3.257 1.403-1.002 0-1.661-.468-1.979-1.403-.317-.934-.475-2.421-.475-4.459 0-4.909.843-10.37 2.528-16.384 1.688-6.012 3.951-11.29 6.791-15.832 2.304-3.607 5.127-6.872 8.467-9.795 3.34-2.922 6.589-5.202 9.745-6.839s5.636-2.455 7.441-2.455c2.204 0 3.908.694 5.108 2.079 1.202 1.386 1.805 3.298 1.805 5.737 0 1.202-.143 2.556-.427 4.058a53.427 53.427 0 0 1-1.077 4.559c-.434 1.537-1.186 4.009-2.255 7.416a876.993 876.993 0 0 0-2.103 6.764c-1.036 3.441-2.397 6.974-4.084 10.597-1.687 3.624-4.083 8.426-7.189 14.405l10.222-5.513V88.5h-.002z"}),s.a.createElement("path",{style:this.state.svg,d:"M405.277 81.535c-4.843 6.414-8.525 10.972-11.048 13.678-2.521 2.706-4.584 4.059-6.187 4.059-1.271 0-2.439-.526-3.508-1.579-1.069-1.051-1.896-2.472-2.479-4.258-.586-1.787-.878-3.699-.878-5.737 0-1.336.127-2.538.377-3.608.25-1.068.727-2.246 1.426-3.532.702-1.287 1.63-2.681 2.782-4.185 1.152-1.502 2.563-3.206 4.233-5.111a868.16 868.16 0 0 0 2.529-2.956c.685-.802 1.353-1.345 2.005-1.628.651-.284 1.712-.425 3.182-.425 1.068 0 2.087.142 3.056.425.968.285 1.453.577 1.453.876 0 .602-.493 1.688-1.478 3.257-.986 1.571-2.573 3.483-4.759 5.738-2.188 2.255-4.719 4.467-7.591 6.638-.636 1.972-.953 3.474-.953 4.51 0 1.437.552 2.153 1.653 2.153.4 0 1.068-.342 2.004-1.026.935-.685 2.515-2.004 4.734-3.959a457.464 457.464 0 0 1 5.988-5.186c1.303-1.135 2.813-2.831 4.533-5.086 1.722-2.254 3.114-3.949 4.185-5.085 2.472-2.604 4.157-4.3 5.059-5.085.902-.784 1.771-1.177 2.606-1.177.802 0 1.344.25 1.628.751.283.501.426 1.521.426 3.056 0 .702-.067 1.27-.2 1.704-.134.435-.41.994-.827 1.679-.418.685-1.262 1.946-2.53 3.782a4508.912 4508.912 0 0 1-4.509 6.514 25.775 25.775 0 0 0-2.455 4.383c-.701 1.587-1.052 2.781-1.052 3.583 0 1.737.686 2.605 2.055 2.605 1.136 0 2.456-.467 3.958-1.403 1.504-.935 3.809-2.622 6.916-5.06v3.357c-3.908 3.606-6.799 6.229-8.668 7.865-1.871 1.637-3.491 2.874-4.861 3.708-1.369.835-2.672 1.252-3.907 1.252-2.807 0-4.208-1.67-4.208-5.01 0-1.27.417-2.98 1.252-5.135.835-2.151 2.189-5.265 4.058-9.342z"}),s.a.createElement("path",{style:this.state.svg,d:"M420.96 86.345v-1.202c8.618-9.085 14.546-15.447 17.787-19.089.735-4.108 2.505-6.163 5.311-6.163.702 0 1.455.202 2.256.602l.301.953c-.134.399-.201.968-.201 1.703 0 .635.242 1.813.727 3.533a95.729 95.729 0 0 1 1.127 4.334c.268 1.17.4 2.489.4 3.958 0 2.205-.5 4.317-1.503 6.339-1.001 2.021-2.454 3.958-4.359 5.812-1.903 1.854-4.358 3.75-7.365 5.687 1.202.2 2.154.3 2.856.3 1.369 0 2.848-.342 4.435-1.027 1.586-.685 3.206-1.604 4.859-2.755 1.653-1.153 3.583-2.646 5.787-4.485v3.357c-4.275 4.176-8.1 7.34-11.474 9.494s-6.279 3.232-8.717 3.232c-3.141 0-6.047-1.336-8.719-4.008-1.57-1.604-2.547-3.14-2.931-4.609-.385-1.473-.577-3.46-.577-5.966zm18.689-7.665l-.902-7.314c-2.072 2.337-6.497 6.83-13.277 13.477 2.004.435 3.373 1.02 4.108 1.754.734.735 1.771 2.154 3.106 4.259 2.271-.935 4.017-2.213 5.236-3.833 1.218-1.619 1.829-3.833 1.829-6.639 0-.333-.011-.633-.025-.901a14.43 14.43 0 0 0-.075-.803z"}),s.a.createElement("path",{style:this.state.svg,d:"M470.763 58.939h2.154c1.769-3.173 3.374-5.419 4.811-6.738 1.436-1.319 3.072-1.98 4.909-1.98s2.755.418 2.755 1.253c0 .4-.719 1.487-2.154 3.256-1.437 1.771-2.521 3.257-3.257 4.459 1.136.134 2.146.25 3.031.352.886.1 1.579.183 2.079.25-1.904 3.542-4.292 7.165-7.164 10.873-.936-.066-1.723-.125-2.355-.175l-1.93-.151c-.65-.05-1.445-.107-2.378-.175-1.805 2.906-3.316 5.503-4.536 7.791-1.219 2.289-2.152 4.384-2.805 6.288-.652 1.905-.977 3.708-.977 5.411 0 2.305.919 3.457 2.755 3.457 1.271 0 2.932-.675 4.985-2.029 2.054-1.352 4.802-3.431 8.242-6.237V88.2c-9.02 9.788-15.683 14.681-19.991 14.681-1.503 0-2.714-.586-3.632-1.754-.92-1.169-1.377-2.672-1.377-4.509 0-1.235.257-2.706.776-4.41.519-1.703 1.445-4.275 2.78-7.715-.469.4-.911.794-1.328 1.178-.417.384-.801.734-1.151 1.051-.352.318-.727.652-1.128 1.003-.4.352-.802.71-1.202 1.078v-3.458c3.506-2.938 7.749-8.099 12.726-15.482a63.094 63.094 0 0 0-1.402-.075 40.88 40.88 0 0 0-1.553-.024c-1.972 0-3.44.132-4.41.4-.4.1-.776.208-1.128.326-.35.117-.592.174-.727.174-.133 0-.199-.1-.199-.301 0-1.102.684-2.754 2.054-4.959 1.103-1.87 2.146-3.257 3.132-4.159.984-.901 2.186-1.51 3.606-1.829 1.42-.319 3.415-.477 5.989-.477z"}),s.a.createElement("path",{style:this.state.svg,d:"M502.778 84.942v3.657c-3.24 4.177-6.262 7.324-9.07 9.445-2.805 2.122-5.192 3.181-7.164 3.181-2.738 0-4.776-1.435-6.112-4.308-1.336-2.872-2.005-6.012-2.005-9.419 0-1.303.134-2.547.402-3.732.267-1.185.584-2.163.951-2.931.368-.768 1.053-1.971 2.055-3.608 4.742-7.381 9.085-11.072 13.026-11.072 2.036 0 3.056.784 3.056 2.354 0 1.07-.66 2.74-1.979 5.011s-2.499 3.891-3.533 4.86c-2.905 2.806-4.802 4.759-5.687 5.862s-1.327 2.355-1.327 3.758c0 1.202.45 2.204 1.352 3.006s2.07 1.202 3.508 1.202c1.569 0 3.297-.577 5.186-1.729s4.335-2.999 7.341-5.537zm-3.406-22.396c-.836 0-1.628-.317-2.381-.952-.751-.634-1.127-1.436-1.127-2.405 0-1.469.702-3.106 2.104-4.909 1.403-1.804 2.856-2.707 4.36-2.707 1.001 0 1.835.31 2.504.927.668.619 1.001 1.511 1.001 2.68 0 1.437-.685 3.023-2.054 4.759-1.368 1.739-2.839 2.607-4.407 2.607z"}),s.a.createElement("path",{style:this.state.svg,d:"M536.097 75.875c-5.879 6.547-8.818 11.106-8.818 13.678 0 1.437.586 2.154 1.756 2.154.967 0 2.228-.509 3.781-1.528 1.553-1.019 3.984-2.831 7.29-5.437V88.2c-4.742 4.676-8.383 8.051-10.922 10.12-2.538 2.071-4.609 3.107-6.212 3.107-2.741 0-4.11-1.804-4.11-5.411 0-1.069.169-2.121.502-3.157a20.695 20.695 0 0 1 1.379-3.232c.583-1.118 1.478-2.722 2.681-4.809a586.355 586.355 0 0 1 4.157-7.09c-1.905.969-4.293 2.89-7.164 5.762-1.872 1.803-3.458 3.515-4.759 5.135-1.305 1.62-2.7 3.424-4.186 5.411-1.486 1.988-2.572 3.323-3.257 4.008s-1.378 1.026-2.078 1.026c-1.07 0-2.056-1.118-2.957-3.355-.9-2.239-1.353-4.843-1.353-7.817 0-1.837.208-3.272.627-4.308.416-1.036 1.243-2.505 2.479-4.41 2.306-3.541 4.292-6.137 5.963-7.79 1.669-1.653 3.274-2.481 4.811-2.481 1.067 0 1.928.185 2.579.551.652.367.977.935.977 1.704 0 .333-.099.685-.3 1.052-.2.367-.426.701-.677 1.001-.25.301-.775.886-1.578 1.755-5.278 5.845-7.915 9.637-7.915 11.373 0 .969.316 1.454.951 1.454.4 0 1.179-.643 2.331-1.929a490.778 490.778 0 0 0 4.459-5.06c1.819-2.087 3.975-4.266 6.462-6.538 2.487-2.271 5.319-4.459 8.493-6.563 1.77-1.235 3.24-1.854 4.41-1.854.533 0 1.059.736 1.578 2.205.516 1.47.775 2.957.775 4.459-.001.733-.719 1.852-2.155 3.356zM548.222 101.977c-1.069-.4-1.762-.701-2.079-.901-.317-.201-.476-.619-.476-1.252 0-.903.525-2.097 1.578-3.583a20.571 20.571 0 0 1 3.583-3.908c1.334-1.119 2.421-1.679 3.255-1.679 1.235 0 1.855.751 1.855 2.254 0 1.704-1.011 3.966-3.031 6.789-2.022 2.822-3.851 4.768-5.487 5.837-1.103.734-1.653.833-1.653.299 0-.233.093-.459.275-.675.184-.217.519-.652 1.004-1.303.481-.651.876-1.276 1.176-1.878z"})))),s.a.createElement(m.l,null,s.a.createElement(m.h,null,s.a.createElement("svg",{width:"100%",height:"4em",viewBox:"15.168 357.167 588.666 64.667",preserveAspectRatio:"xMidYMin meet"},s.a.createElement("path",{className:"first-letter",style:this.state.svg2,d:"M23.78 381.057c0 .179.166.268.499.268.23 0 1.271-.153 3.125-.46 1.853-.307 3.533-.473 5.042-.499-1.687.46-3.138.927-4.352 1.4a85.35 85.35 0 0 0-3.757 1.572c-1.292.575-2.218.958-2.78 1.15-.563.192-1.048.288-1.457.288-1.304 0-1.956-.844-1.956-2.531 0-4.345 1.1-7.4 3.298-9.164.895-.715 2.332-1.565 4.313-2.55 1.98-.984 4.218-1.917 6.71-2.799s5.234-1.643 8.225-2.282a42.303 42.303 0 0 1 8.857-.958c2.991 0 5.738.435 8.244 1.304 2.505.869 4.602 2.09 6.289 3.662 1.687 1.572 2.984 3.496 3.892 5.771.907 2.275 1.361 4.831 1.361 7.668 0 4.32-1.246 8.512-3.738 12.577-2.493 4.065-5.816 7.649-9.969 10.755-4.154 3.105-8.838 5.566-14.053 7.381-5.214 1.815-10.353 2.723-15.414 2.723-.946 0-1.694-.103-2.243-.308-.55-.204-.939-.607-1.169-1.207-.23-.601-.345-1.488-.345-2.665 0-1.457.115-2.646.345-3.565.23-.92.613-1.98 1.15-3.184 3.681-8.153 10.084-18.417 19.21-30.789-1.84.205-3.86.594-6.058 1.169a80.271 80.271 0 0 0-6.25 1.898c-1.969.69-3.63 1.355-4.984 1.994-1.358.64-2.035 1.1-2.035 1.381zm20.437-6.672c0 .052.051.339.153.863.102.524.153.978.153 1.361 0 .588-.301 1.413-.901 2.473-.601 1.061-1.783 2.946-3.547 5.655a310.55 310.55 0 0 0-4.524 7.132c-1.253 2.045-2.736 4.678-4.448 7.899a81.352 81.352 0 0 1-1.112 2.07c-.205.358-.531.946-.978 1.765-.448.818-.773 1.521-.978 2.108-.205.589-.307 1.035-.307 1.342 0 .665.364 1.132 1.093 1.399.729.269 1.77.402 3.125.402 3.476 0 7.157-.633 11.043-1.897a45.296 45.296 0 0 0 10.947-5.272c3.413-2.249 6.141-4.793 8.187-7.63 2.045-2.837 3.067-5.802 3.067-8.896 0-3.527-1.291-6.243-3.873-8.148-2.583-1.904-6.34-2.856-11.273-2.856-2.069 0-4.012.077-5.827.23zM95.712 402.605v2.569c-1.687 1.534-3.042 2.557-4.064 3.067-1.022.512-2.492.717-4.409.613-3.323 3.938-6.25 5.905-8.781 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.873-.704-1.635-1.055-3.463-1.055-5.482 0-1.636.543-3.451 1.63-5.445 1.086-1.993 2.492-3.853 4.218-5.579 1.725-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.147.186 2.837.556.69.371 1.035.888 1.035 1.553 0 .512-.294 1.1-.882 1.764.971.205 1.636.543 1.994 1.016.357.474.537 1.336.537 2.588 0 1.227-.288 2.774-.863 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575c.435 0 .863-.109 1.285-.326a8.603 8.603 0 0 0 1.131-.69c.331-.243 1.06-.786 2.185-1.63zm-7.899-10.084c-2.122 1.279-3.937 2.435-5.445 3.47-1.509 1.036-2.787 2.083-3.834 3.144-1.048 1.062-1.751 2.128-2.109 3.202-.639 2.863-.958 4.409-.958 4.639 0 1.688 1.175 2.531 3.528 2.531 1.099 0 2.939-.945 5.521-2.838-.435-1.201-.652-2.352-.652-3.451 0-1.609.332-3.252.997-4.926.664-1.674 1.649-3.597 2.952-5.771z"}),s.a.createElement("path",{style:this.state.svg2,d:"M121.479 395.743c-4.5 5.01-6.749 8.5-6.749 10.467 0 1.1.447 1.649 1.342 1.649.741 0 1.707-.39 2.895-1.17 1.188-.779 3.048-2.166 5.579-4.16v2.646c-3.63 3.579-6.417 6.161-8.359 7.745-1.943 1.586-3.528 2.377-4.754 2.377-2.097 0-3.145-1.38-3.145-4.141 0-.817.128-1.623.384-2.416.255-.791.607-1.615 1.054-2.473.447-.855 1.131-2.083 2.051-3.681.92-1.597 1.981-3.406 3.183-5.426-1.457.741-3.285 2.212-5.483 4.409-1.432 1.381-2.646 2.691-3.643 3.931a147.77 147.77 0 0 0-3.202 4.142c-1.138 1.521-1.969 2.543-2.493 3.066-.524.524-1.054.787-1.591.787-.818 0-1.572-.857-2.262-2.57-.69-1.711-1.035-3.705-1.035-5.98 0-1.406.16-2.506.479-3.298.319-.792.952-1.917 1.898-3.374 1.764-2.709 3.284-4.697 4.563-5.963 1.278-1.265 2.505-1.898 3.681-1.898.818 0 1.476.141 1.975.422.499.282.748.716.748 1.304 0 .256-.077.524-.23.805a4.659 4.659 0 0 1-.518.767c-.191.23-.594.677-1.208 1.342-4.04 4.473-6.059 7.375-6.059 8.704 0 .742.243 1.112.729 1.112.307 0 .901-.491 1.783-1.476s2.019-2.275 3.413-3.873c1.393-1.598 3.042-3.266 4.946-5.004 1.904-1.738 4.07-3.413 6.499-5.023 1.354-.945 2.479-1.419 3.375-1.419.408 0 .811.563 1.208 1.687.396 1.125.594 2.262.594 3.413 0 .563-.549 1.419-1.648 2.57zM139.193 371.97c0-.153-.103-.23-.307-.23-1.048 0-1.572-.524-1.572-1.572 0-.843.332-1.827.997-2.952a11.266 11.266 0 0 1 2.454-2.915c.971-.817 1.828-1.227 2.569-1.227 1.048 0 1.572.69 1.572 2.07s-.499 2.856-1.495 4.429c-.997 1.572-2.116 2.94-3.355 4.103-1.24 1.164-2.026 1.745-2.358 1.745-.153 0-.23-.077-.23-.23 0-.357.255-.882.767-1.572.638-.793.958-1.343.958-1.649zM157.981 382.782h1.649c1.354-2.428 2.582-4.147 3.681-5.157 1.099-1.01 2.352-1.515 3.757-1.515s2.109.32 2.109.958c0 .307-.55 1.138-1.648 2.492-1.1 1.355-1.931 2.492-2.493 3.413.869.103 1.643.192 2.32.269s1.208.141 1.591.191c-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.317-.096-1.802-.134a378.71 378.71 0 0 0-3.297-.249c-1.38 2.224-2.538 4.211-3.47 5.962-.934 1.751-1.649 3.355-2.147 4.813-.498 1.457-.748 2.837-.748 4.141 0 1.764.703 2.646 2.109 2.646.971 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.307-4.774v2.569c-6.902 7.49-12.001 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.343-.704-.895-1.055-2.044-1.055-3.45 0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.904a39.91 39.91 0 0 0-1.016.9c-.32.295-.614.563-.882.806-.269.243-.556.499-.863.767-.307.269-.614.543-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.932 30.932 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.269.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.843-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.087-.242 2.614-.364 4.582-.364zM211.585 402.76v2.492c-2.659 1.687-4.754 2.53-6.288 2.53-.844 0-1.739-.14-2.684-.422-2.301 2.914-4.275 5.049-5.924 6.403-1.649 1.355-3.304 2.032-4.966 2.032-1.917 0-3.393-1.01-4.429-3.028-1.035-2.02-1.553-4.525-1.553-7.516 0-4.064 1.227-8.493 3.681-13.286a73.566 73.566 0 0 1 8.876-13.458c3.463-4.18 6.818-7.636 10.065-10.372 3.246-2.735 5.445-4.103 6.595-4.103 1.099 0 1.648.754 1.648 2.262 0 6.697-8.589 18.379-25.767 35.046-.051.46-.077 1.368-.077 2.722 0 3.527.945 5.292 2.837 5.292.741 0 1.489-.3 2.243-.901.754-.6 1.911-1.744 3.47-3.432-.614-1.381-.92-2.402-.92-3.067 0-1.405.575-2.927 1.726-4.563a20.76 20.76 0 0 1 3.93-4.236c1.47-1.188 2.537-1.783 3.202-1.783 1.048 0 1.572.754 1.572 2.262 0 1.15-.301 2.53-.901 4.142-.601 1.609-1.476 3.45-2.626 5.521.434.358.779.62 1.035.786.255.166.639.25 1.15.25 1.178-.001 2.546-.525 4.105-1.573zm-19.478-5.752c1.329-1.15 2.665-2.512 4.007-4.083 1.342-1.572 3.303-3.981 5.886-7.228 2.479-3.119 4.428-5.719 5.847-7.803 1.418-2.083 2.486-3.815 3.202-5.195.715-1.38 1.074-2.326 1.074-2.837 0-.383-.103-.575-.307-.575-.563 0-1.732.927-3.508 2.78-1.777 1.854-3.802 4.391-6.077 7.611-3.145 4.448-5.42 7.797-6.825 10.046a30.203 30.203 0 0 0-3.299 7.284z"}),s.a.createElement("path",{style:this.state.svg2,d:"M211.202 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.413-.625-1.783-1.035-.371-.408-.556-1.022-.556-1.84 0-.92.383-2.083 1.15-3.489a20.044 20.044 0 0 1 2.837-3.949c1.125-1.227 2.147-2.019 3.067-2.377.358-.178.703-.268 1.035-.268.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.434.23.792.767 1.074 1.611.281.843.421 1.687.421 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.285 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.38 1.279-2.659 2.295-3.834 3.049-1.176.754-2.224 1.131-3.144 1.131-1.074 0-1.969-.492-2.684-1.477-.716-.983-1.074-2.408-1.074-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a55.978 55.978 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.841.339-2.837.518-.997.179-1.764.32-2.301.422-1.584 3.167-3.885 6.043-6.901 8.624z"}),s.a.createElement("path",{style:this.state.svg2,d:"M240.65 404.063v.959c0 1.509.37 2.684 1.112 3.527.741.844 1.712 1.266 2.914 1.266 1.252 0 2.55-.293 3.892-.882 1.342-.588 2.677-1.367 4.007-2.339 1.329-.971 2.952-2.275 4.87-3.911v2.339c-2.889 3.477-5.598 6.142-8.129 7.994-2.531 1.854-5.1 2.78-7.707 2.78-2.275 0-4.078-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.685.626-5.118 1.879-7.304 1.252-2.186 3.297-4.493 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.629-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.054 1.375 1.054 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.502 4.755-2.468 1.573-5.503 3.086-9.107 4.544zm.383-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.636-1.329 2.843-2.6 3.624-3.815.779-1.213 1.169-2.102 1.169-2.665 0-.588-.269-.882-.805-.882-.46 0-1.208.294-2.243.882-1.035.588-2.083 1.355-3.144 2.3a16.938 16.938 0 0 0-2.856 3.335 10.794 10.794 0 0 0-1.65 4.181z"}),s.a.createElement("path",{style:this.state.svg2,d:"M261.93 395.819c3.885-3.528 7.655-6.147 11.312-7.86 3.655-1.712 6.48-2.569 8.474-2.569.537 0 1.035.224 1.496.671.46.447.824.965 1.093 1.553.268.588.402 1.022.402 1.304 0 .46-.179.799-.537 1.016-.358.217-.984.479-1.879.786l.69 1.572c.281.639.499 1.157.652 1.553s.23.748.23 1.054c0 .613-.62 1.758-1.86 3.431-1.24 1.676-2.109 2.908-2.607 3.701-.499.792-.748 1.764-.748 2.914 0 1.892.869 2.837 2.607 2.837 1.789 0 4.588-1.674 8.397-5.022v2.338c-6.467 7.184-11.094 10.775-13.88 10.775-.997 0-1.706-.326-2.128-.979-.422-.651-.633-1.616-.633-2.895 0-2.02.729-4.946 2.186-8.781-3.732 4.142-6.505 7.088-8.32 8.839-1.815 1.751-3.311 2.626-4.486 2.626-.563 0-1.265-.484-2.109-1.457-.843-.971-1.591-2.229-2.243-3.776a12.26 12.26 0 0 1-.978-4.812c0-1.201.115-2.205.345-3.01.23-.807.677-1.631 1.342-2.474.664-.842 1.725-1.955 3.182-3.335zm18.367-4.217c-6.647 3.042-11.382 5.623-14.207 7.745-2.825 2.122-4.237 4.308-4.237 6.557 0 .818.14 1.489.422 2.013.281.525.665.787 1.15.787.281 0 .779-.18 1.495-.537 2.684-1.585 5.138-3.648 7.362-6.193 2.225-2.544 4.896-6.001 8.015-10.372z"}),s.a.createElement("path",{style:this.state.svg2,d:"M318.219 402.683v2.569c-2.863 3.349-5.268 5.885-7.209 7.611-1.943 1.725-3.566 2.588-4.869 2.588-1.254 0-2.385-.371-3.395-1.112s-1.917-1.764-2.722-3.067-1.758-3.118-2.857-5.445a164.002 164.002 0 0 0-3.527 4.506c-1.048 1.394-1.777 2.32-2.186 2.779-.409.461-.78.691-1.112.691-.69 0-1.189-.441-1.496-1.323s-.46-2.167-.46-3.854a26.6 26.6 0 0 1 .824-6.653c.549-2.133 1.342-4.211 2.377-6.23s2.364-4.199 3.988-6.538a147.654 147.654 0 0 1 5.464-7.343c2.785-3.528 5.188-6.409 7.207-8.646 2.02-2.236 3.777-3.924 5.273-5.062 1.494-1.137 2.74-1.706 3.738-1.706 1.227 0 1.84.55 1.84 1.649 0 .946-2.262 4.352-6.787 10.218-4.523 5.867-11.119 13.875-19.784 24.022v3.297c5.802-6.211 10.474-10.825 14.015-13.842 3.539-3.016 6.281-4.524 8.225-4.524.791 0 1.404.467 1.84 1.399.436.934.652 2.013.652 3.24 0 2.505-1.074 4.825-3.221 6.959-2.148 2.135-5.445 4.582-9.893 7.343.766 1.15 1.443 1.988 2.031 2.512.588.524 1.33.786 2.225.786.791 0 1.648-.269 2.568-.805.92-.537 1.859-1.215 2.818-2.033.962-.816 2.439-2.146 4.433-3.986zm-15.147 1.956c.971-.639 2.18-1.631 3.623-2.973 1.445-1.342 2.678-2.734 3.701-4.179 1.021-1.444 1.533-2.652 1.533-3.624 0-.409-.18-.614-.537-.614-.971 0-2.639.934-5.004 2.799-2.363 1.867-4.672 4.255-6.92 7.169.971.002 2.173.476 3.604 1.422zM364.69 402.605v2.569c-1.688 1.534-3.043 2.557-4.064 3.067-1.023.512-2.492.717-4.41.613-3.323 3.938-6.25 5.905-8.78 5.905-1.432 0-2.735-.473-3.911-1.419-1.176-.945-2.115-2.236-2.818-3.873-.703-1.635-1.054-3.463-1.054-5.482 0-1.636.542-3.451 1.629-5.445 1.087-1.993 2.492-3.853 4.218-5.579 1.726-1.725 3.572-3.118 5.541-4.179 1.968-1.061 3.796-1.591 5.483-1.591 1.201 0 2.146.186 2.837.556s1.035.888 1.035 1.553c0 .512-.294 1.1-.882 1.764.972.205 1.636.543 1.994 1.016.357.474.536 1.336.536 2.588 0 1.227-.287 2.774-.862 4.64a23.152 23.152 0 0 1-2.358 5.253l.69.69h.575c.435 0 .862-.109 1.284-.326s.799-.447 1.132-.69c.331-.243 1.06-.786 2.185-1.63zm-7.899-10.084c-2.122 1.279-3.937 2.435-5.444 3.47-1.509 1.036-2.786 2.083-3.834 3.144-1.049 1.062-1.752 2.128-2.109 3.202-.639 2.863-.958 4.409-.958 4.639 0 1.688 1.175 2.531 3.527 2.531 1.099 0 2.939-.945 5.521-2.838-.436-1.201-.652-2.352-.652-3.451 0-1.609.332-3.252.997-4.926.664-1.674 1.648-3.597 2.952-5.771z"}),s.a.createElement("path",{style:this.state.svg2,d:"M382.673 400.075c-3.706 4.908-6.524 8.397-8.454 10.468-1.931 2.07-3.509 3.105-4.735 3.105-.972 0-1.866-.402-2.685-1.207-.818-.806-1.451-1.892-1.897-3.26-.448-1.367-.671-2.83-.671-4.391 0-1.021.096-1.941.287-2.76s.556-1.719 1.093-2.703 1.246-2.052 2.128-3.202 1.962-2.454 3.24-3.911l1.937-2.262c.523-.613 1.035-1.029 1.533-1.246.499-.217 1.31-.326 2.436-.326.817 0 1.597.109 2.339.326.74.217 1.111.441 1.111.671 0 .46-.377 1.291-1.131 2.492-.754 1.202-1.969 2.665-3.643 4.391-1.675 1.725-3.611 3.419-5.809 5.081-.486 1.509-.729 2.659-.729 3.45 0 1.1.421 1.649 1.265 1.649.307 0 .818-.263 1.534-.786.715-.523 1.923-1.533 3.623-3.029 1.7-1.495 3.227-2.818 4.582-3.969.997-.868 2.153-2.166 3.47-3.892s2.384-3.022 3.202-3.892c1.892-1.994 3.183-3.291 3.873-3.892.689-.6 1.354-.901 1.993-.901.614 0 1.029.191 1.246.575.217.383.326 1.164.326 2.339 0 .537-.052.972-.153 1.304-.103.333-.313.761-.633 1.284-.319.524-.965 1.49-1.937 2.895-.972 1.406-2.122 3.068-3.45 4.985a19.757 19.757 0 0 0-1.879 3.354c-.537 1.215-.806 2.129-.806 2.742 0 1.329.523 1.994 1.572 1.994.869 0 1.879-.358 3.029-1.074 1.15-.715 2.914-2.006 5.291-3.873v2.569c-2.99 2.761-5.202 4.769-6.633 6.021-1.433 1.252-2.672 2.198-3.72 2.837-1.049.64-2.045.958-2.99.958-2.147 0-3.222-1.277-3.222-3.834 0-.971.319-2.281.959-3.93.641-1.647 1.676-4.031 3.108-7.15z"}),s.a.createElement("path",{style:this.state.svg2,d:"M394.445 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.412-.625-1.783-1.035-.37-.408-.556-1.022-.556-1.84 0-.92.384-2.083 1.15-3.489a20.009 20.009 0 0 1 2.838-3.949c1.124-1.227 2.146-2.019 3.067-2.377a2.317 2.317 0 0 1 1.035-.268c.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.284 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.279-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.408-1.073-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a56.381 56.381 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.179-1.764.32-2.301.422-1.584 3.167-3.885 6.043-6.901 8.624zM468.485 402.683v2.415c-2.224 2.275-4.147 4.136-5.771 5.58-1.623 1.443-3.042 2.537-4.256 3.277-1.215.742-2.243 1.112-3.087 1.112-1.994 0-2.99-1.175-2.99-3.527 0-1.892.619-4.083 1.859-6.576 1.239-2.492 3.022-5.425 5.349-8.8a22.571 22.571 0 0 0-3.259 2.205 22.17 22.17 0 0 0-2.723 2.607 165.11 165.11 0 0 0-1.994 2.319 119.967 119.967 0 0 0-4.793 5.732c-1.533 1.956-2.568 3.228-3.105 3.815s-1.049.882-1.533.882c-1.994 0-2.991-2.454-2.991-7.362 0-1.61.242-3.387.729-5.33.485-1.941 1.789-4.511 3.911-7.707 4.473-6.697 8.301-12.174 11.483-16.43 3.183-4.256 5.822-7.477 7.918-9.663s3.502-3.252 4.218-3.202c.895.077 1.616.256 2.167.537.549.282.824.601.824.958 0 .64-.441 1.694-1.323 3.164-.882 1.47-2.396 3.764-4.544 6.882a793.87 793.87 0 0 1-4.946 6.959c-.972 1.342-2.422 3.247-4.352 5.713a314.571 314.571 0 0 1-5.291 6.595 181.801 181.801 0 0 1-5.464 6.269v4.602c3.425-3.809 6.39-6.927 8.896-9.356 2.505-2.428 4.626-4.262 6.364-5.502 1.738-1.239 3.017-1.859 3.835-1.859.767 0 1.482.454 2.147 1.361.664.907.996 1.655.996 2.243 0 .256-.128.575-.383.959-1.841 2.199-3.305 4.02-4.391 5.464-1.087 1.443-1.924 2.734-2.512 3.872s-.882 2.115-.882 2.933c0 1.203.575 1.803 1.726 1.803 1.229.002 3.951-1.647 8.168-4.944z"}),s.a.createElement("path",{style:this.state.svg2,d:"M474.62 404.063v.959c0 1.509.371 2.684 1.112 3.527s1.712 1.266 2.914 1.266c1.252 0 2.55-.293 3.892-.882 1.343-.588 2.678-1.367 4.007-2.339 1.329-.971 2.953-2.275 4.87-3.911v2.339c-2.889 3.477-5.599 6.142-8.129 7.994-2.53 1.854-5.1 2.78-7.707 2.78-2.275 0-4.077-.882-5.406-2.646-1.33-1.764-1.994-4.18-1.994-7.247 0-2.685.626-5.118 1.879-7.304 1.252-2.186 3.298-4.493 6.135-6.921 1.942-1.662 3.873-2.914 5.79-3.758 1.917-.843 3.63-1.265 5.138-1.265 1.201 0 2.153.275 2.856.824.703.55 1.055 1.375 1.055 2.473 0 1.61-.601 3.215-1.802 4.812-1.202 1.598-3.036 3.183-5.503 4.755s-5.502 3.086-9.107 4.544zm.384-2.493c2.301-.895 4.269-2.006 5.905-3.336 1.635-1.329 2.843-2.6 3.623-3.815.779-1.213 1.17-2.102 1.17-2.665 0-.588-.269-.882-.806-.882-.46 0-1.208.294-2.243.882-1.035.588-2.084 1.355-3.145 2.3a16.938 16.938 0 0 0-2.856 3.335 10.821 10.821 0 0 0-1.648 4.181z"}),s.a.createElement("path",{style:this.state.svg2,d:"M495.9 395.819c3.886-3.528 7.655-6.147 11.312-7.86 3.655-1.712 6.479-2.569 8.474-2.569.537 0 1.035.224 1.495.671s.824.965 1.093 1.553.403 1.022.403 1.304c0 .46-.18.799-.537 1.016-.358.217-.984.479-1.879.786.179.409.408.933.69 1.572.28.639.498 1.157.651 1.553s.23.748.23 1.054c0 .613-.62 1.758-1.86 3.431-1.239 1.676-2.108 2.908-2.606 3.701-.499.792-.748 1.764-.748 2.914 0 1.892.868 2.837 2.607 2.837 1.789 0 4.588-1.674 8.397-5.022v2.338c-6.468 7.184-11.095 10.775-13.881 10.775-.997 0-1.706-.326-2.128-.979-.422-.651-.633-1.616-.633-2.895 0-2.02.729-4.946 2.186-8.781-3.732 4.142-6.506 7.088-8.32 8.839-1.815 1.751-3.311 2.626-4.486 2.626-.563 0-1.265-.484-2.108-1.457-.844-.971-1.592-2.229-2.243-3.776a12.26 12.26 0 0 1-.978-4.812c0-1.201.114-2.205.345-3.01.23-.807.677-1.631 1.342-2.474.665-.842 1.725-1.955 3.182-3.335zm18.367-4.217c-6.646 3.042-11.382 5.623-14.206 7.745s-4.236 4.308-4.236 6.557c0 .818.14 1.489.421 2.013.281.525.665.787 1.15.787.281 0 .779-.18 1.496-.537 2.684-1.585 5.138-3.648 7.361-6.193 2.224-2.544 4.894-6.001 8.014-10.372z"}),s.a.createElement("path",{style:this.state.svg2,d:"M522.895 405.635v-2.492c1.38-1.635 2.428-3.029 3.144-4.18-.818-.281-1.412-.625-1.783-1.035-.37-.408-.556-1.022-.556-1.84 0-.92.384-2.083 1.15-3.489a20.009 20.009 0 0 1 2.838-3.949c1.124-1.227 2.146-2.019 3.067-2.377a2.317 2.317 0 0 1 1.035-.268c.511 0 .767.243.767.729 0 .435-.396 1.317-1.188 2.646 5.266-.818 8.589-1.227 9.969-1.227.537 0 .907.052 1.112.153.435.23.792.767 1.073 1.611.281.843.422 1.687.422 2.53 0 .537-.236 1.119-.709 1.745-.474.627-1.284 1.541-2.435 2.742a22.895 22.895 0 0 0-3.413 4.754c-.92 1.713-1.38 3.004-1.38 3.873 0 1.201.741 1.802 2.224 1.802 1.559 0 4.269-1.585 8.129-4.755v2.569c-2.122 2.224-3.873 3.976-5.253 5.253-1.381 1.279-2.659 2.295-3.835 3.049s-2.224 1.131-3.144 1.131c-1.074 0-1.969-.492-2.685-1.477-.716-.983-1.073-2.408-1.073-4.275 0-1.098.281-2.352.844-3.758.562-1.404 1.386-2.933 2.473-4.582a56.381 56.381 0 0 1 3.662-4.926c-.716.153-1.521.313-2.416.479-.895.167-1.84.339-2.837.518-.997.179-1.764.32-2.301.422-1.585 3.167-3.886 6.043-6.901 8.624z"}),s.a.createElement("path",{style:this.state.svg2,d:"M559.666 382.782h1.648c1.354-2.428 2.582-4.147 3.681-5.157s2.352-1.515 3.758-1.515c1.405 0 2.109.32 2.109.958 0 .307-.551 1.138-1.649 2.492-1.099 1.355-1.93 2.492-2.492 3.413.869.103 1.643.192 2.32.269.677.077 1.207.141 1.591.191-1.457 2.71-3.285 5.483-5.483 8.321-.716-.051-1.316-.096-1.802-.134a364.662 364.662 0 0 0-3.298-.249c-1.38 2.224-2.537 4.211-3.47 5.962-.934 1.751-1.648 3.355-2.147 4.813-.498 1.457-.747 2.837-.747 4.141 0 1.764.702 2.646 2.108 2.646.972 0 2.243-.518 3.815-1.553 1.572-1.036 3.674-2.627 6.308-4.774v2.569c-6.902 7.49-12.002 11.235-15.299 11.235-1.15 0-2.077-.448-2.78-1.343s-1.055-2.044-1.055-3.45c0-.945.198-2.071.595-3.375.396-1.304 1.105-3.271 2.128-5.904-.358.307-.697.607-1.017.9a101.976 101.976 0 0 1-1.744 1.573c-.307.269-.613.543-.92.824v-2.646c2.684-2.249 5.93-6.198 9.739-11.848a30.894 30.894 0 0 0-2.262-.077c-1.509 0-2.633.103-3.374.307-.307.077-.595.16-.863.249-.268.09-.454.134-.556.134-.103 0-.153-.077-.153-.23 0-.844.523-2.109 1.572-3.796.844-1.431 1.642-2.492 2.396-3.182s1.674-1.156 2.761-1.4c1.086-.242 2.613-.364 4.582-.364z"}),s.a.createElement("path",{style:this.state.svg2,d:"M565.686 403.756v-.92c6.595-6.953 11.132-11.822 13.612-14.609.562-3.144 1.917-4.716 4.064-4.716.536 0 1.111.153 1.725.46l.23.729c-.103.307-.153.742-.153 1.304 0 .486.186 1.387.556 2.703.37 1.317.658 2.422.863 3.316.204.896.307 1.905.307 3.029 0 1.687-.384 3.304-1.15 4.85-.767 1.547-1.879 3.029-3.336 4.448s-3.336 2.87-5.637 4.353c.921.152 1.649.229 2.186.229 1.048 0 2.18-.262 3.394-.786 1.214-.523 2.454-1.227 3.72-2.109 1.265-.881 2.741-2.025 4.429-3.432v2.569c-3.272 3.196-6.199 5.617-8.781 7.267-2.582 1.648-4.806 2.473-6.672 2.473-2.402 0-4.627-1.021-6.671-3.067-1.202-1.228-1.95-2.402-2.243-3.528-.297-1.125-.443-2.645-.443-4.563zm14.301-5.866l-.689-5.598c-1.586 1.79-4.973 5.228-10.161 10.314 1.533.333 2.581.78 3.144 1.342.563.563 1.355 1.649 2.378 3.26 1.738-.715 3.073-1.693 4.007-2.934.933-1.239 1.399-2.933 1.399-5.08a9.76 9.76 0 0 0-.078-1.304z"}))))),s.a.createElement(m.l,null,s.a.createElement(m.h,{xs:"12",lg:"7"},s.a.createElement("div",{className:"justin-video"},s.a.createElement(d.a,{url:n(63),controls:!0,fileConfig:{attributes:{poster:"https://dearestjustin.org/share.png"}},width:"100%",height:"100%"}))),s.a.createElement(m.h,{xs:"12",lg:"5",className:"justin-header"},s.a.createElement(m.b,{color:"primary",pill:!0},"Open Campaign"),s.a.createElement("h2",null,"Help us get this outrageous video love letter from America on Justin\u2019s TV set in Canada"),s.a.createElement("hr",null),s.a.createElement("p",null,"Who knew how cheap it was to buy airtime in Canada? For the mere price of a fancy dinner for two (a $14,000 dinner) we can play our video valentine during SNL & Colbert in the Ottawa market."),e&&s.a.createElement("h4",null,s.a.createElement("span",{className:"badge badge-primary"},s.a.createElement("strong",null,"$",this.props.contributionTotal," USD raised"))))),s.a.createElement(m.l,null,s.a.createElement(m.h,{xs:"12",md:"5",className:"order-md-2"},s.a.createElement("h3",null,"Donation Levels"),s.a.createElement("hr",null),s.a.createElement(m.c,null,s.a.createElement(m.d,null,s.a.createElement(m.g,null,"$10 USD"),s.a.createElement(m.e,null,"Contributor Level"),s.a.createElement(m.f,null,"Donate $10 towards getting our ad onto the airwaves and we'll send you a whole mess of good vibes, on the house! (You're probably already swimming in them)"),s.a.createElement(u.a,{name:"Dearest Justin",email:this.props.advocacy.activist.email,token:this.levelOne,amount:1e3,stripeKey:"pk_live_lYyEqGantSOYpe5zHVTqknKn",zipCode:!0},s.a.createElement("button",{className:"btn btn-primary"},"Contribute $10")))),s.a.createElement(m.c,null,s.a.createElement(m.d,null,s.a.createElement(m.g,null,"$25 USD"),s.a.createElement(m.e,null,"Activist Level"),s.a.createElement(m.f,null,"Donate $25 and then when Trudeau dismisses this pipeline wholesale you can give yourself a big ol' pat-on-the-back. It was probably your $25 that got the ad in front of him. No doubt."),s.a.createElement(u.a,{name:"Dearest Justin",email:this.props.advocacy.activist.email,token:this.levelTwo,amount:2500,stripeKey:"pk_live_lYyEqGantSOYpe5zHVTqknKn",zipCode:!0},s.a.createElement("button",{className:"btn btn-primary"},"Contribute $25")))),s.a.createElement(m.c,null,s.a.createElement(m.d,null,s.a.createElement(m.g,null,"$50 USD"),s.a.createElement(m.e,null,"Tastemaker Level"),s.a.createElement(m.f,null,"Donate $50 and sleep soundly knowing that you are a creator of culture, not just a consumer of it. By the way, do you have any film recommendations? Our Netflix queues are getting pretty dry."),s.a.createElement(u.a,{name:"Dearest Justin",email:this.props.advocacy.activist.email,token:this.levelThree,amount:5e3,stripeKey:"pk_live_lYyEqGantSOYpe5zHVTqknKn",zipCode:!0},s.a.createElement("button",{className:"btn btn-primary"},"Contribute $50")))),s.a.createElement(m.c,null,s.a.createElement(m.d,null,s.a.createElement(m.g,null,"$500 USD"),s.a.createElement(m.e,null,"Producer Level"),s.a.createElement(m.f,null,"Donate $500 and be able to brag to your friends that you're kind of a big deal TV producer these days. If you want to use as a reference, you can have any of the major film or television studios in North America contact us and we'll confirm it with them."),s.a.createElement(u.a,{name:"Dearest Justin",email:this.props.advocacy.activist.email,token:this.levelFour,amount:5e4,stripeKey:"pk_live_lYyEqGantSOYpe5zHVTqknKn",zipCode:!0},s.a.createElement("button",{className:"btn btn-primary"},"Contribute $500")))),s.a.createElement(m.c,null,s.a.createElement(m.d,null,s.a.createElement(m.g,null,"$5000 USD"),s.a.createElement(m.e,null,"Financier Level"),s.a.createElement(m.f,null,"If only more financiers were interested in climate justice. All they go on about is oil and profit. Not you, though. You're a mensch."),s.a.createElement(u.a,{name:"Dearest Justin",email:this.props.advocacy.activist.email,token:this.levelFive,amount:5e5,stripeKey:"pk_live_lYyEqGantSOYpe5zHVTqknKn",zipCode:!0},s.a.createElement("button",{className:"btn btn-primary"},"Contribute $5000"))))),s.a.createElement(m.h,{xs:"12",md:"7",className:"order-md-1 story"},s.a.createElement("h3",null,"What We Need From Justin"),s.a.createElement("hr",null),s.a.createElement("p",null,"Justin Trudeau has been a dreamboat on a lot of issues, from gay rights to taxing the rich to respecting immigrants. But he\u2019s breaking our hearts when it comes to climate and his passion for building dirty Tar Sands pipelines. Help us broadcast this hilarious and sexy video valentine on televisions in Ottawa where Justin lives. Together with Justin, we can stop the Kinder Morgan pipeline and save our climate."),s.a.createElement("h4",null,"\u270a\ud83c\udffe Respect Indigenous Sovereignty"),s.a.createElement("p",null,"Seven First Nations in the pipeline's path (and dozens more all over the continent) have been fighting to stop Kinder Morgan for years. Justin ",s.a.createElement("em",null,"explicitly")," promised that indigenous groups would have veto power over oil projects affecting their land and water. Now he\u2019s steamrolling right over them. This is unacceptable."),s.a.createElement("h4",null,"\ud83d\udca7 Water Is Life"),s.a.createElement("p",null,"If the Kinder Morgan pipeline becomes operational, it will cross scores of rivers and streams and imperil the fresh water of millions of Canadians. The dirty crude, known as bitumen, is toxic to the region's salmon. It will also mean 700% more oil tankers traversing the fragile waters of the Salish Sea (aka Puget Sound)."),s.a.createElement("h4",null,"\ud83d\udca3 Real Hunks Don't Detonate Carbon Bombs"),s.a.createElement("p",null,"Kinder Morgan's Trans Mountain Pipeline expansion would dramatically ramp up Big Oil's exploitation of the Tar Sands, one of the Earth's largest and dirtiest carbon deposits. \"If Canada proceeds, and we do nothing, it will be game over for the climate,\" according to James Hansen, former head of NASA's Goddard Institute."),s.a.createElement("h4",null,"\ud83d\udcfa Broadcast Schedules"),s.a.createElement(m.m,{className:"table table-bordered table-inverted"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{scope:"col"},"Program"),s.a.createElement("th",{scope:"col"},"Airtime"),s.a.createElement("th",{scope:"col"},"Price"))),s.a.createElement("tbody",null,s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83e\udd85 Colbert"),s.a.createElement("td",null,"Nightly, 11:35pm"),s.a.createElement("td",null,"$1360 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\u270d\ud83c\udffc Madam Secretary"),s.a.createElement("td",null,"Sun 10p-11p"),s.a.createElement("td",null,"$3995 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83d\ude02 SNL"),s.a.createElement("td",null,"Sat 11:30p-1a"),s.a.createElement("td",null,"$11,293 USD")),s.a.createElement("tr",null,s.a.createElement("th",{scope:"row"},"\ud83c\udfd5 Survivor"),s.a.createElement("td",null,"Wed 8p-10p"),s.a.createElement("td",null,"$31,256 USD"))))))))}}]),t}(s.a.Component),g=function(e){return{contributionTotal:e.contribution.total,advocacy:e.advocacy,contributionComplete:e.contribution.complete}},b=function(e){return{completedContribution:function(t){return e(Object(h.a)(t))},setContributionTotal:function(){return e(Object(h.b)())}}};t.a=Object(l.b)(g,b)(v)}]);
//# sourceMappingURL=main.9b2e3795.js.map | 308,521 | 617,000 | 0.697239 |
b85c34f5a64aea1b55cbf3a6754526a76f449040 | 3,219 | js | JavaScript | src/client/components/dashboard/Dashboard.js | TSaker95/Grocer-React-Website | 589a0ce776deb11646fb7ef1e71e6d264b3c0911 | [
"MIT"
] | null | null | null | src/client/components/dashboard/Dashboard.js | TSaker95/Grocer-React-Website | 589a0ce776deb11646fb7ef1e71e6d264b3c0911 | [
"MIT"
] | 5 | 2020-09-06T11:26:10.000Z | 2022-02-26T15:10:12.000Z | src/client/components/dashboard/Dashboard.js | TSaker95/Grocer-React-Website | 589a0ce776deb11646fb7ef1e71e6d264b3c0911 | [
"MIT"
] | null | null | null | import React, { useEffect, useState } from "react";
import { api } from "../../api";
import DashboardNavbar from "./DashboardNavbar";
import ProductList from "./ProductList";
import SpecialsList from "./SpecialsList";
import { state } from "../AuthHandler";
import { Redirect } from "react-router-dom";
export default function Dashboard(props) {
const [products, setProducts] = useState([]);
const [specials, setSpecials] = useState([]);
// Get the all products from the API
const getProducts = () => {
api
.get("api/products")
.then(res => setProducts([...res.data]))
.catch(err => console.log(`Error: ${err}`));
};
// Get all specials from the API
const getSpecials = () => {
api
.get("/api/specials")
.then(res => setSpecials([...res.data]))
.catch(err => console.log(`Error: ${err}`));
};
// Initial render
useEffect(() => {
getProducts();
getSpecials();
return () => {};
}, []);
// Add products functions
const addProduct = product => {
// Send post request to API with new product
api
.post("/api/products", product)
.then(res => {
getProducts();
})
.catch(err => console.log(err));
};
// Update products function
const updateProduct = (prevProduct, updatedProductInfo) => {
api
.put(`api/products/${prevProduct._id}`, updatedProductInfo)
.then(res => getProducts())
.catch(err => console.log(err));
};
// Delete products function
const deleteProduct = productId => {
// First delete any specials for the product
const productSpecial = specials.filter(
special => special.productId === productId
);
if (productSpecial) {
productSpecial.forEach(special => {
api.delete(`api/specials/${special._id}`).then(res => getSpecials());
});
}
api
.delete(`api/products/${productId}`)
.then(res => {
getProducts();
})
.catch(err => console.log(err));
};
// Add specials function
const addSpecial = special => {
api
.post("/api/specials", special)
.then(res => {
getSpecials();
})
.catch(err => console.log(err));
};
const updateSpecial = (prevSpecial, updatedSpecial) => {
api
.put(`/api/specials/${prevSpecial._id}`, updatedSpecial)
.then(res => getSpecials())
.catch(err => console.log(err));
};
const deleteSpecial = specialId => {
api
.delete(`/api/specials/${specialId}`)
.then(res => {
getSpecials();
})
.catch(err => console.log(err));
};
return state.isLoggedIn === "true" ? (
<div className="container">
<DashboardNavbar props={props} />
<SpecialsList
specials={specials ? specials : []}
products={products ? products : []}
addSpecial={addSpecial}
deleteSpecial={deleteSpecial}
updateSpecial={updateSpecial}
/>
<ProductList
products={products ? products : []}
specials={specials ? specials : []}
deleteProduct={deleteProduct}
addProduct={addProduct}
updateProduct={updateProduct}
/>
</div>
) : (
<Redirect to="/login" />
);
}
| 25.959677 | 77 | 0.580926 |
b85cf65ec93b497d3988df3311e639d8ef620acd | 1,325 | js | JavaScript | download-pdfs/cypress/integration/make-screenshots.spec.js | varyonic/assembla-to-jira-migration | 1709e485b07b405114544094b0e4592d04c5c002 | [
"MIT"
] | 20 | 2017-11-09T07:48:49.000Z | 2021-12-29T16:39:51.000Z | download-pdfs/cypress/integration/make-screenshots.spec.js | varyonic/assembla-to-jira-migration | 1709e485b07b405114544094b0e4592d04c5c002 | [
"MIT"
] | 36 | 2017-10-09T08:10:54.000Z | 2021-12-30T20:49:15.000Z | download-pdfs/cypress/integration/make-screenshots.spec.js | varyonic/assembla-to-jira-migration | 1709e485b07b405114544094b0e4592d04c5c002 | [
"MIT"
] | 15 | 2018-01-19T20:23:25.000Z | 2021-12-28T19:28:51.000Z | /// <reference types="Cypress" />
const tickets = require('../data/tickets.data.js');
const sel_ticket_number = '#ticketDetailsContainer > div > section > div > div > div.plr-l.width-30.width-33--vp-n.width-100--vp-s.fs-xs.lh-xxs > div.float-right.ws-nowrap';
const sel_ticket_to_pdf_button = '#ticket-to-pdf-button';
const username = 'kgish';
const password = 'secret';
context('Make screenshots', () => {
beforeEach(() => {
cy.visit('https://app.assembla.com/login');
cy.get('#user_login').type(username);
cy.get('#user_password').type(password);
cy.get('#signin_button').click();
});
it('should be able to navigate to each ticket page and make screenshot', () => {
tickets.forEach(ticket => {
const ticket_number = ticket.ticket_number;
const jira_key = ticket.jira_key;
const url = `https://app.assembla.com/spaces/travelcommerce/tickets/${ticket_number}/details`;
cy.visit(url);
cy.get(sel_ticket_number).contains(`#${ticket_number}`);
// Download the pdf
cy.get(sel_ticket_to_pdf_button).click()
// Make screenshot
// const filename = `${ticket_number}-${jira_key}`;
// cy.screenshot(filename, {capture: 'fullPage'});
});
});
});
| 38.970588 | 173 | 0.609057 |
b85d5cfb95139858e8bf87f8186223cdb224edda | 1,567 | js | JavaScript | jquery.ajaxDebounce.js | ronency/ajaxDebounce | ffe17fb719f4b40cafd4df14fbd1d31de731ee0a | [
"MIT"
] | 1 | 2022-02-10T08:32:31.000Z | 2022-02-10T08:32:31.000Z | jquery.ajaxDebounce.js | ronency/ajaxDebounce | ffe17fb719f4b40cafd4df14fbd1d31de731ee0a | [
"MIT"
] | null | null | null | jquery.ajaxDebounce.js | ronency/ajaxDebounce | ffe17fb719f4b40cafd4df14fbd1d31de731ee0a | [
"MIT"
] | null | null | null | (function ($) {
var count = 0;
var lastFetchId = 0,
timeoutActive,
defaults = {
delay: 250,
};
$.ajaxDebounce = function( options ) {
var settings = $.extend(defaults, options );
var doAjax = function(ajaxOptions){
var currentFetchId = new Date().getTime();
timeoutActive = null; // Resets the "non-active" delay count
var smartAjaxOptions = $.extend({}, ajaxOptions);
smartAjaxOptions.success = function(data) {
if ( isMostRecentCall(currentFetchId) ) {
ajaxOptions.success(data);
}
};
smartAjaxOptions.error = function(xhr, status, error) {
if ( !!ajaxOptions.error && isMostRecentCall(currentFetchId) ) {
ajaxOptions.error(xhr, status, error);
}
}
var isMostRecentCall = function(currentId) {
// To resolve a race-condition, where a later ajax call comes back before an earlier one.
if (currentId < lastFetchId) {
return false;
}
lastFetchId = currentId;
return true;
}
$.ajax(smartAjaxOptions);
};
if(timeoutActive){
clearTimeout(timeoutActive);
}
timeoutActive = setTimeout(function(){ doAjax(options.ajax); }, settings.delay);
};
}(jQuery));
var $input = $('input');
var getAjaxObject = function(){
return {
url: '/echo/html/',
data: {value: $input.val()},
success: function(data){},
error: function(xhr, status, error){}
};
}
$input.keyup(function(){$.ajaxDebounce({delay: 100, ajax: getAjaxObject()});});
| 28.490909 | 97 | 0.597958 |
b85d69b005731f8a8d35fd853db6a67ddd8b1db1 | 5,117 | js | JavaScript | resources/js/components/parent/Classes.js | compilersadat/Soach | 3cd68b65a048ddbf4ac46a09a3983cf60e9cb08d | [
"MIT"
] | null | null | null | resources/js/components/parent/Classes.js | compilersadat/Soach | 3cd68b65a048ddbf4ac46a09a3983cf60e9cb08d | [
"MIT"
] | null | null | null | resources/js/components/parent/Classes.js | compilersadat/Soach | 3cd68b65a048ddbf4ac46a09a3983cf60e9cb08d | [
"MIT"
] | null | null | null | import React, { Component } from "react";
import ReactDOM from 'react-dom';
import BG from "../../assets/class.png";
import BGs from "../../assets/background1.png";
import "@fortawesome/fontawesome-free/css/all.min.css";
import "bootstrap-css-only/css/bootstrap.min.css";
import "mdbreact/dist/css/mdb.css";
import { MDBRow, MDBCol, MDBIcon,MDBCard ,MDBBtn} from "mdbreact";
import {Redirect} from "react-router-dom";
export default class Classes extends Component{
state={
redirect:false
}
handleClick = () => {
// some action...
// then redirect
this.setState({redirect: true});
}
render() {
if (this.state.redirect) {
console.log(this.state.redirect);
return <Redirect push to="/parent/subjects" />;
}
return(
<div className="container ">
<MDBRow className="justify-text-center my-5">
<MDBCol md="4" className="d-none d-md-block pt-5 text-center">
<img src={BGs} className="img-fluid"/>
</MDBCol>
<MDBCol md="8 " className="text-center">
<h2 className="indigo-text h-2"><b>I Am In Class ...</b></h2>
<MDBRow>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" onClick={this.handleClick} style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class I</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class II</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class III</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class IV</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class V</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class VI</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class VII</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class VIII</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBCard className="z-depth-2 text-center p-3 pink-text" style={{backgroundImage: `url(${BG})`,backgroundSize:"cover"}}>
<h3 style={{fontWeight:"bold"}}>Class IX</h3>
</MDBCard>
</MDBCol>
<MDBCol md="4 mt-5 ">
<MDBBtn color="indigo" style={{borderRadius :"1.5rem" ,fontWeight:"bold" ,fontSize:"13px"}}><MDBIcon icon="arrow-left"></MDBIcon> Go Back</MDBBtn>
</MDBCol>
</MDBRow>
</MDBCol>
</MDBRow>
</div>
);
}
}
if (document.getElementById('classes')) {
ReactDOM.render(<Classes/>, document.getElementById('classes'));
}
| 51.686869 | 183 | 0.43932 |
b85e7a2d28b586e1fbb75b3c4f0721b998c776bb | 577 | js | JavaScript | app/assets/javascripts/fhir/ImagingStudySeriesPerformer.js | MeasureAuthoringTool/fhir-mongoose-models | 37c5655cca2c240e2584163c882710386209d423 | [
"CC0-1.0"
] | null | null | null | app/assets/javascripts/fhir/ImagingStudySeriesPerformer.js | MeasureAuthoringTool/fhir-mongoose-models | 37c5655cca2c240e2584163c882710386209d423 | [
"CC0-1.0"
] | 3 | 2020-07-10T13:19:13.000Z | 2020-09-03T22:13:45.000Z | app/assets/javascripts/fhir/ImagingStudySeriesPerformer.js | MeasureAuthoringTool/fhir-mongoose-models | 37c5655cca2c240e2584163c882710386209d423 | [
"CC0-1.0"
] | null | null | null | const { BackboneElementSchema } = require('./BackboneElement');
const { CodeableConceptSchema } = require('./allSchemaHeaders.js');
const { ReferenceSchema } = require('./allSchemaHeaders.js');
const { ImagingStudySeriesPerformerSchema } = require('./allSchemaHeaders.js');
ImagingStudySeriesPerformerSchema.add(BackboneElementSchema);
ImagingStudySeriesPerformerSchema.remove('id');
ImagingStudySeriesPerformerSchema.add({
function: CodeableConceptSchema,
actor: ReferenceSchema,
});
module.exports.ImagingStudySeriesPerformerSchema = ImagingStudySeriesPerformerSchema;
| 41.214286 | 85 | 0.812825 |
b85e7a87eba3a8e1d0276199e010899ffeb246f4 | 14,272 | js | JavaScript | docsets/quasar.docset/Contents/Resources/Documents/js/25.19c522c5.js | rNoz/vue-docsets | 196e7ff120e843fdd7e81024bc549691017b3b6e | [
"MIT"
] | 1 | 2021-06-27T10:11:47.000Z | 2021-06-27T10:11:47.000Z | docsets/quasar.docset/Contents/Resources/Documents/js/25.19c522c5.js | rNoz/vue-docsets | 196e7ff120e843fdd7e81024bc549691017b3b6e | [
"MIT"
] | 10 | 2021-03-01T21:02:37.000Z | 2022-02-26T23:32:56.000Z | docsets/quasar.docset/Contents/Resources/Documents/js/25.19c522c5.js | rNoz/vue-docsets | 196e7ff120e843fdd7e81024bc549691017b3b6e | [
"MIT"
] | null | null | null | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[25],{1383:function(t,s,e){"use strict";e.r(s);var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("doc-page",{attrs:{title:"App Extension Prompts API",nav:t.nav}},[e("p",[t._v("This page refers to "),e("code",{staticClass:"doc-token"},[t._v("src/prompts.js")]),t._v(" file which handles the prompts when installing the App Extension. Not all App Extensions will need prompts – this is an optional step.")]),e("p",[t._v("The user’s answers are stored into "),e("code",{staticClass:"doc-token"},[t._v("/quasar.extensions.json")]),t._v(" (root of project folder), which should not be tampered with unless you really know what you are doing.")]),e("p",[t._v("Example of basic structure of the file:")]),e("pre",{pre:!0,attrs:{class:"doc-code language-js"}},[e("code",{pre:!0,attrs:{class:"doc-code__inner doc-code__inner--prerendered language-js"}},[t._v("module"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("exports")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// questions")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])]),e("p",[t._v("You will have access to "),e("code",{staticClass:"doc-token"},[t._v("api.prompts")]),t._v(" (which holds your App Extension’s answers) in "),e("doc-link",{attrs:{to:"/app-extensions/development-guide/install-api"}},[t._v("Install")]),t._v(", "),e("doc-link",{attrs:{to:"/app-extensions/development-guide/index-api"}},[t._v("Index")]),t._v(" and "),e("doc-link",{attrs:{to:"/app-extensions/development-guide/uninstall-api"}},[t._v("Uninstall")]),t._v(".")],1),e("p",[t._v("Let’s now focus on the structure of the returned Array which defines the questions. The sections below offer examples for the most used types of questions.")]),e("div",{staticClass:"doc-note doc-note--warning"},[e("p",{staticClass:"doc-note__title"},[t._v("WARNING")]),e("p",[t._v("The following is not an exhaustive list of possible types of questions and by no means it describes the full API available. Check out "),e("doc-link",{attrs:{to:"https://github.com/SBoudrias/Inquirer.js#readme"}},[t._v("Inquirer.js")]),t._v(" for that (which is used by Quasar CLI under the covers).")],1)]),e("h2",{staticClass:"doc-heading doc-h2",attrs:{id:"String"},on:{click:function(s){return t.copyHeading("String")}}},[t._v("String")]),e("pre",{pre:!0,attrs:{class:"doc-code language-js"}},[e("code",{pre:!0,attrs:{class:"doc-code__inner doc-code__inner--prerendered language-js"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v('// "description" will be the variable')]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// storing the answer")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'description'")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'input'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n required"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// optional")]),t._v("\n message"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Project description'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'A Quasar Framework app'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// optional")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])]),e("pre",{pre:!0,attrs:{class:"doc-code language-js"}},[e("code",{pre:!0,attrs:{class:"doc-code__inner doc-code__inner--prerendered language-js"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'source_build'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'input'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n required"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// optional")]),t._v("\n message"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'If you want a separate file to be the source image during production, please specify it here: '")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("validate")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("input")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...do something ...")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("default")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("answers")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" answers"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("source_dev "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" defaultImg\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])]),e("h2",{staticClass:"doc-heading doc-h2",attrs:{id:"Confirm"},on:{click:function(s){return t.copyHeading("Confirm")}}},[t._v("Confirm")]),e("pre",{pre:!0,attrs:{class:"doc-code language-js"}},[e("code",{pre:!0,attrs:{class:"doc-code__inner doc-code__inner--prerendered language-js"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v('// "featureX" will be the variable')]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// storing the answer")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'featureX'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'confirm'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n message"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Use Feature X?'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// optional")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])]),e("h2",{staticClass:"doc-heading doc-h2",attrs:{id:"List-of-choices"},on:{click:function(s){return t.copyHeading("List-of-choices")}}},[t._v("List of choices")]),e("pre",{pre:!0,attrs:{class:"doc-code language-js"}},[e("code",{pre:!0,attrs:{class:"doc-code__inner doc-code__inner--prerendered language-js"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v('// "iconSet" will be the variable')]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// storing the answer")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'iconSet'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'list'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n message"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Choose Icon Set'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n choices"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Material Icons (recommended)'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n value"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'material-icons'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// value of the answer variable")]),t._v("\n short"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Material Icons'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Short name displayed after user picks this")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n name"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Fontawesome'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n value"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'fontawesome'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// value of the answer variable")]),t._v("\n short"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Fontawesome'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Short name displayed after user picks this")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ... all other choices")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])},a=[],r=e("8669"),o="App Extension Prompts API | Quasar Framework",p="Syntax of the questions that the user is going to be asked in order to configure the Quasar App Extension.",c={meta:{title:"App Extension Prompts API",meta:{title:{name:"title",content:o},ogTitle:{name:"og:title",content:o},twitterTitle:{name:"twitter:title",content:o},description:{name:"description",content:p},ogDesc:{name:"og:description",content:p},twitterDesc:{name:"twitter:description",content:p}}},preFetch:function(t){var s=t.store;s.commit("updateToc",[{id:"String",title:"String"},{id:"Confirm",title:"Confirm"},{id:"List-of-choices",title:"List of choices"}])},created:function(){this.nav=[{name:"Introduction",category:"Development Guide",path:"/app-extensions/development-guide/introduction",dir:"left"},{name:"Install API",category:"Development Guide",path:"/app-extensions/development-guide/install-api",dir:"right"}]},methods:{copyHeading:r["a"]}},i=c,v=e("2877"),_=Object(v["a"])(i,n,a,!1,null,null,null);s["default"]=_.exports}}]); | 14,272 | 14,272 | 0.60398 |
b85ee78efa13cae1179e52bba4f309b631cd9066 | 89 | js | JavaScript | benchmarks/index.js | esmodule-browser-export/asap | 6364d0f1b74e8bf3e3381a8671079a78bf235c3d | [
"MIT"
] | 528 | 2015-01-06T14:43:18.000Z | 2022-03-27T14:32:58.000Z | benchmarks/index.js | esmodule-browser-export/asap | 6364d0f1b74e8bf3e3381a8671079a78bf235c3d | [
"MIT"
] | 534 | 2019-11-15T02:30:56.000Z | 2021-11-25T16:00:20.000Z | benchmarks/index.js | esmodule-browser-export/asap | 6364d0f1b74e8bf3e3381a8671079a78bf235c3d | [
"MIT"
] | 66 | 2015-02-02T14:26:52.000Z | 2022-01-05T04:32:46.000Z | var drain = require("./drain");
var benchmark = require("./scaffold");
benchmark.run();
| 17.8 | 38 | 0.662921 |
b85fd11f1bf42327700cf14f24b7190270c9ac6d | 2,718 | js | JavaScript | packages/constructs/dist/API.js | Bewond/cloudshape | 7c1715b8e292e31c443fca0101031850c1f9497b | [
"Apache-2.0"
] | 1 | 2022-03-22T23:43:59.000Z | 2022-03-22T23:43:59.000Z | packages/constructs/dist/API.js | Bewond/cloudshape | 7c1715b8e292e31c443fca0101031850c1f9497b | [
"Apache-2.0"
] | null | null | null | packages/constructs/dist/API.js | Bewond/cloudshape | 7c1715b8e292e31c443fca0101031850c1f9497b | [
"Apache-2.0"
] | null | null | null | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomDomain = exports.API = exports.noneAuthorizer = exports.HttpMethod = void 0;
const gateway = __importStar(require("@aws-cdk/aws-apigatewayv2-alpha"));
const integrations = __importStar(require("@aws-cdk/aws-apigatewayv2-integrations-alpha"));
const acm = __importStar(require("aws-cdk-lib/aws-certificatemanager"));
/**
* Supported HTTP methods.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exports.HttpMethod = gateway.HttpMethod;
/**
* Explicitly configure no authorizers on specific API routes.
*/
exports.noneAuthorizer = new gateway.HttpNoneAuthorizer();
/**
* @summary API gateway construct.
*/
class API extends gateway.HttpApi {
constructor(scope, id, props = {}) {
super(scope, id, {
...props,
apiName: props.name ?? id,
corsPreflight: props.cors ?? { allowOrigins: ["*"] },
});
}
/**
* Add API route.
*/
addRoute(route) {
const integration = new integrations.HttpLambdaIntegration(`${this.httpApiName}RouteIntegration`, route.handler);
this.addRoutes({
...route,
path: route.path,
methods: [route.method],
integration: integration,
});
}
}
exports.API = API;
class CustomDomain extends gateway.DomainName {
constructor(scope, id, props) {
super(scope, id, {
domainName: props.name,
certificate: acm.Certificate.fromCertificateArn(scope, `${id}DomainCertificate`, props.certificateArn),
});
}
}
exports.CustomDomain = CustomDomain;
//# sourceMappingURL=API.js.map | 37.232877 | 141 | 0.635394 |
b864ab057d06c94f93b0696803e4c1991b2a3d4f | 47 | js | JavaScript | webapp/src/common/components/MoreActionsButton/index.js | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | null | null | null | webapp/src/common/components/MoreActionsButton/index.js | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | 45 | 2019-12-23T23:45:10.000Z | 2022-03-31T05:01:22.000Z | webapp/src/common/components/MoreActionsButton/index.js | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | 1 | 2020-12-26T17:16:58.000Z | 2020-12-26T17:16:58.000Z | export { default } from './MoreActionsButton';
| 23.5 | 46 | 0.723404 |
b86517684b95b403df10ca350cd246dab797a749 | 887 | js | JavaScript | modules/apps/jaggery/emm/src/emm/units/footer/footer.js | pasindujw/product-emm | 8a1e6955fca812ac3c3df11ce988f14bcb03d8e2 | [
"Apache-2.0"
] | null | null | null | modules/apps/jaggery/emm/src/emm/units/footer/footer.js | pasindujw/product-emm | 8a1e6955fca812ac3c3df11ce988f14bcb03d8e2 | [
"Apache-2.0"
] | null | null | null | modules/apps/jaggery/emm/src/emm/units/footer/footer.js | pasindujw/product-emm | 8a1e6955fca812ac3c3df11ce988f14bcb03d8e2 | [
"Apache-2.0"
] | null | null | null | function onRequest(context){
var mdmProps = application.get("PINCH_CONFIG");
var companyProps = session.get("COMPANY_DETAILS");
if (!companyProps) {
context.companyName = mdmProps.generalConfig.companyName;
context.copyrightPrefix = mdmProps.generalConfig.copyrightPrefix;
context.copyrightOwner = mdmProps.generalConfig.copyrightOwner;
context.copyrightOwnersSite = mdmProps.generalConfig.copyrightOwnersSite;
context.copyrightSuffix = mdmProps.generalConfig.copyrightSuffix;
} else {
context.companyName = companyProps.companyName;
context.copyrightPrefix = companyProps.copyrightPrefix;
context.copyrightOwner = companyProps.copyrightOwner;
context.copyrightOwnersSite = companyProps.copyrightOwnersSite;
context.copyrightSuffix = companyProps.copyrightSuffix;
}
return context;
} | 49.277778 | 81 | 0.747463 |
b86602241dfcf43700ea2a79e498aac541257fc2 | 6,693 | js | JavaScript | src/builddocs.js | marijnh/builddocs | 5d5162d64706e47d0e8d853c29b63b3dd07a81ed | [
"MIT"
] | 17 | 2016-09-01T18:20:50.000Z | 2022-01-23T07:07:45.000Z | src/builddocs.js | marijnh/builddocs | 5d5162d64706e47d0e8d853c29b63b3dd07a81ed | [
"MIT"
] | 10 | 2017-12-12T01:22:03.000Z | 2019-09-03T07:02:49.000Z | src/builddocs.js | marijnh/builddocs | 5d5162d64706e47d0e8d853c29b63b3dd07a81ed | [
"MIT"
] | 10 | 2016-10-09T20:51:42.000Z | 2019-08-14T12:31:22.000Z | let fs = require("fs")
let Mold = require("mold-template")
let builtins = require("./builtins")
exports.browserImports = require("./browser")
exports.build = function(config, items) {
if (!items) items = require("getdocs-ts").gather(config)
let format = config.format || "html"
let renderItem =
format == "html" ? name => '<div data-item="' + name + '"></div>' :
format == "markdown" ? (() => {
let mold = loadMarkdownTemplates(config, items)
return name => mold.defs.item({item: items[name], name}).replace(/[\n]{2}$/g, "\n")
})()
: null
let instantiateTemplate = template => {
if (format == "html") template = template.replace(/(^|\n)(@\w+\n+)*@\w+(?=$|\n)/g, "<dl>\n$&\n</dl>")
let placed = Object.create(null), problems = []
let result = template.replace(/(^|\n)@(\w+)(?=$|\n)/g, function(_, before, name) {
if (placed[name]) problems.push("Item " + name + " is included in doc template twice")
if (!items[name]) problems.push("Unknown item " + name + " included in doc template")
placed[name] = true
return before + renderItem(name)
})
for (let name in items) if (!placed[name])
problems.push("Item " + name + " is missing from the doc template")
return {result, problems}
}
let main
if (config.main || config.mainText) {
let {problems, result} = instantiateTemplate(config.mainText || fs.readFileSync(config.main, "utf8"))
if (problems.length)
for (let prob of problems) console.log(prob)
else
main = result
}
if (!main) main = instantiateTemplate(Object.keys(items).map(name => "@" + name).join("\n\n")).result
if (format == "markdown") {
return main.replace(//g, "\n")
} else if (format == "html") {
let mdOptions = {html: true}
if (config.markdownOptions) for (let prop in config.markdownOptions) mdOptions[prop] = config.markdownOptions[prop]
let markdown = require("markdown-it")(mdOptions).use(require("markdown-it-deflist"))
let mold = loadHTMLTemplates(markdown, config, items)
let doc = markdown.render(main)
return doc.replace(/<div data-item="([^"]+)"><\/div>/g, function(_, name) {
return mold.defs.item({item: items[name], name})
})
}
}
function prefix(config) {
let prefix = config.anchorPrefix
if (prefix == null) prefix = config.name ? config.name + "." : ""
return prefix
}
function templateDir(mold, dir, ext) {
fs.readdirSync(dir).forEach(function(filename) {
let match = /^(.*?)\.(\w+)$/.exec(filename)
if (match && match[2] == ext && !has(mold.defs, match[1]))
mold.bake(match[1], fs.readFileSync(dir + "/" + filename, "utf8").trim())
})
}
function loadHTMLTemplates(markdown, config, items) {
let mold = new Mold(moldEnv(config, items))
mold.defs.markdown = function(text) {
if (!text) return ""
return markdown.render(config.markdownFilter ? config.markdownFilter(text) : text)
}
mold.defs.markdownFile = function(name) {
return mold.defs.markdown(fs.readFileSync(name + ".md", "utf8"))
}
if (config.templates) templateDir(mold, config.templates, "html")
templateDir(mold, __dirname + "/../templates", "html")
return mold
}
function loadMarkdownTemplates(config, items) {
let mold = new Mold(moldEnv(config, items))
if (config.templates) templateDir(mold, config.templates, "md")
templateDir(mold, __dirname + "/../templates/markdown", "md")
mold.defs.indent = function({text, depth}) {
return text.trim().split("\n").map(line => /\S/.test(line) ? " ".repeat(depth) + line : "").join("\n")
}
return mold
}
function has(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}
function isLiteral(type) {
return /^(\"|\'|-?\d)/.test(type)
}
function maybeLinkType(config, items, type) {
let name = type.type
if (type.typeParamSource) return "#" + prefix(config) + type.typeParamSource
if (has(items, name) && items[name].kind != "reexport") return "#" + prefix(config) + name
if (isLiteral(name)) return false
let imports = config.imports, qualified = config.qualifiedImports
if (imports) for (let i = 0; i < imports.length; i++) {
let set = imports[i]
if (typeof set == "function") {
let result = set(type)
if (result) return result
} else if (has(set, name)) {
return set[name]
}
}
if (qualified) for (let pref in qualified) if (name.indexOf(pref + ".") == 0) {
let inner = name.slice(pref.length + 1)
if (has(qualified[pref], inner))
return qualified[pref][inner]
}
if (builtins.hasOwnProperty(name)) return builtins[name]
}
function moldEnv(config, items) {
let env = {
prefix: prefix(config),
linkType: function(type) {
let link = maybeLinkType(config, items, type)
if (!link && link !== false && !config.allowUnresolvedTypes)
throw new Error("Unknown type '" + type.type + "'" + (type.loc ? " at " + type.loc.file + ":" + type.loc.line : ""))
return link
},
hasDescription: function(type) {
if (type.description) return true
if (type.properties) for (let prop in type.properties)
if (env.hasDescription(type.properties[prop])) return true
if (type.params) for (let i = 0; i < type.params.length; i++)
if (env.hasDescription(type.params[i])) return true
if (type.returns && type.returns.description) return true
return false
},
breakType: function(type) {
return config.breakAt != null && typeLen(type) >= config.breakAt
},
processType: function(type) {
return (config.processType && config.processType(type)) || type
}
}
if (config.env) for (let prop in config.env) env[prop] = config.env[prop]
return env
}
const typeLenMap = {
union: 1,
intersection: 1,
tuple: 2,
Array: 2,
ReadonlyArray: 11,
indexed: 2,
conditional: 6,
mapped: 10,
Function: 4
}
// Estimate the length of a type
function typeLen(type, extra = 0) {
if (!type) return 0
if (Array.isArray(type)) return type.reduce((compl, t, i) => compl + typeLen(t) + (i ? 2 : 0), extra)
let val = extra + (typeLenMap.hasOwnProperty(type.type) ? typeLenMap[type.type] : type.type.length)
if (type.kind == "parameter") val += (type.name?.length || 0) + 2
val += typeLen(type.implements) +
(type.default ? type.default.length + 3 : 0) +
typeLen(type.typeArgs, 2)
if (type.signatures) {
let sig = type.signatures[0]
val += typeLen(sig.params) + typeLen(sig.typeArgs, 2) + typeLen(sig.returns, 3)
}
if (type.properties) for (let name in type.properties) {
let prop = type.properties[name]
if (!prop.description) val += name.length + 2 + typeLen(prop)
}
return val
}
| 35.041885 | 124 | 0.631555 |
b86674b33c2b1383d89ef7494f52fe5d80da2d96 | 9,204 | js | JavaScript | WebTimer/js/timer.js | arahmi6/kel7-timer-javascript | 7edca6867be0929bb743d9f62591444b19264402 | [
"MIT",
"Unlicense"
] | null | null | null | WebTimer/js/timer.js | arahmi6/kel7-timer-javascript | 7edca6867be0929bb743d9f62591444b19264402 | [
"MIT",
"Unlicense"
] | null | null | null | WebTimer/js/timer.js | arahmi6/kel7-timer-javascript | 7edca6867be0929bb743d9f62591444b19264402 | [
"MIT",
"Unlicense"
] | null | null | null | // total countdown to render
const TOTAL_RENDER_COUNTDOWN = 3;
// delay for setTimeOut
const DELAY_SECOND = 1000; //1 second
// active countdown
let active = 0;
if (localStorage.getItem('active')) {
active = parseInt(localStorage.getItem('active'));
} else {
localStorage.setItem('active', active);
}
// render HTML
const DOMRoot = document.getElementById('root');
render();
function render() {
DOMRoot.innerHTML = renderCountdown();
}
function renderCountdown() {
let html = '';
let hex = ['#e6eeff', '#f7f8ef'];
for(let i = 0; i < TOTAL_RENDER_COUNTDOWN; i++) {
html += `
<div class="countdown" style="background-color: ${hex[i%2]}">
<h3 class="title">Stopwatch ${i+1}</h3>
<h1 class="timer" name="timer">
00:00:00
</h1>
<div class="action">
<button class="btn start" name="btn-start" onclick="handlePlay(${i})">Start</button>
<button class="btn stop" name="btn-stop" onclick="handleStop(${i})">Stop</button>
<button class="btn split" name="btn-split" onclick="handleSplit(${i})">Split</button>
</div>
<h2 class="result" name="result">Total Waktu Pengerjaan : <span name="result-time"></span> </h2>
<div class="split-container" name="split-container">
<!-- SPLIT LIST -->
</div>
</div>
`;
}
return html;
}
// localStorage key and clear
const KEY_STORAGE = (index = active) => ({
countdown: `countdown-${index}`,
startTime: `startTime-${index}`,
pauseTime: `pauseTime-${index}`,
isPlay: `isPlay-${index}`,
isPause: `isPause-${index}`,
split: `split-${index}`,
});
function clearStorage(index) {
Object.keys(KEY_STORAGE(index)).map(keys => {
localStorage.removeItem(KEY_STORAGE(index)[keys]);
});
}
// dom
const DOM = (index = active) => ({
Timer: document.getElementsByName('timer')[index],
BtnStart: document.getElementsByName('btn-start')[index],
BtnStop: document.getElementsByName('btn-stop')[index],
BtnSplit: document.getElementsByName('btn-split')[index],
SplitContainer: document.getElementsByName('split-container')[index],
Result: document.getElementsByName('result')[index],
ResultTime: document.getElementsByName('result-time')[index],
});
// variable
const statusBtn = {
start: 'Start',
continue: 'Continue',
pause: 'Pause',
}
let countdown = parseInt(localStorage.getItem(KEY_STORAGE(active).countdown)) || 0;
let startTime = localStorage.getItem(KEY_STORAGE(active).startTime);
let pauseTime = localStorage.getItem(KEY_STORAGE(active).pauseTime);
let isPlay = JSON.parse(localStorage.getItem(KEY_STORAGE(active).isPlay)) || false;
let isPause = JSON.parse(localStorage.getItem(KEY_STORAGE(active).isPause)) || false;
let isFinish = false;
let split = JSON.parse(localStorage.getItem(KEY_STORAGE(active).split)) || [];
// mount
didMount();
setInterval(handleTimerChange, DELAY_SECOND);
// function
function didMount() {
mapDataCountdown();
getPlay(active);
if (!startTime && !isPlay && !isPause) {
countdown = 0;
DOM(active).BtnStart.innerText = statusBtn.start;
} else {
if (isPause) {
DOM(active).BtnStart.innerHTML = statusBtn.continue;
} else {
let newTime = calculateTimeDiff(startTime, Date.now());
countdown = newTime;
DOM(active).BtnSplit.style.display = 'inline';
DOM(active).BtnStart.innerHTML = statusBtn.pause;
}
}
}
function handleTimerChange() {
if (isPlay) {
countdown += DELAY_SECOND;
localStorage.setItem(KEY_STORAGE(active).countdown, countdown);
}
DOM(active).Timer.innerText = convertMillisecondToMinutes(countdown);
}
function handleActiveChange(index) {
let prevCountdown = localStorage.getItem(KEY_STORAGE(active).countdown);
if (active !== index && prevCountdown) {
split = JSON.parse(localStorage.getItem(KEY_STORAGE(index).split)) || [];
localStorage.setItem(KEY_STORAGE(active).isPlay, false);
localStorage.setItem(KEY_STORAGE(active).isPause, true);
localStorage.setItem(KEY_STORAGE(active).pauseTime, Date.now());
DOM(active).BtnStart.innerText = statusBtn.continue;
DOM(active).BtnSplit.style.display = 'none';
}
active = index;
countdown = parseInt(localStorage.getItem(KEY_STORAGE(active).countdown));
localStorage.setItem('active', active);
}
function mapDataCountdown() {
for(let i = 0; i < TOTAL_RENDER_COUNTDOWN; i++) {
let localCountdown = parseInt(localStorage.getItem(KEY_STORAGE(i).countdown)) || 0;
let localSplit = JSON.parse(localStorage.getItem(KEY_STORAGE(i).split)) || [];
DOM(i).Timer.innerText = convertMillisecondToMinutes(localCountdown);
if(localSplit || localSplit[0]) {
mapSplitData(localSplit, i);
}
}
}
function handlePlay(indexEl) {
getPlay(indexEl);
handleActiveChange(indexEl);
if (!isPlay) {
if (!startTime) {
let newTime = Date.now();
startTime = newTime;
localStorage.setItem(KEY_STORAGE(active).startTime, newTime);
countdown = 0;
DOM(active).SplitContainer.innerHTML = '';
}
DOM(active).BtnStart.innerText = statusBtn.pause;
if (pauseTime) {
let pauseDiff = calculateTimeDiff(pauseTime, Date.now());
startTime = parseInt(startTime) + pauseDiff;
localStorage.setItem(KEY_STORAGE(active).startTime, startTime);
}
setPlay();
} else {
handlePause();
}
}
function getPlay(index) {
isPlay = JSON.parse(localStorage.getItem(KEY_STORAGE(index).isPlay));
startTime = JSON.parse(localStorage.getItem(KEY_STORAGE(index).startTime));
pauseTime = JSON.parse(localStorage.getItem(KEY_STORAGE(index).pauseTime));
}
function setPlay() {
isPlay = true;
isPause = false;
localStorage.setItem(KEY_STORAGE(active).isPlay, isPlay);
localStorage.setItem(KEY_STORAGE(active).isPause, isPause);
DOM(active).BtnSplit.style.display = 'inline';
DOM(active).Result.style.display = 'none';
}
function handlePause(indexEl) {
pauseTime = Date.now();
localStorage.setItem(KEY_STORAGE(active).countdown, countdown);
localStorage.setItem(KEY_STORAGE(active).pauseTime, pauseTime);
DOM(active).BtnStart.innerText = statusBtn.continue;
setPause();
}
function setPause() {
isPause = true;
isPlay = false;
localStorage.setItem(KEY_STORAGE(active).isPause, isPause);
localStorage.setItem(KEY_STORAGE(active).isPlay, isPlay);
DOM(active).BtnSplit.style.display = 'none';
}
function handleStop(indexEl) {
let localStartTime = localStorage.getItem(KEY_STORAGE(indexEl).startTime);
let localCountdown = parseInt(localStorage.getItem(KEY_STORAGE(indexEl).countdown)) || 0;
let localSplit = JSON.parse(localStorage.getItem(KEY_STORAGE(indexEl).split)) || [];
if (localStartTime) {
DOM(indexEl).Result.style.display = 'block';
if(localSplit.length > 0) {
let totalDiff = calculateTimeDiff(localSplit[0].time, localCountdown);
DOM(indexEl).ResultTime.innerText = convertMillisecondToMinutes(localCountdown, true) + ' | Selisih : ' + convertMillisecondToMinutes(totalDiff, true);
} else {
DOM(indexEl).ResultTime.innerText = convertMillisecondToMinutes(localCountdown, true);
}
DOM(indexEl).Timer.innerText = convertMillisecondToMinutes(0);
DOM(indexEl).BtnSplit.style.display = 'none';
DOM(indexEl).BtnStart.innerText = statusBtn.start;
clearStorage(indexEl);
if(indexEl === active) {
setStop();
}
}
}
function setStop() {
startTime = 0;
pauseTime = 0;
isPlay = false;
isPause = false;
countdown = 0;
split = [];
}
function handleSplit(indexEl) {
let index = split.length + 1;
let data = { index, time: countdown };
split.unshift(data);
localStorage.setItem(KEY_STORAGE(active).split, JSON.stringify(split));
mapSplitData(split);
}
function mapSplitData(splitData, index = active) {
let splitHtml = '';
splitData.map((data, index) => splitHtml += renderSplit(data.index, convertMillisecondToMinutes(data.time), splitTimeDiff(index, splitData)));
DOM(index).SplitContainer.innerHTML = splitHtml;
}
function renderSplit(index, time, diff) {
return (
`<div class="split-list">
<p>${index}</p>
<p>${time}</p>
<p>${diff}</p>
</div>`
);
}
function splitTimeDiff(index, data) {
let nextData = data[index + 1];
if(nextData) {
return convertMillisecondToMinutes(calculateTimeDiff(data[index].time, nextData.time));
} else {
return convertMillisecondToMinutes(data[index].time);
}
}
function convertMillisecondToMinutes(millis = 0, isDescription = false) {
let sec = Math.floor(millis / 1000);
let hrs = Math.floor(sec / 3600);
sec -= hrs * 3600;
let min = Math.floor(sec / 60);
sec -= min * 60;
sec = '' + sec;
if (hrs > 0) {
min = '' + min;
min = ('00' + min).substring(min.length);
sec = ('00' + sec).substring(sec.length);
return hrs + ":" + min + ":" + sec;
}
else {
if (isDescription) {
return `${min} Menit ${sec} Detik`;
} else {
sec = ('00' + sec).substring(sec.length);
return "00:" + (min < 10 ? '0' + min : min) + ":" + sec;
}
}
}
function calculateTimeDiff(dateStart, dateEnd) {
const diffTime = Math.abs(dateEnd - dateStart); // return millisecond
return diffTime;
} | 31.306122 | 157 | 0.679487 |