text
stringlengths
2
1.05M
!function(e){function r(data){for(var r,n,l=data[0],f=data[1],d=data[2],i=0,h=[];i<l.length;i++)n=l[i],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&h.push(o[n][0]),o[n]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);for(v&&v(data);h.length;)h.shift()();return c.push.apply(c,d||[]),t()}function t(){for(var e,i=0;i<c.length;i++){for(var r=c[i],t=!0,n=1;n<r.length;n++){var f=r[n];0!==o[f]&&(t=!1)}t&&(c.splice(i--,1),e=l(l.s=r[0]))}return e}var n={},o={3:0},c=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var c,script=document.createElement("script");script.charset="utf-8",script.timeout=120,l.nc&&script.setAttribute("nonce",l.nc),script.src=function(e){return l.p+""+{2:"f035642"}[e]+".js"}(e);var f=new Error;c=function(r){script.onerror=script.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+c+")",f.name="ChunkLoadError",f.type=n,f.request=c,t[1](f)}o[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:script})}),12e4);script.onerror=script.onload=c,document.head.appendChild(script)}return Promise.all(r)},l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},l.p="/_nuxt/",l.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var v=d;t()}([]);
import React from "react" import { Link } from "gatsby" import PropTypes from "prop-types" //import Img from "gatsby-image" //import Image from "./image" const ProjectItem = ({ project }) => ( <div id="panel" className={`prod-cnt ${project.frontmatter.slug}`}> <figure className="showcase-container" id="showcaseimg1"> <div className="showcase-img"> <img src={project.frontmatter.image} alt="" /> </div> <figcaption className="showcase-content showcase"> <h1>{project.frontmatter.title}</h1> <Link to={`${project.frontmatter.slug}`}>Link</Link> </figcaption> </figure> </div> ) ProjectItem.propTypes = { project: PropTypes.any, } export default ProjectItem
$(document).ready(function(){ /* Content appear */ if($('body').hasClass('content-appear')) { $('body').addClass('content-appearing') setTimeout(function() { $('body').removeClass('content-appear content-appearing'); }, 800); } /* Preloader */ setTimeout(function() { $('.preloader').fadeOut(); }, 500); /* Scroll */ if(jQuery.browser.mobile == false) { function initScroll(){ $('.custom-scroll').jScrollPane({ autoReinitialise: true, autoReinitialiseDelay: 100 }); } initScroll(); $(window).resize(function() { initScroll(); }); } /* Scroll - if mobile */ if(jQuery.browser.mobile == true) { $('.custom-scroll').css('overflow-y','scroll'); } /* Switch sidebar to compact */ if (matchMedia) { var mq = window.matchMedia("(min-width: 768px) and (max-width: 991px)"); mq.addListener(WidthChange); WidthChange(mq); } function WidthChange(mq) { if (mq.matches) { $('body').addClass('compact-sidebar'); $('.site-sidebar li.with-sub').find('>ul').slideUp(); } else { $('body').removeClass('compact-sidebar'); sidebarIfActive(); } } /* Fullscreen */ $('.toggle-fullscreen').click(function() { $(document).toggleFullScreen(); }); /* Sidebar - on click */ $('.site-sidebar li.with-sub > a').click(function() { if (!$('body').hasClass('compact-sidebar')) { if ($(this).parent().hasClass('active')) { $(this).parent().removeClass('active'); $(this).parent().find('>ul').slideUp(); } else { if (!$(this).parent().parent().closest('.with-sub').length) { $('.site-sidebar li.with-sub').removeClass('active').find('>ul').slideUp(); } $(this).parent().addClass('active'); $(this).parent().find('>ul').slideDown(); } } }); /* Sidebar - if active */ function sidebarIfActive(){ $('.site-sidebar ul > li:not(.with-sub)').removeClass('active'); var url = window.location; var element = $('.site-sidebar ul > li > a').filter(function () { return this.href == url || url.href.indexOf(this.href) == 0; }); element.parent().addClass('active'); $('.site-sidebar li.with-sub').removeClass('active').find('>ul').hide(); var url = window.location; var element = $('.site-sidebar ul li ul li a').filter(function () { return this.href == url || url.href.indexOf(this.href) == 0; }); element.parent().addClass('active'); element.parent().parent().parent().addClass('active'); if(!$('body').hasClass('compact-sidebar')) { element.parent().parent().slideDown(); } } sidebarIfActive(); /* Sidebar - show and hide */ $('.site-header .sidebar-toggle-first').click(function() { if ($('body').hasClass('site-sidebar-opened')) { $('body').removeClass('site-sidebar-opened'); if(jQuery.browser.mobile == false){ $('html').css('overflow','auto'); } } else { $('body').addClass('site-sidebar-opened'); if(jQuery.browser.mobile == false){ $('html').css('overflow','hidden'); } } }); $('.site-header .sidebar-toggle-second').click(function() { var compact = 'compact-sidebar'; if($('body').hasClass(compact)) { $('body').removeClass(compact); sidebarIfActive(); } else { $('body').addClass(compact); $('.site-sidebar li.with-sub').find('>ul').slideUp(); } }); /* Sidebar - overlay */ $('.site-overlay').click(function() { $('.site-header .sidebar-toggle-first').removeClass('active'); $('body').removeClass('site-sidebar-opened'); if(jQuery.browser.mobile == false){ $('html').css('overflow','auto'); } }); /* Sidebar second - toggle */ $('.toggle-button-second').click(function() { $('.template-options').toggle(); $('.template-options').removeClass('opened'); $(this).toggleClass('active'); $('.site-sidebar-second').toggleClass('opened'); }); /* Template options - toggle */ $('.template-options .to-toggle').click(function() { $('.template-options').toggleClass('opened'); }); /* Chat */ $('.sidebar-chat a, .sidebar-chat-window a').click(function() { $('.sidebar-chat').toggle(); $('.sidebar-chat-window').toggle(); }); /* Switchery */ $('.js-switch').each(function() { new Switchery($(this)[0], $(this).data()); }); /* Template options */ $('.template-options input:checkbox').change(function() { if($('body').hasClass('fixed-footer')) { $('body').removeClass('fixed-footer'); } var setting = $(this).attr('name'); if($('body').hasClass(setting)) { $('body').removeClass(setting); if(setting == 'compact-sidebar') { sidebarIfActive(); } if(setting == 'fixed-header') { $('body').removeClass('fixed-sidebar'); $('.template-options input[name="fixed-sidebar"]').prop('checked', false); } if(setting == 'boxed-wrapper') { $('.template-options input[name="fixed-header"]').parent().parent().removeClass('disabled'); $('.template-options input[name="fixed-sidebar"]').parent().parent().removeClass('disabled'); } } else { $('body').addClass(setting); if(setting == 'compact-sidebar') { $('.site-sidebar li.with-sub').find('>ul').slideUp(); } if(setting == 'fixed-sidebar') { $('body').addClass('fixed-header'); $('.template-options input[name="fixed-header"]').prop('checked', true); } if(setting == 'boxed-wrapper') { $('body').removeClass('fixed-header'); $('.template-options input[name="fixed-header"]').prop('checked', false); $('.template-options input[name="fixed-header"]').parent().parent().addClass('disabled'); $('body').removeClass('fixed-sidebar'); $('.template-options input[name="fixed-sidebar"]').prop('checked', false); $('.template-options input[name="fixed-sidebar"]').parent().parent().addClass('disabled'); $('body').removeClass('static'); $('.template-options input[name="static"]').prop('checked', false); } if(setting == 'static') { $('body').removeClass('fixed-header'); $('.template-options input[name="fixed-header"]').prop('checked', false); $('.template-options input[name="fixed-header"]').parent().parent().removeClass('disabled'); $('body').removeClass('fixed-sidebar'); $('.template-options input[name="fixed-sidebar"]').prop('checked', false); $('.template-options input[name="fixed-sidebar"]').parent().parent().removeClass('disabled'); $('body').removeClass('boxed-wrapper'); $('.template-options input[name="boxed-wrapper"]').prop('checked', false); } } }); $('.template-options input:radio').change(function() { var setting = $(this).val(); $('body').removeClass (function (index, css) { return (css.match (/(^|\s)skin-\S+/g) || []).join(' '); }); $('body').addClass(setting); if(setting == 'skin-default' || setting == 'skin-2' || setting == 'skin-3') { $('.site-header .navbar').removeClass('navbar-dark').addClass('navbar-light'); } else { $('.site-header .navbar').removeClass('navbar-light').addClass('navbar-dark'); } if(setting == 'skin-3' || setting == 'skin-4') { $('.site-header .navbar .navbar-left .toggle-button.dark').removeClass('dark').addClass('light'); $('.site-header .navbar .navbar-left .toggle-button-second.dark').removeClass('dark').addClass('light'); } else { $('.site-header .navbar .navbar-left .toggle-button.light').removeClass('light').addClass('dark'); $('.site-header .navbar .navbar-left .toggle-button-second.light').removeClass('light').addClass('dark'); } if(setting == 'skin-default' || setting == 'skin-2' || setting == 'skin-3') { $('.site-header .navbar .navbar-right .toggle-button.dark').removeClass('dark').addClass('light'); $('.site-header .navbar .navbar-right .toggle-button-second.dark').removeClass('dark').addClass('light'); } else { $('.site-header .navbar .navbar-right .toggle-button.light').removeClass('light').addClass('dark'); $('.site-header .navbar .navbar-right .toggle-button-second.light').removeClass('light').addClass('dark'); } if(setting == 'skin-default' || setting == 'skin-2' || setting == 'skin-6') { $('.site-sidebar .custom-scroll').removeClass('custom-scroll-dark').addClass('custom-scroll-light'); $('.site-sidebar .progress-widget').removeClass('progress-widget-dark').addClass('progress-widget-light'); } else { $('.site-sidebar .custom-scroll').removeClass('custom-scroll-light').addClass('custom-scroll-dark'); $('.site-sidebar .progress-widget').removeClass('progress-widget-light').addClass('progress-widget-dark'); } }); /* Hide on outside click */ $(document).mouseup(function (e) { var container = $('.template-options, .site-sidebar-second, .toggle-button-second'); if (!container.is(e.target) && container.has(e.target).length === 0) { container.removeClass('opened'); $('.template-options').show(); $('.toggle-button-second').removeClass('active'); } }); /* Tooltip */ $('[data-toggle="tooltip"]').tooltip(); /* Popover */ $('[data-toggle="popover"]').popover(); });
const Util = require('../../utils/Utils'); const { GetView, GetAll, GetId, Store, Update, } = require('./chatbot-models'); const util = new Util(); /** * The ChatbotController. * * @method view select all records * @method index select all outputs by input * @method show select a record by id * @method store create record * @method update update record */ class ChatbotController { async view(req, res) { try { const data = await GetView(); if (data) { util.setSuccess(200, data); } else { util.setError(400, 'no data!'); } return util.send(res); } catch (err) { util.setError(500, err.message); return util.send(res); } } async index(req, res) { try { const { input, activate } = req.query; const data = await GetAll(activate, input); if (data) { util.setSuccess(200, data); } else { util.setError(400, 'no data!'); } return util.send(res); } catch (err) { util.setError(500, err.message); return util.send(res); } } async show(req, res) { try { const { id } = req.query; const data = await GetId(id); if (data) { util.setSuccess(200, data); } else { util.setError(400, 'no data!'); } return util.send(res); } catch (err) { util.setError(500, err.message); return util.send(res); } } async store(req, res) { try { const { activate, input, output } = req.body; const data = await Store(activate, input, output); if (data) { util.setSuccess(200, data); } req.io.emit('chatbot', data); return util.send(res); } catch (err) { util.setError(500, err.message); return util.send(res); } } async update(req, res) { try { const { _id, activate, input, output } = req.body; const data = await Update(_id, activate, input, output); if (data) { util.setSuccess(200, data); } req.io.emit('chatbot', data); return util.send(res); } catch (err) { util.setError(500, err.message); return util.send(res); } } } module.exports = ChatbotController;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function helpers() { const data = _interopRequireWildcard(require("babylonia/helpers")); helpers = function () { return data; }; return data; } function _traverse() { const data = _interopRequireWildcard(require("babylonia/traverse")); _traverse = function () { return data; }; return data; } function _codeFrame() { const data = require("babylonia/code-frame"); _codeFrame = function () { return data; }; return data; } function t() { const data = _interopRequireWildcard(require("babylonia/types")); t = function () { return data; }; return data; } function _semver() { const data = _interopRequireDefault(require("semver")); _semver = function () { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } const errorVisitor = { enter(path, state) { const loc = path.node.loc; if (loc) { state.loc = loc; path.stop(); } } }; class File { constructor(options, { code, ast, inputMap }) { this._map = new Map(); this.declarations = {}; this.path = null; this.ast = {}; this.metadata = {}; this.code = ""; this.inputMap = null; this.hub = { file: this, getCode: () => this.code, getScope: () => this.scope, addHelper: this.addHelper.bind(this), buildError: this.buildCodeFrameError.bind(this) }; this.opts = options; this.code = code; this.ast = ast; this.inputMap = inputMap; this.path = _traverse().NodePath.get({ hub: this.hub, parentPath: null, parent: this.ast, container: this.ast, key: "program" }).setContext(); this.scope = this.path.scope; } get shebang() { const { interpreter } = this.path.node; return interpreter ? interpreter.value : ""; } set shebang(value) { if (value) { this.path.get("interpreter").replaceWith(t().interpreterDirective(value)); } else { this.path.get("interpreter").remove(); } } set(key, val) { if (key === "helpersNamespace") { throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using babylonia/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); } this._map.set(key, val); } get(key) { return this._map.get(key); } has(key) { return this._map.has(key); } getModuleName() { const { filename, filenameRelative = filename, moduleId, moduleIds = !!moduleId, getModuleId, sourceRoot: sourceRootTmp, moduleRoot = sourceRootTmp, sourceRoot = moduleRoot } = this.opts; if (!moduleIds) return null; if (moduleId != null && !getModuleId) { return moduleId; } let moduleName = moduleRoot != null ? moduleRoot + "/" : ""; if (filenameRelative) { const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : ""; moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.(\w*?)$/, ""); } moduleName = moduleName.replace(/\\/g, "/"); if (getModuleId) { return getModuleId(moduleName) || moduleName; } else { return moduleName; } } addImport() { throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'babylonia/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); } availableHelper(name, versionRange) { let minVersion; try { minVersion = helpers().minVersion(name); } catch (err) { if (err.code !== "BABEL_HELPER_UNKNOWN") throw err; return false; } if (typeof versionRange !== "string") return true; if (_semver().default.valid(versionRange)) versionRange = `^${versionRange}`; return !_semver().default.intersects(`<${minVersion}`, versionRange) && !_semver().default.intersects(`>=8.0.0`, versionRange); } addHelper(name) { const declar = this.declarations[name]; if (declar) return t().cloneNode(declar); const generator = this.get("helperGenerator"); if (generator) { const res = generator(name); if (res) return res; } const uid = this.declarations[name] = this.scope.generateUidIdentifier(name); const dependencies = {}; for (const dep of helpers().getDependencies(name)) { dependencies[dep] = this.addHelper(dep); } const { nodes, globals } = helpers().get(name, dep => dependencies[dep], uid, Object.keys(this.scope.getAllBindings())); globals.forEach(name => { if (this.path.scope.hasBinding(name, true)) { this.path.scope.rename(name); } }); nodes.forEach(node => { node._compact = true; }); this.path.unshiftContainer("body", nodes); this.path.get("body").forEach(path => { if (nodes.indexOf(path.node) === -1) return; if (path.isVariableDeclaration()) this.scope.registerDeclaration(path); }); return uid; } addTemplateObject() { throw new Error("This function has been moved into the template literal transform itself."); } buildCodeFrameError(node, msg, Error = SyntaxError) { let loc = node && (node.loc || node._loc); msg = `${this.opts.filename}: ${msg}`; if (!loc && node) { const state = { loc: null }; (0, _traverse().default)(node, errorVisitor, this.scope, state); loc = state.loc; let txt = "This is an error on an internal node. Probably an internal error."; if (loc) txt += " Location has been estimated."; msg += ` (${txt})`; } if (loc) { const { highlightCode = true } = this.opts; msg += "\n" + (0, _codeFrame().codeFrameColumns)(this.code, { start: { line: loc.start.line, column: loc.start.column + 1 } }, { highlightCode }); } return new Error(msg); } } exports.default = File;
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom' import 'semantic-ui-css/semantic.min.css' import 'tachyons/css/tachyons.min.css' import { Container } from 'semantic-ui-react' import { Head } from './components/Head' import { ProvideHolochain } from 'react-holochain-hook' import React from 'react' import { ScreensEdit } from './screens/edit_quill' import { ScreensIndex } from './screens/index' function App() { return ( <div className='App'> <ProvideHolochain> <Router> <Head /> <Container style={styles.container}> <Switch> <Route path='/:textAddress' component={ScreensEdit} /> <Route path='/' component={ScreensIndex} /> </Switch> </Container> </Router> </ProvideHolochain> </div> ) } const styles = { container: { margin: 20, marginTop: 70 } } export default App
/** * DataFormJS Unit Testing */ /* Validates with both [jshint] and [eslint] */ /* global app */ /* jshint strict: true */ /* eslint-env browser */ /* eslint quotes: ["error", "single", { "avoidEscape": true }] */ /* eslint strict: ["error", "function"] */ /* eslint spaced-comment: ["error", "always"] */ /* eslint no-console: ["error", { allow: ["log", "warn", "error"] }] */ (function() { 'use strict'; app.addControl('hello-world', { css: '.hello-world { color:blue; }', data: { name: 'World', }, html: function () { return '<h1 class="hello-world">Hello ' + this.name + '!</h1>'; }, }); app.addControl('custom-list', { data: { listCount: 2, }, html: function () { if (this.listCount === 2) { return '<div data-control="list-item"></div><list-item></list-item>'; } var html = []; for (var n = 0; n < this.listCount; n++) { html.push('<list-item></list-item>'); } return html.join(''); }, }); app.addControl('list-item', { onLoad: function (element) { var elements = document.querySelectorAll("[data-control='list-item']"); var count = Array.from(elements).filter(function(el) { return el.textContent !== ''; }).length; element.textContent = 'Item ' + (count+1); }, }); app.addControl('event-order', { data: { events: [], }, onLoad: function (element) { this.events.push('onLoad(' + element.id + ')'); }, html: function () { this.events.push('html(' + arguments.length + ')'); return this.events.join(', '); }, onUnload: function (element) { this.events.push('onUnload(' + element.id + ')'); app.locals['Control-Event-Order'] = this.events.join(', '); } }); app.addControl('error-function-test', { onLoad: function () { if (this.errorAt === 'onLoad') { throw new Error('Test'); } }, html: function () { if (this.errorAt === 'html') { throw new Error('Test'); } return ''; }, onUnload: function () { if (this.errorAt === 'onUnload') { throw new Error('Test'); } } }); })();
/** * 分类模块 */ 'use strict'; const Promise = require('bluebird'); const request = require('request'); const CatagoryModel = require('../models/category'); module.exports = { /** * 新增分类 */ addCategory: function(data, callback){ CatagoryModel.insertOne(data, (err,doc) => { if ( err == null && !doc) { callback(null, '更新数据库错误'); }else{ callback(doc,null); } }) }, /** * 查询所有分类 */ getAllCategory: function(req, callback){ CatagoryModel.finds({}, function(err, doc){ if ( err ) { callback(null, '更新数据库错误'); }else{ callback(doc); } }) }, /** * 修改分类 */ updateCategory: function( key, data, callback){ CatagoryModel.finds(key, function(err,doc){ if (!err && doc){ CatagoryModel.updateObj(key, data, function(doc){ if ( doc === null ) { CatagoryModel.finds(key, function(err, doc){ if ( err ) { callback(null, '更新数据库错误'); }else{ callback(doc); } }) }else{ callback(null, '更新数据库错误'); } }) }else{ callback(null, '更新数据库错误'); } }) }, /** * 删除分类 */ removeCategory: function( key, callback){ CatagoryModel.finds(key, function(err, doc){ if ( doc && !err){ CatagoryModel.removeObj(key, function(doc){ if ( doc === null ) { callback(doc); }else{ callback(null, '更新数据库错误'); } }) }else{ callback(null, '更新数据库错误'); } }) } }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _classnames2 = require('classnames'); var _classnames3 = _interopRequireDefault(_classnames2); var _CSSClassnames = require('../../../utils/CSSClassnames'); var _CSSClassnames2 = _interopRequireDefault(_CSSClassnames); var _Intl = require('../../../utils/Intl'); var _Intl2 = _interopRequireDefault(_Intl); var _Props = require('../../../utils/Props'); var _Props2 = _interopRequireDefault(_Props); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP var CLASS_ROOT = _CSSClassnames2.default.CONTROL_ICON; var COLOR_INDEX = _CSSClassnames2.default.COLOR_INDEX; var Icon = function (_Component) { _inherits(Icon, _Component); function Icon() { _classCallCheck(this, Icon); return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments)); } _createClass(Icon, [{ key: 'render', value: function render() { var _classnames; var _props = this.props, className = _props.className, colorIndex = _props.colorIndex; var _props2 = this.props, a11yTitle = _props2.a11yTitle, size = _props2.size, responsive = _props2.responsive; var intl = this.context.intl; var classes = (0, _classnames3.default)(CLASS_ROOT, CLASS_ROOT + '-launch', className, (_classnames = {}, _defineProperty(_classnames, CLASS_ROOT + '--' + size, size), _defineProperty(_classnames, CLASS_ROOT + '--responsive', responsive), _defineProperty(_classnames, COLOR_INDEX + '-' + colorIndex, colorIndex), _classnames)); a11yTitle = a11yTitle || _Intl2.default.getMessage(intl, 'launch'); var restProps = _Props2.default.omit(this.props, Object.keys(Icon.propTypes)); return _react2.default.createElement( 'svg', _extends({}, restProps, { version: '1.1', viewBox: '0 0 24 24', width: '24px', height: '24px', role: 'img', className: classes, 'aria-label': a11yTitle }), _react2.default.createElement('path', { fill: 'none', stroke: '#000', strokeWidth: '2', d: 'M7,9 L7,14 C7,14 4,16 4,19 L4,20 L8,20 L10,23 L14,23 L16,20 L20,20 L20,19 C20,16 17,14 17,14 L17,9 C17,5 14,1 12,1 C10,1 7,5 7,9 Z M8,20 L16,20 M12,9 C12.5522847,9 13,8.55228475 13,8 C13,7.44771525 12.5522847,7 12,7 C11.4477153,7 11,7.44771525 11,8 C11,8.55228475 11.4477153,9 12,9 Z' }) ); } }]); return Icon; }(_react.Component); Icon.displayName = 'Icon'; exports.default = Icon; ; Icon.contextTypes = { intl: _propTypes2.default.object }; Icon.defaultProps = { responsive: true }; Icon.displayName = 'Launch'; Icon.icon = true; Icon.propTypes = { a11yTitle: _propTypes2.default.string, colorIndex: _propTypes2.default.string, size: _propTypes2.default.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge', 'huge']), responsive: _propTypes2.default.bool }; module.exports = exports['default'];
//1、导入express const express = require('express') const path = require('path') //2、创建路由对象 const accountRouter = express.Router() //导入控制器 const accountCTRL = require(path.join(__dirname,"../controllers/accountController.js")) //3、处理具体的请求 // 获取登录页面的请求 accountRouter.get('/login',accountCTRL.getLoginPage) // 获取注册页面的请求 accountRouter.get('/register',accountCTRL.getRegisterPage) // 处理注册请求 accountRouter.post('/register',accountCTRL.register) // 获取图片验证码 accountRouter.get('/vcode',accountCTRL.getVcodeImage) // 处理登录请求 accountRouter.post('/login',accountCTRL.login) //处理登出请求 accountRouter.get('/logout',accountCTRL.logout) //4、导出 module.exports = accountRouter
import React from 'react' import PropTypes from 'prop-types' import { ServicesPageTemplate } from '../../templates/services-page' const ServicesPagePreview = ({ entry, getAsset }) => { const entryBlurbs = entry.getIn(['data', 'intro', 'blurbs']) const blurbs = entryBlurbs ? entryBlurbs.toJS() : [] const entryTestimonials = entry.getIn(['data', 'testimonials']) const testimonials = entryTestimonials ? entryTestimonials.toJS() : [] const entryPricingPlans = entry.getIn(['data', 'pricing', 'plans']) const pricingPlans = entryPricingPlans ? entryPricingPlans.toJS() : [] return ( <ServicesPageTemplate image={getAsset(entry.getIn(['data', 'image']))} title={entry.getIn(['data', 'title'])} heading={entry.getIn(['data', 'heading'])} description={entry.getIn(['data', 'description'])} intro={{ blurbs }} main={{ heading: entry.getIn(['data', 'main', 'heading']), description: entry.getIn(['data', 'main', 'description']), image1: { image: getAsset(entry.getIn(['data', 'main', 'image1', 'image'])), alt: entry.getIn(['data', 'main', 'image1', 'alt']), }, image2: { image: getAsset(entry.getIn(['data', 'main', 'image2', 'image'])), alt: entry.getIn(['data', 'main', 'image2', 'alt']), }, image3: { image: getAsset(entry.getIn(['data', 'main', 'image3', 'image'])), alt: entry.getIn(['data', 'main', 'image3', 'alt']), }, }} fullImage={entry.getIn(['data', 'full_image', 'image'])} testimonials={testimonials} pricing={{ heading: entry.getIn(['data', 'pricing', 'heading']), description: entry.getIn(['data', 'pricing', 'description']), plans: pricingPlans, }} /> ) } ServicesPagePreview.propTypes = { entry: PropTypes.shape({ getIn: PropTypes.func, }), getAsset: PropTypes.func, } export default ServicesPagePreview
/* global QUnit */ sap.ui.define([ "sap/ui/core/mvc/XMLView", "sap/ui/fl/Utils", "sap/ui/layout/VerticalLayout", "sap/ui/dt/DesignTime", "sap/ui/dt/Util", "sap/ui/rta/command/CommandFactory", "sap/ui/dt/OverlayRegistry", "sap/ui/fl/write/api/ChangesWriteAPI", "sap/uxap/ObjectPageLayout", "sap/uxap/ObjectPageSection", "sap/uxap/ObjectPageSubSection", "sap/ui/rta/plugin/iframe/AddIFrame", "sap/ui/rta/plugin/iframe/AddIFrameDialog", "sap/ui/thirdparty/sinon-4", "sap/base/util/includes", "sap/base/util/uid", "sap/m/Button" ], function( XMLView, Utils, VerticalLayout, DesignTime, DtUtil, CommandFactory, OverlayRegistry, ChangesWriteAPI, ObjectPageLayout, ObjectPageSection, ObjectPageSubSection, AddIFramePlugin, AddIFrameDialog, sinon, includes, uid, Button ) { "use strict"; var TEST_URL = "http://www.sap.com"; var viewContent = '<mvc:View xmlns:mvc="sap.ui.core.mvc">' + '</mvc:View>'; var oMockedViewWithStableId; XMLView.create({ id: "mockview", definition: viewContent }).then(function(oView) { oMockedViewWithStableId = oView; QUnit.start(); }); var oMockedComponent = { getLocalId: function () { return undefined; }, getManifestEntry: function () { return {}; }, getMetadata: function () { return { getName: function () { return "someName"; } }; }, getManifest: function () { return { "sap.app": { applicationVersion: { version: "1.2.3" } } }; }, getModel: function () {} }; var sandbox = sinon.sandbox.create(); QUnit.module("Given a designTime and addIFrame plugin are instantiated for an ObjectPageLayout", { beforeEach: function(assert) { sandbox.stub(Utils, "getAppComponentForControl").returns(oMockedComponent); sandbox.stub(Utils, "getViewForControl").returns(oMockedViewWithStableId); sandbox.stub(AddIFrameDialog.prototype, "open").callsFake(function () { return Promise.resolve({ frameUrl: TEST_URL }); }); sandbox.stub(ChangesWriteAPI, "getChangeHandler").resolves(); this.oAddIFrame = new AddIFramePlugin({ commandFactory: new CommandFactory() }); this.oObjectPageSection = new ObjectPageSection(oMockedViewWithStableId.createId("section"), { title: "section title", subSections: [ new ObjectPageSubSection("subSection", { title: "sub section title", blocks: [new VerticalLayout()] }) ] }); this.oObjectPageLayout = new ObjectPageLayout(oMockedViewWithStableId.createId("opl"), { sections: [this.oObjectPageSection] }); this.oButton = new Button(oMockedViewWithStableId.createId("button"), { text: "buttonTitle" }); this.oVerticalLayout = new VerticalLayout(oMockedViewWithStableId.createId("verticalLayout"), { content: [this.oObjectPageLayout, this.oButton] }).placeAt("qunit-fixture"); sap.ui.getCore().applyChanges(); this.sNewControlID = oMockedViewWithStableId.createId(uid()); this.oNewObjectPageSection = new ObjectPageSection(this.sNewControlID); this.oObjectPageLayout.addSection(this.oNewObjectPageSection); this.oDesignTime = new DesignTime({ rootElements: [this.oVerticalLayout], plugins: [this.oAddIFrame] }); var done = assert.async(); this.oDesignTime.attachEventOnce("synced", function() { this.oLayoutOverlay = OverlayRegistry.getOverlay(this.oVerticalLayout); this.oObjectPageLayoutOverlay = OverlayRegistry.getOverlay(this.oObjectPageLayout); this.oObjectPageSectionOverlay = OverlayRegistry.getOverlay(this.oObjectPageSection); this.oNewObjectPageSectionOverlay = OverlayRegistry.getOverlay(this.oNewObjectPageSection); this.oButtonOverlay = OverlayRegistry.getOverlay(this.oButton); done(); }.bind(this)); }, afterEach: function () { sandbox.restore(); this.oVerticalLayout.destroy(); this.oDesignTime.destroy(); } }, function() { QUnit.test("when the getMenuItems() is called to check texts, with addIFrame defined on more than one aggregations", function(assert) { var sExpectedSectionText = "Section text"; var sExpectedHeaderText = "Header text"; var oRtaTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta"); sandbox.stub(oRtaTextResources, "getText") .withArgs("CTX_ADDIFRAME", "as foo").returns(sExpectedSectionText) .withArgs("CTX_ADDIFRAME", "as bar").returns(sExpectedHeaderText); this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", text: "as foo" } } }, header: { actions: { addIFrame: { changeType: "addIFrame", text: "as bar" } } } } }); var aMenuItems = this.oAddIFrame.getMenuItems([this.oObjectPageLayoutOverlay]); assert.strictEqual(aMenuItems[0].text(this.oObjectPageLayoutOverlay), sExpectedSectionText, "the Section text via the designtime is correct"); assert.strictEqual(aMenuItems[1].text(this.oObjectPageLayoutOverlay), sExpectedHeaderText, "the header text via the aggregation names is correct"); }); QUnit.test("when an overlay has no addIFrame action designTimeMetadata", function(assert) { this.oObjectPageLayoutOverlay.setDesignTimeMetadata({}); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { assert.strictEqual(this.oAddIFrame.isAvailable(false, [this.oObjectPageLayoutOverlay]), false, "then isAvailable is called and it returns false"); assert.strictEqual(this.oAddIFrame.isEnabled("dummyAggregation", [this.oObjectPageLayoutOverlay]), false, "then isEnabled is called and it returns false"); return this.oAddIFrame._isEditableCheck(this.oObjectPageLayoutOverlay, false); }.bind(this)) .then(function(bIsEditable) { assert.notOk(bIsEditable, "then the overlay is not editable"); }); }); QUnit.test("when an overlay has addIFrame action in designTimeMetadata, but has no isEnabled property defined", function(assert) { this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", text: "foo" } } } } }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { assert.strictEqual(this.oAddIFrame.isAvailable(false, [this.oObjectPageLayoutOverlay]), true, "then isAvailable is called and it returns true"); assert.strictEqual(this.oAddIFrame.isEnabled("sections", [this.oObjectPageLayoutOverlay]), true, "then isEnabled is called and it returns true"); return this.oAddIFrame._isEditableCheck(this.oObjectPageLayoutOverlay, false); }.bind(this)) .then(function(bIsEditable) { assert.ok(bIsEditable, "then the overlay is editable"); }); }); QUnit.test("when an overlay has addIFrame action designTime metadata, has no changeType and isEnabled property is true", function(assert) { this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { isEnabled: true, text: "foo" } } } } }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { assert.strictEqual(this.oAddIFrame.isAvailable(false, [this.oObjectPageLayoutOverlay]), false, "then isAvailable is called and then it returns false"); assert.strictEqual(this.oAddIFrame.isEnabled("sections", [this.oObjectPageLayoutOverlay]), true, "then isEnabled is called and then it returns correct value"); return this.oAddIFrame._isEditableCheck(this.oObjectPageLayoutOverlay, false); }.bind(this)) .then(function(bIsEditable) { assert.notOk(bIsEditable, "then the overlay is not editable"); }); }); QUnit.test("when an overlay has addIFrame action on a responsible element", function(assert) { assert.expect(9); var sText = "as Section"; this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", text: sText } } } } }); var sExpectedText = "Section text"; var oRtaTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta"); sandbox.stub(oRtaTextResources, "getText").withArgs("CTX_ADDIFRAME", sText).returns(sExpectedText); this.oButtonOverlay.setDesignTimeMetadata({ actions: { getResponsibleElement: function(oElement) { if (oElement === this.oButton) { return this.oObjectPageSection; } }.bind(this), actionsFromResponsibleElement: ["addIFrame"] } }); this.oAddIFrame.deregisterElementOverlay(this.oButtonOverlay); this.oAddIFrame.registerElementOverlay(this.oButtonOverlay); function checkMenuItemWhenActionAvailable(oPlugin, oSourceOverlay, oResponsibleElementOverlay) { var aMenuItems = oPlugin.getMenuItems([oSourceOverlay]); assert.equal(aMenuItems.length, 1, "then one menu item was returned when the action is available on the responsible element overlay"); assert.strictEqual(aMenuItems[0].enabled([oSourceOverlay]), true, "then the menu item is enabled"); assert.strictEqual(typeof aMenuItems[0].handler, "function", "then menu item handler is a function"); assert.strictEqual(aMenuItems[0].text(oSourceOverlay), sExpectedText, "then menu item has the expected text"); assert.equal(aMenuItems[0].id, "CTX_CREATE_SIBLING_IFRAME", "there the menu item is for a sibling"); assert.deepEqual(aMenuItems[0].responsible[0], oResponsibleElementOverlay, "then the menu item contains the responsible element overlay"); } return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { assert.strictEqual(this.oAddIFrame.isAvailable(true, [this.oButtonOverlay]), true, "then isAvailable returns true as a sibling"); assert.strictEqual(this.oAddIFrame.isAvailable(false, [this.oButtonOverlay]), false, "then isAvailable returns false when it's not a sibling"); var bAvailable = true; sandbox.stub(this.oAddIFrame, "isAvailable").callsFake(function(bSibling, aElementOverlays) { if (bSibling === true && aElementOverlays[0] === this.oButtonOverlay) { return bAvailable; } }.bind(this)); checkMenuItemWhenActionAvailable(this.oAddIFrame, this.oButtonOverlay, this.oObjectPageSectionOverlay); bAvailable = false; assert.equal(this.oAddIFrame.getMenuItems([this.oButtonOverlay]).length, 0, "then no menu item was returned when the action is not available on the responsible element overlay"); }.bind(this)); }); QUnit.test("when an overlay has an addIFrame action in designTimeMetadata, and isEnabled property is a function", function(assert) { assert.expect(27); this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", isEnabled: function (oElement) { return oElement.getMetadata().getName() === "sap.uxap.ObjectPageLayout"; }, text: "foo" } } } } }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { assert.strictEqual(this.oAddIFrame.isAvailable(false, [this.oObjectPageLayoutOverlay]), true, "then isAvailable is called and it returns true"); assert.strictEqual(this.oAddIFrame.isEnabled("sections", [this.oObjectPageLayoutOverlay]), true, "then isEnabled is called and it returns correct value from function call"); return this.oAddIFrame._isEditableCheck(this.oObjectPageLayoutOverlay, false); }.bind(this)) .then(function(bIsEditable) { assert.ok(bIsEditable, "then the overlay is editable"); var aOverlaySiblingRequests; var oCheckOverlay; var bIsAvailable = true; sandbox.stub(this.oAddIFrame, "isAvailable").callsFake(function(bOverlayIsSibling, aElementOverlays) { aOverlaySiblingRequests.push(bOverlayIsSibling); // Not assuming any order assert.deepEqual(aElementOverlays[0].getId(), oCheckOverlay.getId(), "the 'available' function calls isAvailable with the correct overlay"); return bIsAvailable; }); sandbox.stub(this.oAddIFrame, "isEnabled").callsFake(function(sAggregationName, aElementOverlays) { var sExpectedAggregationName; if (this.callCount === 1) { sExpectedAggregationName = "sections"; } assert.strictEqual(sExpectedAggregationName, sAggregationName, "then enabled() was called with the correct aggregation"); assert.strictEqual(aElementOverlays[0].getId(), oCheckOverlay.getId(), "then handler() was called with the correct overlay"); }.bind(this.oAddIFrame.isEnabled)); function getMenuItems(oOverlay) { aOverlaySiblingRequests = []; oCheckOverlay = oOverlay; var aResultMenuItems = this.oAddIFrame.getMenuItems([oOverlay]); assert.strictEqual(aOverlaySiblingRequests.length, 2, "the 'available' function was called twice"); assert.ok(includes(aOverlaySiblingRequests, true), "the 'available' function was called twice with bOverlayIsSibling=true"); assert.ok(includes(aOverlaySiblingRequests, false), "the 'available' function was called twice with bOverlayIsSibling=false"); return aResultMenuItems; } var aMenuItems = getMenuItems.call(this, this.oObjectPageLayoutOverlay); assert.strictEqual(aMenuItems.length, 1, "Only one menu item is returned"); assert.equal(aMenuItems[0].id, "CTX_CREATE_CHILD_IFRAME_SECTIONS", "there is an entry for create child section"); aMenuItems[0].handler([this.oObjectPageLayoutOverlay]); aMenuItems[0].enabled([this.oObjectPageLayoutOverlay]); aMenuItems = getMenuItems.call(this, this.oNewObjectPageSectionOverlay); assert.strictEqual(aMenuItems.length, 1, "Only one menu item is returned"); assert.equal(aMenuItems[0].id, "CTX_CREATE_SIBLING_IFRAME", "there is an entry for create child section"); aMenuItems[0].handler([this.oNewObjectPageSectionOverlay]); aMenuItems[0].enabled([this.oNewObjectPageSectionOverlay]); bIsAvailable = false; aMenuItems = getMenuItems.call(this, this.oObjectPageLayoutOverlay); assert.equal(aMenuItems.length, 0, "and if plugin is not available for the overlay, no menu items are returned"); }.bind(this)); }); QUnit.test("when an overlay has an addIFrame action with changeOnRelevantContainer true, but its relevant container has no stable ID", function(assert) { this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", changeOnRelevantContainer: true }, text: "foo" } } } }); sandbox.stub(this.oAddIFrame, "hasStableId").callsFake(function(oOverlay) { if (oOverlay === this.oLayoutOverlay) { return false; } return true; }.bind(this)); sandbox.stub(this.oObjectPageSectionOverlay, "getRelevantContainer").returns(this.oObjectPageSection); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return DtUtil.waitForSynced(this.oDesignTime)() .then(function() { return this.oAddIFrame._isEditableCheck(this.oObjectPageSectionOverlay, true); }.bind(this)) .then(function(bIsEditable) { assert.notOk(bIsEditable, "then the overlay is not editable"); }); }); QUnit.test("when a sibling overlay has an addIFrame action designTimeMetadata, but for another aggregation", function(assert) { this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { toolBar: { actions: { addIFrame: { changeType: "addToolbarContainer", text: "foo" } } } } }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); return this.oAddIFrame._isEditableCheck(this.oObjectPageLayoutOverlay, true) .then(function(bIsEditable) { assert.notOk(bIsEditable, "then the overlay is not editable"); }); }); QUnit.test("when the designTimeMetadata has a getContainerIndex property and a function _determineIndex() is called", function(assert) { var vAction = { aggregationName: "sections", getIndex: function(oForm, oFormContainer) { var sAggregationName = vAction.aggregationName; var oMetadata = oForm.getMetadata(); var oAggregation = oMetadata.getAggregation(sAggregationName); var sGetter = oAggregation._sGetter; var aContainers = oForm[sGetter](); var iIndex; if (oFormContainer) { iIndex = aContainers.indexOf(oFormContainer) + 1; } else { iIndex = aContainers.length; } return iIndex; } }; assert.deepEqual(this.oAddIFrame._determineIndex(this.oObjectPageLayout, undefined, vAction.aggregationName, vAction.getIndex), 2, "then the correct index of the new added section is returned from the function call"); }); QUnit.test("when the designTimeMetadata has no getContainerIndex property given and a function _determineIndex() is called", function(assert) { var vAction = { aggregationName: "sections", changeType: "addIFrame" }; assert.deepEqual(this.oAddIFrame._determineIndex(this.oObjectPageLayout, undefined, vAction.aggregationName, undefined), 0, "then the default index calculation would start and returns the right index"); }); QUnit.test("when the designTimeMetadata has a getCreatedContainerId property and a function getCreatedContainerId() is called", function(assert) { var vAction = { getCreatedContainerId: function(sNewControlID) { return sNewControlID; } }; assert.deepEqual(this.oAddIFrame.getCreatedContainerId(vAction, this.sNewControlID), this.oNewObjectPageSectionOverlay.getElement().getId(), "then the correct id is returned"); }); QUnit.test("when the designTimeMetadata has no getCreatedContainerId property and a function getCreatedContainerId() is called", function(assert) { var vAction = { changeType: "addIFrame" }; assert.deepEqual(this.oAddIFrame.getCreatedContainerId(vAction, this.sNewControlID), this.oNewObjectPageSectionOverlay.getElement().getId(), "then the correct id is returned"); }); QUnit.test("when the the menu item handler is called with the parent overlay", function(assert) { var fnDone = assert.async(); this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", text: "foo" } } } } }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageLayoutOverlay); this.oAddIFrame.attachEventOnce("elementModified", function(oEvent) { var oCommand = oEvent.getParameter("command"); assert.ok(oCommand, "then command is available"); assert.strictEqual(oCommand.getMetadata().getName(), "sap.ui.rta.command.AddIFrame", "and command is of the correct type"); assert.notOk(oEvent.getParameter("action"), "then the action is not in the event"); fnDone(); }); DtUtil.waitForSynced(this.oDesignTime)() .then(function () { var oMenuItem = this.oAddIFrame.getMenuItems([this.oObjectPageLayoutOverlay])[0]; oMenuItem.handler([this.oObjectPageLayoutOverlay]); }.bind(this)); }); QUnit.test("when the the menu item handler is called with the sibling overlay", function(assert) { var fnDone = assert.async(); this.oObjectPageLayoutOverlay.setDesignTimeMetadata({ aggregations: { sections: { actions: { addIFrame: { changeType: "addIFrame", getCreatedContainerId: function() {}, text: "foo" } } } } }); this.oAddIFrame.attachEventOnce("elementModified", function (oEvent) { var oCommand = oEvent.getParameter("command"); assert.ok(oCommand, "then command is available"); assert.strictEqual(oCommand.getMetadata().getName(), "sap.ui.rta.command.AddIFrame", "and command is of the correct type"); assert.ok(oEvent.getParameter("action"), "then the action is in the event"); assert.deepEqual(oCommand.getIndex(), 1, "then the correct index is in the command"); fnDone(); }); this.oAddIFrame.deregisterElementOverlay(this.oObjectPageSectionOverlay); this.oAddIFrame.registerElementOverlay(this.oObjectPageSectionOverlay); DtUtil.waitForSynced(this.oDesignTime)() .then(function () { var oMenuItem = this.oAddIFrame.getMenuItems([this.oObjectPageSectionOverlay])[0]; oMenuItem.handler([this.oObjectPageSectionOverlay]); }.bind(this)); }); }); QUnit.done(function () { jQuery("#qunit-fixture").hide(); }); });
/*! For license information please see chunk.232954093c003cff3cdd.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[1041],{16777:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var o=n(36608),r=n(76389);const i="disable-upgrade",a=(0,r.o)((e=>{const t=(0,o.SH)(e);return class extends t{static get observedAttributes(){return super.observedAttributes.concat(i)}attributeChangedCallback(e,t,n,o){e==i?!this.__dataEnabled&&null==n&&this.isConnected&&super.connectedCallback():super.attributeChangedCallback(e,t,n,o)}_initializeProperties(){}connectedCallback(){!this.__dataEnabled&&this.hasAttribute(i)||super.connectedCallback()}_enableProperties(){this.hasAttribute(i)||(this.__dataEnabled||super._initializeProperties(),super._enableProperties())}disconnectedCallback(){this.__dataEnabled&&super.disconnectedCallback()}}}))},59898:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});class o{static detectScrollType(){const e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){const{scrollLeft:o}=n;if("rtl"!==t||!e)return o;switch(e){case"negative":return n.scrollWidth-n.clientWidth+o;case"reverse":return n.scrollWidth-n.clientWidth-o}return o}static setNormalizedScrollLeft(e,t,n,o){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+o;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-o;break;default:n.scrollLeft=o}else n.scrollLeft=o}}const r=[];let i;new MutationObserver((function(){const e=s();r.forEach((t=>{a(t,e)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const a=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},s=function(){return document.documentElement.getAttribute("dir")},l=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),i||(i=o.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),a(this,s()))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;const o=n===s()&&-1===r.indexOf(this),i=!n&&t&&-1===r.indexOf(this),l=n!==s()&&t===s();o||i?(this.__subscribe(),a(this,s())):l&&this.__subscribe(!1)}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===r.indexOf(this)&&r.push(this):r.indexOf(this)>-1&&r.splice(r.indexOf(this),1)}__getNormalizedScrollLeft(e){return o.getNormalizedScrollLeft(i,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return o.setNormalizedScrollLeft(i,this.getAttribute("dir")||"ltr",e,t)}}},85466:(e,t,n)=>{"use strict";n(22726),n(5618),n(21384);const o=document.createElement("template");o.innerHTML='<dom-module id="material-color-light">\n <template>\n <style>\n :host,\n #host-fix {\n /* Text colors */\n --material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));\n --material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));\n --material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));\n\n /* Primary colors */\n --material-primary-color: var(--primary-color, #6200ee);\n --material-primary-contrast-color: var(--dark-theme-base-color, #fff);\n --material-primary-text-color: var(--material-primary-color);\n\n /* Error colors */\n --material-error-color: var(--error-color, #b00020);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--light-theme-background-color, #fff);\n --material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);\n --material-disabled-color: rgba(0, 0, 0, 0.26);\n\n /* Divider colors */\n --material-divider-color: rgba(0, 0, 0, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: initial;\n --_material-text-field-input-line-opacity: initial;\n --_material-text-field-input-line-hover-opacity: initial;\n --_material-text-field-focused-label-opacity: initial;\n\n /* Button tweaks */\n --_material-button-raised-background-color: initial;\n --_material-button-outline-color: initial;\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: initial;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: initial;\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n\n [theme~="dark"] {\n /* Text colors */\n --material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));\n --material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));\n --material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));\n\n /* Primary colors */\n --material-primary-color: var(--light-primary-color, #7e3ff2);\n --material-primary-text-color: #b794f6;\n\n /* Error colors */\n --material-error-color: var(--error-color, #de2839);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--dark-theme-background-color, #303030);\n --material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);\n --material-disabled-color: rgba(255, 255, 255, 0.3);\n\n /* Divider colors */\n --material-divider-color: rgba(255, 255, 255, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: #fff;\n --_material-text-field-input-line-opacity: 0.7;\n --_material-text-field-input-line-hover-opacity: 1;\n --_material-text-field-focused-label-opacity: 1;\n\n /* Button tweaks */\n --_material-button-raised-background-color: rgba(255, 255, 255, 0.08);\n --_material-button-outline-color: rgba(255, 255, 255, 0.2);\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);\n --_material-grid-row-selected-overlay-opacity: 0.16;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n\n a {\n color: inherit;\n }\n </style>\n </template>\n</dom-module><dom-module id="material-color-dark">\n <template>\n <style>\n :host,\n #host-fix {\n /* Text colors */\n --material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));\n --material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));\n --material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));\n\n /* Primary colors */\n --material-primary-color: var(--light-primary-color, #7e3ff2);\n --material-primary-text-color: #b794f6;\n\n /* Error colors */\n --material-error-color: var(--error-color, #de2839);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--dark-theme-background-color, #303030);\n --material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);\n --material-disabled-color: rgba(255, 255, 255, 0.3);\n\n /* Divider colors */\n --material-divider-color: rgba(255, 255, 255, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: #fff;\n --_material-text-field-input-line-opacity: 0.7;\n --_material-text-field-input-line-hover-opacity: 1;\n --_material-text-field-focused-label-opacity: 1;\n\n /* Button tweaks */\n --_material-button-raised-background-color: rgba(255, 255, 255, 0.08);\n --_material-button-outline-color: rgba(255, 255, 255, 0.2);\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);\n --_material-grid-row-selected-overlay-opacity: 0.16;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n </style>\n </template>\n</dom-module><custom-style>\n <style>\n :root {\n /* Text colors */\n --material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));\n --material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));\n --material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));\n\n /* Primary colors */\n --material-primary-color: var(--primary-color, #6200ee);\n --material-primary-contrast-color: var(--dark-theme-base-color, #fff);\n --material-primary-text-color: var(--material-primary-color);\n\n /* Error colors */\n --material-error-color: var(--error-color, #b00020);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--light-theme-background-color, #fff);\n --material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);\n --material-disabled-color: rgba(0, 0, 0, 0.26);\n\n /* Divider colors */\n --material-divider-color: rgba(0, 0, 0, 0.12);\n }\n </style>\n</custom-style>',document.head.appendChild(o.content)},23799:(e,t,n)=>{"use strict";n(5618),n(22726);const o=document.createElement("template");o.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'material-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAjAAAsAAAAADZQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAFZSk09oY21hcAAAAYgAAACNAAACNOuCXH5nbHlmAAACGAAABDwAAAXsdK8UGGhlYWQAAAZUAAAAMAAAADYX9T2IaGhlYQAABoQAAAAgAAAAJBGyCLpobXR4AAAGpAAAABQAAABAjXoAAGxvY2EAAAa4AAAAIgAAACIKMgjUbWF4cAAABtwAAAAfAAAAIAEeAFRuYW1lAAAG/AAAATQAAAJe3l764XBvc3QAAAgwAAAAjwAAAMqJEjDWeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYOS4wTiBgZWBgYGfbQIDA2MAhGZpYChlymZgYGJgZWbACgLSXFMYHF4xvuJnv/CvgOEG+wXG6UBhRpAcAMyUDJN4nO2R2Q0DIQxEHwt7HzSSGlJQvlJkqqGJjYdJGbH0PPJgELKBEcjBIyiQ3iQUr3BT9zNb9wvP3lPkt3rfkZNy1KXnIXpLvDgxs7DGvZ2Dk4saxxP/OHr+/KqqCZo+08EgzUa7acVoym002lubDNLZIF0M0tUg3Yz22XaD9DD6XTsN0ssgrYb6BZEQJiUAAAB4nH1UbUhbVxg+77259yZMJbfko7DhbnJtrjYuWfNxsx9qBFu32ljHWqWO6VD6MW1G4uYPsfSDdQOHXOuPrtYfKytKJziYEJkQZLQ/BqHCpsUfghZX1jHBjBUWWqfes51zE1dloyfJyXvOed5znvO+z3sQINKEeb4WmRECBURZBAGEeU1fyOgPhliJlTT9geneVpTxD23/jPbinSAGRYgADGuMP8P4CILgGd9W1HRPXyDeiEEIL5pvCnH0MnqVeMhh2e4iP9ldAnbRVgpBV6AGwmLIB6xLdAnzpzPb+zOn1fdU8uVr8/9/3eVr+fEMacZg1+LGBmfLczKHuNuIQ8gCggUU9lP8/hDjN01pcBluk8sQK4/jOa6P4kCxEOI8p+kTzCkNq6Z1YukTGswVcLUFHNnOCeyaBvexqjGnuD4Nh3GYWIVYxLkV9FJ+PwqluwpxcqK+QGJidIyfDLkm0hnW8wXiziL09xskPma0Hx1CEbKPW+CRwFudDuR0SBEVRVSr4kGKh3UrPlA81kgNRFTJWQpOh1UoAYFnZZoC07dz6RRejx0/HgN7Kg0j6RTYY01NMbyeSs+NXR9+WB2NVj8cvg71z+2eG0zxMVwjmAksO53G3elpnKVOYJtOw430NNhiTRsb//HDacPmbPoE/uEC0OsbMRtn12jGLQwzCznIsWu4CHJ77vgKkl50RzkcDMti0DQ1939M8izPUSG8mPJmWSZDEkSaieivy7IqzKMSdABVoTcROsDLEj1N3RehuQLebjOiGQxEFF52Kx7FEw5FLKCGQ0bEZbegqEGJkuUZMh0MOB1Oh93G/7b4GOdy63i0veruJSwMmlcGN1vLvQdHOs8kzndOFxW3xhoqK8HUiX9SvRV09mLy91+eQdGfWTjXHv1R/xJfktwGqL2x+yx8/McoWD6AjcFnZYPc153nE2c6Ryq85Sl4zdsQay0u1jNwKHmRzh70qtl3u85i7clXOAsfwVW+0tvQ2Ooy9ERqYZsvQfuQQu5biPW/gS4oyUOFpFIdOaiMeKIiN+1tdBygKyGKMU09XV3CMy0tcHRpFbKrS3C0pQXPLK0+HejtqTt8uK6nF6w71sA79XXlFRXldfXjOwZf0tGGJ5eX8WRbR0cbNC8vQ3Nbx1bpXkf8hFqstMfVMNCuGiO6AhFYyRTjVjYHmFm06y3ykQGhKxn1YN3JJkmwTCfkfOWEjMqhyQOXyP+auJaXcVU0WkUkPTYzdutR5XzFRLL3Sn8ifsfn9/vuxBO5RPcJ/D0zyzUn9mqfCE78pve7QKgAox6v+05SLKXF0M7SQbiVIW+enaEkyod+djTnMoIdNqINInkByStyzd3dNXorNXT18v3oFxf6j7xlHNHP2YygR6u74noXTuJFo8QeTw5+3vh2MDDTZz154spnN/PcjXx8kvyw7gh+hJMwDDlc9A+3XcsFeJxjYGRgYADi5PtWjvH8Nl8ZuDkTgCIM16srKhH0v0zO++wXgFwOBiaQKAA6hAuJeJxjYGRgYL/wr4CBgcuKgeH/f877DEARFCAAAIewBYJ4nGNgYGDgTCAOc1lhigEAvMIGAwAAAAAAGAAwAGIAdgCKAJ4AwAEkATIBcAHoAlACXgKsAvYAAHicY2BkYGAQYPBgYGEAASYg5gJCBob/YD4DABFeAXMAeJx9kL1uwjAUhU8gUJVIVaWqnRgsVepSEX5G1BkkRgb2EBwIcuLIMUi8QR+kT9CH6NgH6VP0xHiBAVtyvvvdc50oAB7xgwDNCvDgzma1cMfqzG3Ss+eQ/Oq5gwhjz136D889vGPhOcITDrwhCO9p+vj03GL+y3Ob/ttzSP713MEL/jx30Q/guYdV0Pcc4S0wRWKlyRM1yFNd1ku5PajkSl5WK2nqXJdiHI8uG3NZSkOzEeuTqI/bibWZyIwuxEyXViqlRWX0XqY23llbTYfDzPs41QUKJLCQMMhJCgM+U2iUqLGk3/JfKHbMzeSt3sr5mqapBf9/jNHNiTl96XrnzIZTa5x41jjyiya0FhnrjBnNuwRmbrZJK25NU7nenialj7FzUxWmGHJnV/nYvb34BzHZcLZ4nG2MQQ6CMBREO0ARtSjuvASHqu1XCD+0+YKE20tD3DmLmbxk8lSm9tzV/zTIkKOARokDKhxxwhkGNS64osFNXaxIWFoflnGx4s2Oc0xQOcs0eivadeQGs/VHwtgyPaf6B9K/ukk7pnTj4IbKS4jJp2lziaGVWt+/7YPJ5xsUke1aCnGwvpxjGqW+tN8xfgA=) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --material-icons-arrow-downward: "\\ea01";\n --material-icons-arrow-upward: "\\ea02";\n --material-icons-calendar: "\\ea03";\n --material-icons-check: "\\ea04";\n --material-icons-chevron-left: "\\ea05";\n --material-icons-chevron-right: "\\ea06";\n --material-icons-clear: "\\ea07";\n --material-icons-clock: "\\ea08";\n --material-icons-dropdown: "\\ea09";\n --material-icons-error: "\\ea0a";\n --material-icons-eye-disabled: "\\ea0b";\n --material-icons-eye: "\\ea0c";\n --material-icons-play: "\\ea0d";\n --material-icons-reload: "\\ea0e";\n --material-icons-upload: "\\ea0f";\n }\n </style>\n</custom-style>',document.head.appendChild(o.content)},85408:(e,t,n)=>{"use strict";n(85466),n(8542),n(37365);const o=document.createElement("template");o.innerHTML='<dom-module id="material-overlay">\n <template>\n <style>\n :host {\n top: 16px;\n right: 16px;\n /* TODO (@jouni): remove unnecessary multiplication after https://github.com/vaadin/vaadin-overlay/issues/90 is fixed */\n bottom: calc(1px * var(--vaadin-overlay-viewport-bottom) + 16px);\n left: 16px;\n }\n\n [part="overlay"] {\n background-color: var(--material-background-color);\n border-radius: 4px;\n box-shadow: var(--material-shadow-elevation-4dp);\n color: var(--material-body-text-color);\n font-family: var(--material-font-family);\n font-size: var(--material-body-font-size);\n font-weight: 400;\n }\n\n [part="content"] {\n padding: 8px 0;\n }\n\n [part="backdrop"] {\n opacity: 0.2;\n animation: 0.2s vaadin-overlay-backdrop-enter;\n will-change: opacity;\n }\n\n @keyframes vaadin-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(o.content)},37365:(e,t,n)=>{"use strict";n(22726),n(5618);const o=document.createElement("template");o.innerHTML='<custom-style>\n <style is="custom-style">\n html {\n /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */\n --material-shadow-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n --material-shadow-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-12dp: 0 12px 16px 1px rgba(0, 0, 0, 0.14), 0 4px 22px 3px rgba(0, 0, 0, 0.12), 0 6px 7px -4px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-24dp: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4);\n }\n </style>\n</custom-style>',document.head.appendChild(o.content)},8542:(e,t,n)=>{"use strict";n(22726),n(5618),n(21384);const o=document.createElement("template");if(o.innerHTML="<custom-style>\n <style>\n html {\n /* Font family */\n --material-font-family: 'Roboto', sans-serif;\n\n /* Font sizes */\n --material-h1-font-size: 6rem;\n --material-h2-font-size: 3.75rem;\n --material-h3-font-size: 3rem;\n --material-h4-font-size: 2.125rem;\n --material-h5-font-size: 1.5rem;\n --material-h6-font-size: 1.25rem;\n --material-body-font-size: 1rem;\n --material-small-font-size: 0.875rem;\n --material-button-font-size: 0.875rem;\n --material-caption-font-size: 0.75rem;\n\n /* Icon size */\n --material-icon-font-size: 20px;\n }\n </style>\n</custom-style><dom-module id=\"material-typography\">\n <template>\n <style>\n body {\n font-family: var(--material-font-family);\n font-size: var(--material-body-font-size);\n line-height: 1.4;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: inherit;\n line-height: 1.1;\n margin-top: 1.5em;\n }\n\n h1 {\n font-size: var(--material-h3-font-size);\n font-weight: 300;\n letter-spacing: -0.015em;\n margin-bottom: 1em;\n text-indent: -0.07em;\n }\n\n h2 {\n font-size: var(--material-h4-font-size);\n font-weight: 300;\n letter-spacing: -0.01em;\n margin-bottom: 0.75em;\n text-indent: -0.07em;\n }\n\n h3 {\n font-size: var(--material-h5-font-size);\n font-weight: 400;\n margin-bottom: 0.75em;\n text-indent: -0.05em;\n }\n\n h4 {\n font-size: var(--material-h6-font-size);\n font-weight: 400;\n letter-spacing: 0.01em;\n margin-bottom: 0.75em;\n text-indent: -0.05em;\n }\n\n h5 {\n font-size: var(--material-body-font-size);\n font-weight: 500;\n margin-bottom: 0.5em;\n text-indent: -0.025em;\n }\n\n h6 {\n font-size: var(--material-small-font-size);\n font-weight: 500;\n letter-spacing: 0.01em;\n margin-bottom: 0.25em;\n text-indent: -0.025em;\n }\n\n a,\n b,\n strong {\n font-weight: 500;\n }\n </style>\n </template>\n</dom-module>",document.head.appendChild(o.content),!window.polymerSkipLoadingFontRoboto){const e="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic",t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}},22726:(e,t,n)=>{"use strict";class o extends HTMLElement{static get version(){return"1.3.2"}}customElements.define("vaadin-material-styles",o)},1335:(e,t,n)=>{"use strict";n.d(t,{G:()=>b});var o=n(28426),r=n(52521),i=n(87529),a=n(20723),s=n(15520),l=n(59898);const d=Element.prototype,c=d.matches||d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector;var h=n(50856);let m=0;const p={},u=e=>{m++;const t="vaadin-overlay-content-"+m,n=document.createElement("template"),o=document.createElement("style");o.textContent=":host { display: block; }"+e,n.content.appendChild(o),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,t);const r=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(n.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(r.is,r),p[e]=t,t};class b extends((0,s.T)((0,l.U)(o.H3))){static get template(){return h.d` <style> :host { z-index: 200; position: fixed; /* Despite of what the names say, <vaadin-overlay> is just a container for position/sizing/alignment. The actual overlay is the overlay part. */ /* Default position constraints: the entire viewport. Note: themes can override this to introduce gaps between the overlay and the viewport. */ top: 0; right: 0; bottom: var(--vaadin-overlay-viewport-bottom); left: 0; /* Use flexbox alignment for the overlay part. */ display: flex; flex-direction: column; /* makes dropdowns sizing easier */ /* Align to center by default. */ align-items: center; justify-content: center; /* Allow centering when max-width/max-height applies. */ margin: auto; /* The host is not clickable, only the overlay part is. */ pointer-events: none; /* Remove tap highlight on touch devices. */ -webkit-tap-highlight-color: transparent; /* CSS API for host */ --vaadin-overlay-viewport-bottom: 0; } :host([hidden]), :host(:not([opened]):not([closing])) { display: none !important; } [part="overlay"] { -webkit-overflow-scrolling: touch; overflow: auto; pointer-events: auto; /* Prevent overflowing the host in MSIE 11 */ max-width: 100%; box-sizing: border-box; -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */ } [part="backdrop"] { z-index: -1; content: ""; background: rgba(0, 0, 0, 0.5); position: fixed; top: 0; left: 0; bottom: 0; right: 0; pointer-events: auto; } </style> <div id="backdrop" part="backdrop" hidden\$="{{!withBackdrop}}"></div> <div part="overlay" id="overlay" tabindex="0"> <div part="content" id="content"> <slot></slot> </div> </div> `}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},instanceProps:{type:Object},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),this._observer=new a.o(this,(e=>{this._setTemplateFromNodes(e.addedNodes)})),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{}))}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight;t&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_setTemplateFromNodes(e){this.template=e.filter((e=>e.localName&&"template"===e.localName))[0]||this.template}close(e){var t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_outsideClickListener(e){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._last)return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last)if("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented)this._cycleTab(e.shiftKey?-1:1),e.preventDefault();else if("Escape"===e.key||"Esc"===e.key){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),(0,i.T8)(this,(()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);const e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)})),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}_enqueueAnimation(e,t){const n=`__${e}Handler`,o=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",o),delete this[n])};this[n]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening","");const e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){if(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode){const e=this._getActiveElement();(e===document.body||this._deepContains(e))&&this.__restoreFocusNode.focus(),this.__restoreFocusNode=null}this.setAttribute("closing","");const e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")};this._shouldAnimate()?this._enqueueAnimation("closing",e):e()}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter((e=>e instanceof b&&!e.hasAttribute("closing"))).sort(((e,t)=>e.__zIndex-t.__zIndex||0))}get _last(){return this===b.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.__attachedInstances.forEach((e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")}))}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=b.__attachedInstances;let t;for(;(t=e.pop())&&(t===this||(t.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),t.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach((e=>{e.parentNode===this.content&&this.content.removeChild(e)})),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(e,t){this._removeOldContent(),e._Templatizer||(e._Templatizer=(0,r.Uv)(e,this,{instanceProps:t,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new e._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const n=e._templateRoot||(e._templateRoot=e.getRootNode());if(n!==document){const e=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let t=Array.from(n.querySelectorAll("style")).reduce(((e,t)=>e+t.textContent),"");if(e){const e=window.ShadyCSS.ScopingShim._styleInfoForNode(n.host);e&&(t+=e._getStyleRules().parsedCssText,t+="}")}if(t=t.replace(/:host/g,":host-nomatch"),t)if(e){const e=(e=>{const t=p[e]||u(e);return document.createElement(t)})(t);e.id="content",e.setAttribute("part","content"),this.$.content.parentNode.replaceChild(e,this.$.content),e.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=e}else{const e=document.createElement("style");e.textContent=t,this.$.content.shadowRoot.appendChild(e),this._contentNodes.unshift(e)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,n,o){e!==t?this.template=void 0:n!==o&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,n,o,r,i){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");const a=this._oldOwner!==n||this._oldModel!==o;this._oldModel=o,this._oldOwner=n;const s=this._oldInstanceProps!==r||this._oldTemplate!==e;this._oldInstanceProps=r,this._oldTemplate=e;const l=this._oldRenderer!==t;this._oldRenderer=t;const d=this._oldOpened!==i;if(this._oldOpened=i,e&&s)this._stampOverlayTemplate(e,r);else if(t&&(l||d||a)){if(this.content=this,l)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);i&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){const n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}_getFocusableElements(){return class{static getTabbableNodes(e){const t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return c.call(e,"input, select, textarea, button, object")?c.call(e,":not([disabled])"):c.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&c.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){if(this.isFocusable(e)){const t=e.getAttribute("tabindex")||0;return Number(t)}return-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;const n=e,o=this._normalizedTabIndex(n);let r,i=o>0;if(o>=0&&t.push(n),r="slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children,r)for(let a=0;a<r.length;a++)i=this._collectTabbableNodes(r[a],t)||i;return i}static _isVisible(e){let t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&(t=window.getComputedStyle(e),"hidden"!==t.visibility&&"none"!==t.display)}static _sortByTabIndex(e){const t=e.length;if(t<2)return e;const n=Math.ceil(t/2),o=this._sortByTabIndex(e.slice(0,n)),r=this._sortByTabIndex(e.slice(n));return this._mergeSortByTabIndex(o,r)}static _mergeSortByTabIndex(e,t){const n=[];for(;e.length>0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){const n=Math.max(e.tabIndex,0),o=Math.max(t.tabIndex,0);return 0===n||0===o?o>n:n>o}}.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=!1||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;const n=e.ownerDocument;for(;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";const t=b.__attachedInstances.filter((e=>e!==this)).pop();if(t){e=t.__zIndex+1}this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(b.is,b)},15520:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var o=n(21384),r=n(62305);const i=e=>class extends((0,r.I)(e)){static finalize(){super.finalize();const e=this.prototype._template,t=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!t&&Array.from(n.content.querySelectorAll("style[include]")).forEach((t=>{this._includeStyle(t.getAttribute("include"),e)})),this._includeMatchingThemes(e)}static _includeMatchingThemes(e){const t=o.t.prototype.modules;let n=!1;const r=this.is+"-default-theme";Object.keys(t).sort(((e,t)=>{const n=0===e.indexOf("vaadin-"),o=0===t.indexOf("vaadin-"),r=["lumo-","material-"],i=r.filter((t=>0===e.indexOf(t))).length>0,a=r.filter((e=>0===t.indexOf(e))).length>0;return n!==o?n?-1:1:i!==a?i?-1:1:0})).forEach((o=>{if(o!==r){const r=t[o].getAttribute("theme-for");r&&r.split(" ").forEach((t=>{new RegExp("^"+t.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(o,e))}))}})),!n&&t[r]&&this._includeStyle(r,e)}static _includeStyle(e,t){if(t&&!t.content.querySelector(`style[include="${e}"]`)){const n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}}},62305:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});const o=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}}}}]); //# sourceMappingURL=chunk.232954093c003cff3cdd.js.map
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); import React from 'react'; import PropTypes from 'prop-types'; import { Seq } from 'immutable'; import { FormLabel, FormSelect } from '../../components/style/export'; import PropertyStyle from './shared-property-style'; export default function PropertyEnum(_ref) { var value = _ref.value, onUpdate = _ref.onUpdate, configs = _ref.configs, sourceElement = _ref.sourceElement, internalState = _ref.internalState, state = _ref.state; var update = function update(val) { if (configs.hook) { return configs.hook(val, sourceElement, internalState, state).then(function (_val) { return onUpdate(_val); }); } return onUpdate(val); }; return React.createElement( 'table', { className: 'PropertyEnum', style: PropertyStyle.tableStyle }, React.createElement( 'tbody', null, React.createElement( 'tr', null, React.createElement( 'td', { style: PropertyStyle.firstTdStyle }, React.createElement( FormLabel, null, configs.label ) ), React.createElement( 'td', null, React.createElement( FormSelect, { value: value, onChange: function onChange(event) { return update(event.target.value); } }, Seq(configs.values).entrySeq().map(function (_ref2) { var _ref3 = _slicedToArray(_ref2, 2), key = _ref3[0], value = _ref3[1]; return React.createElement( 'option', { key: key, value: key }, value ); }) ) ) ) ) ); } PropertyEnum.propTypes = { value: PropTypes.any.isRequired, onUpdate: PropTypes.func.isRequired, configs: PropTypes.object.isRequired, sourceElement: PropTypes.object, internalState: PropTypes.object, state: PropTypes.object.isRequired };
import Vue from 'vue' /** * BAS SERVER API ENDPOINT */ class BaseProxy { constructor(endpoint,parameters = {}){ this.endpoint = endpoint this.parameters = parameters } setParameters(parameters) { Object.keys(parameters).forEach((key) =>{ this.parameters[key] = parameters[key]; }) return this; } setParameter(name,value){ this.parameters[name] =value; return this; } removeParameters(parameters){ parameters.forEach((parameter)=>{ delete this.parameters[parameter] }) return this; } removeParameter(parameter){ delete this.parameters[parameter] return this } /** * The method used to perform an AJAX-request. * @param {*} requestType * @param {*} url * @param {*} data */ submit(requestType,url,data=null) { return new Promise((resolve,reject) =>{ Vue.$http[requestType](url+this.getParameterString(),data) .then((response)=>{ console.log(`url:${url}`,response.status,'<<<>>>',response.data) if(response.status ==200){ resolve(response.data||{state:1}) }else{ reject(response.status) } }) .catch(({response}) =>{ console.log(response, '<<<>>>', response) if (response){ reject(response.status) }else{ reject('unknow') } }) }) } all(){ return this.submit('get',`/${this.endpoint}`) } getParameterString(){ const keys = Object.keys(this.parameters); const parameterStrings = keys .filter(key => !!this.parameters[key]) .map(key => `${key}=${this.parameters[key]}`) return parameterStrings.length === 0 ? '' : `?${parameterStrings.join('&')}`; } } export default BaseProxy;
var round = Math.round; /** * Service that allow replacing of elements. */ export default function Replace(modeling) { this._modeling = modeling; } Replace.$inject = [ 'modeling' ]; /** * @param {Element} oldElement - Element to be replaced * @param {Object} newElementData - Containing information about the new Element, for example height, width, type. * @param {Object} options - Custom options that will be attached to the context. It can be used to inject data * that is needed in the command chain. For example it could be used in * eventbus.on('commandStack.shape.replace.postExecute') to change shape attributes after * shape creation. */ Replace.prototype.replaceElement = function(oldElement, newElementData, options) { var modeling = this._modeling; var newElement = null; if (oldElement.waypoints) { // TODO // modeling.replaceConnection } else { // set center of element for modeling API // if no new width / height is given use old elements size newElementData.x = round(oldElement.x + (newElementData.width || oldElement.width) / 2); newElementData.y = round(oldElement.y + (newElementData.height || oldElement.height) / 2); newElement = modeling.replaceShape(oldElement, newElementData, options); } return newElement; };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopRequireDefault(_createClass2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); var _immutable = require('immutable'); var _index = require('../index'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (propName, options) { return function (MyFragment) { return function (_Fragment) { (0, _inherits3.default)(ArrayDecorator, _Fragment); function ArrayDecorator() { (0, _classCallCheck3.default)(this, ArrayDecorator); return (0, _possibleConstructorReturn3.default)(this, (ArrayDecorator.__proto__ || Object.getPrototypeOf(ArrayDecorator)).apply(this, arguments)); } (0, _createClass3.default)(ArrayDecorator, [{ key: 'init', value: function init() { return new MyFragment(); } }, { key: 'unshift', value: function unshift(value) { if (propName) { var prevData = this.data.data.get(propName).toJS(); prevData.unshift(value); var newData = (0, _immutable.fromJS)(prevData); this.data.data = this.data.data.set(propName, newData); } this.normalizeData = null; this.dataForPaths = new Map(); this.data.normalizeData = null; this.data.dataForPaths = new Map(); return this.data; } }, { key: 'push', value: function push(value) { if (propName) { var prevData = this.data.data.get(propName).toJS(); prevData.push(value); var newData = (0, _immutable.fromJS)(prevData); this.data.data = this.data.data.set(propName, newData); } this.normalizeData = null; this.dataForPaths = new Map(); this.data.normalizeData = null; this.data.dataForPaths = new Map(); return this.data; } }, { key: 'setData', value: function setData(value, path, setOptions, info) { if (setOptions && setOptions.method && value && typeof this[setOptions.method] === 'function') { if (options && options.include && !options.include.includes(setOptions.method)) { return this.original.setData(value, path, setOptions, info); } return this[setOptions.method](value); } return this.original.setData(value, path, setOptions, info); } }]); return ArrayDecorator; }(_index.Fragment); }; };
import React from 'react'; import './button.css'; export default (props) => { return ( <button className={props.className || 'btn'} onClick={() => props.pressButton()} > {props.children} </button> ) };
// Controller function GameController ($scope) { $scope.games=[ {nombre:"Zombies", codigo:"Hello", fase:"alpha"}, {nombre:"Survive", codigo:"Salve", fase:"alpha"}, {nombre:"Mini", codigo:"metodo", fase:"alpha"}, {nombre:"Game2D", codigo:"sobre", fase:"alpha"} ]; $scope.Save = function () { $scope.games.push({nombre:$scope.nuevoGame.nombre, codigo:$scope.nuevoGame.codigo, fase:$scope.nuevoGame.fase}); $scope.formVisibility = false; console.log($scope.formVisibility) } $scope.formVisibility = false; $scope.ShowForm = function () { $scope.formVisibility = true; console.log($scope.formVisibility) } }
const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up all the JS files. | */ mix.js('resources/assets/js/app.js', 'public/js').sourceMaps(); mix.sass('resources/assets/sass/app.scss', 'public/css'); if (mix.inProduction()) { mix.version(['public/css/app.css', 'public/js/app.js', 'public/js/base2current.json']); }
module.exports = require('../../images/2/1f3a6.png');
// Copyright 2017, Google, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // TODO: Load the ./languageapi module const languageAPI = require('./languageapi'); // END TODO // TODO: Load the ./spanner module const feedbackStorage = require('./spanner'); // END TODO exports.subscribe = function subscribe(event) { // The Cloud Pub/Sub Message object. const pubsubMessage = event.data; // TODO: Decode the Cloud Pub/Sub message // extracting the feedbackObject data // The message received from Pub/Sub is base64 encoded, and // the data submitted by students is in a data property let feedbackObject = JSON.parse(Buffer.from( pubsubMessage.data, 'base64').toString()); return languageAPI.analyze(feedbackObject.feedback) .then( score => { // TODO: Log the sentiment score console.log(`Score: ${score}`); // END TODO // TODO: Add new score property to feedbackObject feedbackObject.score = score; // END TODO // TODO: Pass feedback object to the next handler return feedbackObject; // END TODO }) // TODO: insert record .then(feedbackStorage.saveFeedback) .then(() => { // TODO: Log and return success console.log('feedback saved...'); return 'success'; // END TODO }).catch(console.error); // TODO: Log error };
class Api { constructor() { this._blackListedBoxes = []; this.gates = []; this.boxes = {}; this.ships = {}; this.battlestation = null; this.lastMovement = 0; this.isDisconnected = false; this.disconnectTime = null; this.reconnectTime = null; this.jumpTime = $.now(); this.resetBlackListTime = $.now(); this.blackListTimeOut = 150000 this.getSettingsTime = $.now(); this.setSettingsTime = $.now(); this.rute = null; this.starSystem = []; this.workmap = null; this.statustravelsystem = false; } lockShip(ship) { if (!(ship instanceof Ship)) return; if (this.ships[ship.id] == null) return; ship.update(); let pos = ship.position; let scr = 'document.getElementById("preloader").lockShip(' + ship.id + ',' + Math.round(pos.x) + ',' + Math.round(pos.y) + ',' + Math.round(window.hero.position.x) + ',' + Math.round(window.hero.position.y) + ');'; Injector.injectScript(scr); this.lockTime = $.now(); } lockNpc(ship) { if (!(ship instanceof Ship)) return; if (this.ships[ship.id] == null) return; this.lockTime = $.now(); this.lockShip(ship); } reconnect() { Injector.injectScript('document.getElementById("preloader").reconnect();'); this.reconnectTime = $.now(); } collectBox(box) { if (!(box instanceof Box)) return; if (this.boxes[box.hash] == null) return; if (MathUtils.random(1, 100) >= window.settings.collectionSensitivity) { return; } Injector.injectScript('document.getElementById("preloader").collectBox' + box.hash + '()'); this.collectTime = $.now(); } move(x, y) { if (!isNaN(x) && !isNaN(y)) { window.hero.move(new Vector2D(x, y)); } } blackListHash(hash) { this._blackListedBoxes.push(hash); } isOnBlacklist(hash) { return this._blackListedBoxes.includes(hash); } startLaserAttack() { Injector.injectScript('document.getElementById("preloader").laserAttack()'); } jumpGate() { Injector.injectScript('document.getElementById("preloader").jumpGate();'); } /*changeConfig() { Injector.injectScript('document.getElementById("preloader").changeConfig();'); }*/ getSettings() { for (let key in window.settings) { chrome.storage.sync.get(key, function(set) { window.newSettings[key] = set[key]; }) } this.getSettingsTime = $.now(); } setSettings() { chrome.storage.sync.set(window.settings); this.setSettingsTime = $.now(); } updateSettings() { window.settings = window.newSettings; } resetTarget(target) { if (target == "enemy") { this.targetShip = null; this.attacking = false; this.triedToLock = false; this.lockedShip = null; } else if (target == "box") { this.targetBoxHash = null; } else if (target == "all") { this.targetShip = null; this.attacking = false; this.triedToLock = false; this.lockedShip = null; this.targetBoxHash = null; } } jumpInGG(id, settings) { //Usage: api.jumpInGG(70, window.settings.kappa); if (settings) { let gate = this.findNearestGatebyGateType(id); if (gate.gate) { let x = gate.gate.position.x; let y = gate.gate.position.y; if (window.hero.position.distanceTo(gate.gate.position) < 200 && this.jumpTime && $.now() - this.jumpTime > 3000) { this.jumpGate(); this.jumpTime = $.now(); } this.resetTarget("all"); this.move(x, y); window.movementDone = false; } } } jumpInGateByID(gateId){ let hasJumped = false; let gate = this.findGatebyID(gateId); if (gate.gate) { let x = gate.gate.position.x + MathUtils.random(-100, 100); let y = gate.gate.position.y + MathUtils.random(-100, 100); if (window.hero.position.distanceTo(gate.gate.position) < 200 && this.jumpTime && $.now() - this.jumpTime > 3000) { this.jumpGate(); this.jumpTime = $.now(); hasJumped = true; } this.resetTarget("all"); this.move(x, y); window.movementDone = false; } return hasJumped; } jumpAndGoBack(gateId){ let hasJumped = this.jumpInGateByID(gateId); if (window.settings.workmap != null) { this.workmap = window.settings.workmap; } else { this.workmap = window.hero.mapId; } if(hasJumped) { this.statustravelsystem = window.settings.travelsystem; window.settings.travelsystem = true; setTimeout(() => { window.settings.travelsystem = this.statustravelsystem; }, MathUtils.random(1200000, 1500000)); } return hasJumped; } ggDeltaFix() { let shipsCount = Object.keys(this.ships).length; for (let property in this.ships) { let ship = this.ships[property]; if (ship && (ship.name == "-=[ StreuneR ]=- δ4" || ship.name == "-=[ Lordakium ]=- δ9" || ship.name == "-=[ Sibelon ]=- δ14" || ship.name == "-=[ Kristallon ]=- δ19")) { window.settings.resetTargetWhenHpBelow25Percent=false; if (shipsCount > 1) { window.settings.setNpc(ship.name, true); if (this.targetShip == ship){ this.resetTarget("enemy"); } } else { window.settings.setNpc(ship.name, false); this.targetShip = ship; } } } } ggZetaFix() { let shipsCount = Object.keys(this.ships).length; for (let property in this.ships) { let ship = this.ships[property]; if (ship && (ship.name == "-=[ Devourer ]=- ζ25" || ship.name == "-=[ Devourer ]=- ζ27")) { window.settings.resetTargetWhenHpBelow25Percent=false; if (shipsCount > 1) { //window.settings.dontCircleWhenHpBelow25Percent = false; window.settings.setNpc(ship.name, true); if (this.targetShip == ship) { this.resetTarget("enemy"); } } else { window.settings.setNpc(ship.name, false); this.targetShip = ship; //window.settings.dontCircleWhenHpBelow25Percent = true; } } } } battlerayFix() { let shipsCount = this.countNpcAroundByType("-=[ Interceptor ]=-", 600); for (let property in this.ships) { let ship = this.ships[property]; if (ship && (ship.name == "-=[ Battleray ]=-") && ship.distanceTo(window.hero.position) < 700) { if (shipsCount > 1 && !ship.isAttacked) { window.settings.setNpc(ship.name, true); if (this.targetShip == ship){ this.resetTarget("enemy"); } } else { window.settings.setNpc(ship.name, false); this.targetShip = ship; } } } } countNpcAroundByType(type, distance){ let shipsCount = Object.keys(this.ships).length; let shipsAround = 0; for (let property in this.ships) { let ship = this.ships[property]; if (ship && (ship.distanceTo(window.hero.position) < distance) && (ship.name == type)) { shipsAround++; } } return shipsAround; } ggCountNpcAround(distance){ let shipsCount = Object.keys(this.ships).length; let shipsAround = 0; for (let property in this.ships) { let ship = this.ships[property]; if (ship && ship.distanceTo(window.hero.position) < distance) { shipsAround++; } } return shipsAround; } allNPCInCorner(){ let shipsCount = Object.keys(this.ships).length; let shipsInCorner = 0; for (let property in this.ships) { let ship = this.ships[property]; if((ship.position.x == 20999 && ship.position.y == 13499) || (ship.position.x == 0 && ship.position.y == 0)) { shipsInCorner++; } } if(shipsInCorner == shipsCount){ return true; }else{ return false; } } findNearestBox() { let minDist = 100000; let finalBox; if (!window.settings.bonusBox && !window.settings.materials && !window.settings.palladium && !window.settings.cargoBox && !window.settings.greenOrGoldBooty && !window.settings.redBooty && !window.settings.blueBooty && !window.settings.masqueBooty) { return { box: null, distance: minDist }; } for (let property in this.boxes) { let box = this.boxes[property]; let dist = box.distanceTo(window.hero.position); if (dist < minDist) { if (!box.isResource() && ((box.isCollectable() && window.settings.bonusBox) || ((box.isMaterial() || box.isDropRes()) && window.settings.materials) || (box.isPalladium() && window.settings.palladium) || (box.isCargoBox() && window.settings.cargoBox) || (box.isGreenOrGoldBooty() && window.settings.greenOrGoldBooty && window.greenOrGoldBootyKeyCount > 0) || (box.isRedBooty() && window.settings.redBooty && window.redBootyKeyCount > 0) || (box.isBlueBooty() && window.settings.blueBooty && window.blueBootyKeyCount > 0) || (box.isMasqueBooty() && window.settings.masqueBooty && window.masqueBootyKeyCount > 0))) { finalBox = box; minDist = dist; } } } return { box: finalBox, distance: minDist }; } findNearestShip() { let minDist = window.settings.palladium ? window.settings.npcCircleRadius : 100000; let finalShip; if (!window.settings.killNpcs) { return { ship: null, distance: minDist }; } for (let property in this.ships) { let ship = this.ships[property]; ship.update(); let dist = ship.distanceTo(window.hero.position); if (dist < minDist) { if (ship.isNpc && window.settings.getNpc(ship.name) && !ship.isAttacked) { finalShip = ship; minDist = dist; } } } return { ship: finalShip, distance: minDist }; } findNearestGate() { let minDist = 100000; let finalGate; this.gates.forEach(gate => { let dist = window.hero.distanceTo(gate.position); if (dist < minDist) { finalGate = gate; minDist = dist; } }); return { gate: finalGate, distance: minDist }; } findNearestGateForRunAway(enemy) { let minDist = 100000; let finalGate; this.gates.forEach(gate => { let enemeyDistance = enemy.distanceTo(gate.position); let dist = window.hero.distanceTo(gate.position); if (enemeyDistance < dist) { return; } if (dist < minDist) { finalGate = gate; minDist = dist; } }); return { gate: finalGate, distance: minDist }; } findNearestGatebyGateType(gateId) { let minDist = 100000; let finalGate; this.gates.forEach(gate => { let dist = window.hero.distanceTo(gate.position); if (dist < minDist && gate.gateType == gateId) { finalGate = gate; minDist = dist; } }); return { gate: finalGate, distance: minDist }; } markHeroAsDead() { this.heroDied = true; Injector.injectScript("window.heroDied = true;"); } checkForCBS(){ let result = { walkAway: false, cbsPos: null, }; result.cbsPos = this.battlestation.position; let dist = this.battlestation.distanceTo(window.hero.position); if(dist < 1500){ result.walkAway = true; } return result; } checkForEnemy() { let result = { run: false, enemy: null, edist: 100000 }; let enemyDistance = 100000; let enemyShip; for (let property in this.ships) { let ship = this.ships[property]; ship.update(); if (!ship.isNpc && ship.isEnemy) { let dist = ship.distanceTo(window.hero.position); if (enemyDistance > dist) { enemyDistance = dist; result.edist = dist; result.enemy = ship; } } } if (enemyDistance < 2000) { result.run = true; return result; } return result; } findGatebyID(gateId) { let finalGate; this.gates.forEach(gate => { if (gate.gateId == gateId) { finalGate = gate; } }); return { gate: finalGate, }; } goToMap(idWorkMap){ if(this.rute == null){ this.fillStarSystem(); let mapSystem = {1:{2:1},2:{1:1,3:1,4:1},3:{2:1,7:1,4:1},4:{2:1,3:1,13:2,13:1},13:{4:1,14:2,15:2,16:2},5:{6:1},6:{5:1,7:1,8:1},7:{6:1,3:1,8:1},8:{6:1,7:1,14:2,11:1},14:{8:1,13:2,15:2,16:2},9:{10:1},10:{9:1,12:1,11:1}, 11:{10:1,8:1,12:1},12:{10:1,11:1,15:2,4:1},15:{12:1,14:2,13:2,16:2},16:{13:2,14:2,15:2,17:1,21:1,25:1},29:{17:1,21:1,25:1},17:{16:2,29:3,19:1,18:1},18:{17:1,20:1},19:{17:1,20:1},20:{18:1,19:1},21:{16:2,29:3,22:1,23:1},22:{21:1,24:1},23:{21:1,24:1},24:{23:1,22:1},25:{29:3,16:2,27:1,26:1},27:{25:1,28:1},26:{25:1,28:1},28:{26:1,27:1}}, graph = new Graph(mapSystem); let imcompleteRute = graph.findShortestPath(window.hero.mapId, idWorkMap); this.rute = this.completeRute(imcompleteRute); }else{ let map = this.rute[0]; let portal = map.portals[0]; if(window.hero.mapId == map.mapId){ this.jumpInGateByID(portal.gateId); } if(window.hero.mapId == portal.idLinkedMap){ this.rute.shift(); } } } fillStarSystem(){ let portals11 = []; portals11.push(new Portal(150000156,2)); this.starSystem.push(new Map(1, portals11)); let portals12 = []; portals12.push(new Portal(150000157,1)); portals12.push(new Portal(150000158,3)); portals12.push(new Portal(150000160,4)); this.starSystem.push(new Map(2, portals12)); let portals13 = []; portals13.push(new Portal(150000159,2)); portals13.push(new Portal(150000182,4)); portals13.push(new Portal(150000162,7)); this.starSystem.push(new Map(3, portals13)); let portals14 = []; portals14.push(new Portal(150000161,2)); portals14.push(new Portal(150000183,3)); portals14.push(new Portal(150000186,13)); portals14.push(new Portal(150000166,12)); this.starSystem.push(new Map(4, portals14)); let portals21 = []; portals21.push(new Portal(150000171,6)); //2-1 | 2-2 this.starSystem.push(new Map(5, portals21)); let portals22 = []; portals22.push(new Portal(150000165,7)); //2-2 | 2-3 portals22.push(new Portal(150000172,8)); //2-2 | 2-4 portals22.push(new Portal(150000170,5)); //2-2 | 2-4 this.starSystem.push(new Map(6, portals22)); let portals23 = []; portals23.push(new Portal(150000163,3)); //2-3 | 1-3 portals23.push(new Portal(150000180,8)); //2-3 | 2-4 portals23.push(new Portal(150000164,6)); //2-3 | 2-2 this.starSystem.push(new Map(7, portals23)); let portals24 = []; portals24.push(new Portal(150000181,7)); //2-4 | 2-3 portals24.push(new Portal(150000188,14)); //2-4 | 4-2 portals24.push(new Portal(150000173,6)); //2-4 | 2-2 portals24.push(new Portal(150000174,11)); //2-4 | 3-3 this.starSystem.push(new Map(7, portals24)); let portals31 = []; portals31.push(new Portal(150000179,10)); //3-1 | 3-2 this.starSystem.push(new Map(9, portals31)); let portals32 = []; portals32.push(new Portal(150000177,11)); //3-2 | 3-3 portals32.push(new Portal(150000169,12)); //3-2 | 3-4 portals32.push(new Portal(150000178,9)); //3-2 | 3-1 this.starSystem.push(new Map(10, portals32)); let portals33 = []; portals33.push(new Portal(150000175,8)); //3-3 | 2-4 portals33.push(new Portal(150000185,12)); //3-3 | 3-4 portals33.push(new Portal(150000176,10)); //3-3 | 3-2 this.starSystem.push(new Map(11, portals33)); let portals34 = []; portals34.push(new Portal(150000167,4)); portals34.push(new Portal(150000190,15)); portals34.push(new Portal(150000184,11)); portals34.push(new Portal(150000168,10)); this.starSystem.push(new Map(12, portals34)); let portals43 = []; portals43.push(new Portal(150000191,12)); //4-3 | 3-4 portals43.push(new Portal(150000195,14)); //4-3 | 4-2 portals43.push(new Portal(150000196,13)); //4-3 | 4-1 portals43.push(new Portal(150000278,16)); //4-3 | 4-4 this.starSystem.push(new Map(15, portals43)); let portals41 = []; portals41.push(new Portal(150000187,4)); //4-1 | 1-4 portals41.push(new Portal(150000192,14)); //4-1 | 4-2 portals41.push(new Portal(150000197,15)); //4-1 | 4-3 portals41.push(new Portal(150000274,16)); //4-1 | 4-4 this.starSystem.push(new Map(13, portals41)); let portals42 = []; portals42.push(new Portal(150000189,8)); //4-2 | 2-4 portals42.push(new Portal(150000193,13)); //4-2 | 4-1 portals42.push(new Portal(150000194,15)); //4-2 | 4-3 portals42.push(new Portal(150000276,16)); //4-2 | 4-4 this.starSystem.push(new Map(14, portals42)); let portals44 = []; portals44.push(new Portal(150000303,25)); //4-4 | 3-5 portals44.push(new Portal(150000279,15)); //4-4 | 4-3 portals44.push(new Portal(150000277,14)); //4-4 | 4-2 portals44.push(new Portal(150000293,21)); //4-4 | 2-5 portals44.push(new Portal(150000283,17)); //4-4 | 1-5 portals44.push(new Portal(150000275,13)); //4-4 | 4-1 this.starSystem.push(new Map(16, portals44)); let portals45 = []; portals45.push(new Portal(150000314,17)); //4-5 | 1-5 portals45.push(new Portal(150000316,21)); //4-5 | 2-5 portals45.push(new Portal(150000318,25)); //4-5 | 3-5 this.starSystem.push(new Map(29, portals45)); let portals15 = []; portals15.push(new Portal(150000284,16)); //1-5 | 4-4 portals15.push(new Portal(150000313,29)); //1-5 | 4-5 portals15.push(new Portal(150000285,18)); //1-5 | 1-6 portals15.push(new Portal(150000287,19)); //1-5 | 1-7 this.starSystem.push(new Map(17, portals15)); let portals16 = []; portals16.push(new Portal(150000286,17)); //1-6 | 1-5 portals16.push(new Portal(150000289,20)); //1-6 | 1-8 this.starSystem.push(new Map(18, portals16)); let portals17 = []; portals17.push(new Portal(150000291,20)); //1-7 | 1-8 portals17.push(new Portal(150000288,17)); //1-7 | 1-5 this.starSystem.push(new Map(19, portals17)); let portals18 = []; portals18.push(new Portal(150000290,18)); //1-8 | 1-6 portals18.push(new Portal(150000292,19)); //1-8 | 1-7 this.starSystem.push(new Map(20, portals18)); let portals25 = []; portals25.push(new Portal(150000294,16)); //2-5 | 4-4 portals25.push(new Portal(150000315,29)); //2-5 | 4-5 portals25.push(new Portal(150000295,22)); //2-5 | 2-6 portals25.push(new Portal(150000297,23)); //2-5 | 2-7 this.starSystem.push(new Map(21, portals25)); let portals26 = []; portals26.push(new Portal(150000296,21)); //2-6 | 2-5 portals26.push(new Portal(150000299,24)); //2-6 | 2-8 this.starSystem.push(new Map(22, portals26)); let portals27 = []; portals27.push(new Portal(150000298,21)); //2-7 | 2-5 portals27.push(new Portal(150000301,24)); //2-7 | 2-8 this.starSystem.push(new Map(23, portals27)); let portals28 = []; portals28.push(new Portal(150000300,22)); //2-8 | 2-6 portals28.push(new Portal(150000302,23)); //2-8 | 2-7 this.starSystem.push(new Map(24, portals28)); let portals35 = []; portals35.push(new Portal(150000304,16)); //3-5 | 4-4 portals35.push(new Portal(150000317,29)); //3-5 | 4-5 portals35.push(new Portal(150000305,26)); //3-5 | 3-6 portals35.push(new Portal(150000307,28)); //3-5 | 3-7 this.starSystem.push(new Map(25, portals35)); let portals36 = []; portals36.push(new Portal(150000306,25)); //3-6 | 3-5 portals36.push(new Portal(150000309,28)); //3-6 | 3-8 this.starSystem.push(new Map(26, portals36)); let portals37 = []; portals37.push(new Portal(150000308,25)); //3-7 | 3-5 portals37.push(new Portal(150000311,28)); //3-7 | 3-8 this.starSystem.push(new Map(27, portals37)); let portals38 = []; portals38.push(new Portal(150000312,27)); //3-8 | 3-7 portals38.push(new Portal(150000310,26)); //3-8 | 3-6 this.starSystem.push(new Map(24, portals38)); } completeRute(imcompleteRute){ let rute = []; for(let i = 0;i < imcompleteRute.length; i++){ let idWorkMap = imcompleteRute[i]; let nextMap = imcompleteRute[i + 1]; for(let e = 0;e < this.starSystem.length;e++){ if(this.starSystem[e].mapId == idWorkMap){ let map = this.starSystem[e]; let portalschosen = this.returnANextPortal(map.portals,nextMap); let arrayPortals = []; arrayPortals.push(portalschosen); rute.push(new Map(map.mapId,arrayPortals)); } } } return rute; } returnANextPortal(portals,idGoMap){ for(let i = 0;i < portals.length; i++){ if(portals[i].idLinkedMap == idGoMap){ return portals[i]; } } } }
"use strict" const punycodeRegex = require("punycode-regex")() module.exports = (string) => punycodeRegex.test(string)
/** * API docs: https://confluence.atlassian.com/bitbucket/user-endpoint-2-0-744527199.html */ module.exports = function UserApi(api) { return { /** * Get the info for the authenticated user */ get: () => api.get('user') }; };
const mongoose = require('mongoose'); const movieSchema = new mongoose.Schema({ movieDirector: { type: String, required: true }, movieTitle: { type: String, required: true }, movieDate: { type: Date, required: true, default: Date.now } }); module.exports = mongoose.model('Movie', movieSchema);
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Animated, StyleSheet, Image } from 'react-native'; import DefaultNotificationBody from './DefaultNotificationBody'; const styles = StyleSheet.create({ notification: { position: 'absolute', width: '100%', }, }); class Notification extends Component { constructor() { super(); this.show = this.show.bind(this); this.showNotification = this.showNotification.bind(this); this.closeNotification = this.closeNotification.bind(this); this.state = { animatedValue: new Animated.Value(0), isOpen: false, }; } show({ title, message, onPress, icon, vibrate } = { title: '', message: '', onPress: null, icon: null, vibrate: true }) { const { closeInterval } = this.props; const { isOpen } = this.state; // Clear any currently showing notification timeouts so the new one doesn't get prematurely // closed clearTimeout(this.currentNotificationInterval); const showNotificationWithStateChanges = () => { this.setState({ isOpen: true, title, message, onPress, icon, vibrate, }, () => this.showNotification(() => { this.currentNotificationInterval = setTimeout(() => { this.setState({ isOpen: false, title: '', message: '', onPress: null, icon: null, vibrate: true, }, this.closeNotification); }, closeInterval); })); }; if (isOpen) { this.setState( { isOpen: false }, () => this.closeNotification(showNotificationWithStateChanges), ); } else { showNotificationWithStateChanges(); } } showNotification(done = () => {}) { this.props.onShowing && this.props.onShowing(); Animated.timing(this.state.animatedValue, { toValue: 1, duration: this.props.openCloseDuration, }).start(() => { done(); this.props.onShown && this.props.onShown(); }); } closeNotification(done) { this.props.onClosing && this.props.onClosing(); Animated.timing(this.state.animatedValue, { toValue: 0, duration: this.props.openCloseDuration, }).start(() => { done && done(); this.props.onClosed && this.props.onClosed(done != null); }); } render() { const { height, topOffset = 0, backgroundColour, iconApp, notificationBodyComponent: NotificationBody, } = this.props; const { animatedValue, title, message, onPress, isOpen, icon, vibrate, } = this.state; return ( <Animated.View style={[ styles.notification, { height, backgroundColor: backgroundColour }, { transform: [{ translateY: animatedValue.interpolate({ inputRange: [0, 1], outputRange: [-height + topOffset, 0], }), }], }, ]} > <NotificationBody title={title} message={message} onPress={onPress} isOpen={isOpen} iconApp={iconApp} icon={icon} vibrate={vibrate} onClose={() => { //clear timeout clearTimeout(this.currentNotificationInterval); this.setState({ isOpen: false }, this.closeNotification); }} /> </Animated.View> ); } } Notification.propTypes = { closeInterval: PropTypes.number, openCloseDuration: PropTypes.number, height: PropTypes.number, backgroundColour: PropTypes.string, notificationBodyComponent: PropTypes.oneOfType([ PropTypes.node, PropTypes.func, ]), iconApp: Image.propTypes.source, onShowing: PropTypes.func, onShown: PropTypes.func, onClosing: PropTypes.func, onClosed: PropTypes.func }; Notification.defaultProps = { closeInterval: 4000, openCloseDuration: 200, height: 80, backgroundColour: 'white', notificationBodyComponent: DefaultNotificationBody, iconApp: null, }; export default Notification;
/*! formstone v0.6.11 [core.js] 2015-06-18 | MIT License | formstone.it */ var Formstone=this.Formstone=function(a,b,c){"use strict";function d(a){l.Plugins[a].initialized||(l.Plugins[a].methods._setup.call(c),l.Plugins[a].initialized=!0)}function e(a,b,c,d){var e,f={raw:{}};d=d||{};for(e in d)d.hasOwnProperty(e)&&("classes"===a?(f.raw[d[e]]=b+"-"+d[e],f[d[e]]="."+b+"-"+d[e]):(f.raw[e]=d[e],f[e]=d[e]+"."+b));for(e in c)c.hasOwnProperty(e)&&("classes"===a?(f.raw[e]=c[e].replace(/{ns}/g,b),f[e]=c[e].replace(/{ns}/g,"."+b)):(f.raw[e]=c[e].replace(/.{ns}/g,""),f[e]=c[e].replace(/{ns}/g,b)));return f}function f(){var a,b={transition:"transitionend",MozTransition:"transitionend",OTransition:"otransitionend",WebkitTransition:"webkitTransitionEnd"},d=["transition","-webkit-transition"],e={transform:"transform",MozTransform:"-moz-transform",OTransform:"-o-transform",msTransform:"-ms-transform",webkitTransform:"-webkit-transform"},f="transitionend",g="",h="",i=c.createElement("div");for(a in b)if(b.hasOwnProperty(a)&&a in i.style){f=b[a],l.support.transition=!0;break}n.transitionEnd=f+".{ns}";for(a in d)if(d.hasOwnProperty(a)&&d[a]in i.style){g=d[a];break}l.transition=g;for(a in e)if(e.hasOwnProperty(a)&&e[a]in i.style){l.support.transform=!0,h=e[a];break}l.transform=h}function g(){l.windowWidth=l.$window.width(),l.windowHeight=l.$window.height(),o=k.startTimer(o,p,h)}function h(){for(var a in l.ResizeHandlers)l.ResizeHandlers.hasOwnProperty(a)&&l.ResizeHandlers[a].callback.call(b,l.windowWidth,l.windowHeight)}function i(a,b){return parseInt(a.priority)-parseInt(b.priority)}var j=function(){this.Version="0.6.11",this.Plugins={},this.ResizeHandlers=[],this.window=b,this.$window=a(b),this.document=c,this.$document=a(c),this.$body=null,this.windowWidth=0,this.windowHeight=0,this.userAgent=b.navigator.userAgent||b.navigator.vendor||b.opera,this.isFirefox=/Firefox/i.test(this.userAgent),this.isChrome=/Chrome/i.test(this.userAgent),this.isSafari=/Safari/i.test(this.userAgent)&&!this.isChrome,this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(this.userAgent),this.isFirefoxMobile=this.isFirefox&&this.isMobile,this.transform=null,this.transition=null,this.support={file:!!(b.File&&b.FileList&&b.FileReader),history:!!(b.history&&b.history.pushState&&b.history.replaceState),matchMedia:!(!b.matchMedia&&!b.msMatchMedia),raf:!(!b.requestAnimationFrame||!b.cancelAnimationFrame),touch:!!("ontouchstart"in b||b.DocumentTouch&&c instanceof b.DocumentTouch),transition:!1,transform:!1}},k={killEvent:function(a,b){try{a.preventDefault(),a.stopPropagation(),b&&a.stopImmediatePropagation()}catch(c){}},startTimer:function(a,b,c,d){return k.clearTimer(a),d?setInterval(c,b):setTimeout(c,b)},clearTimer:function(a,b){a&&(b?clearInterval(a):clearTimeout(a),a=null)},sortAsc:function(a,b){return parseInt(b)-parseInt(a)},sortDesc:function(a,b){return parseInt(b)-parseInt(a)}},l=new j,m={base:"{ns}",element:"{ns}-element"},n={namespace:".{ns}",blur:"blur.{ns}",change:"change.{ns}",click:"click.{ns}",dblClick:"dblclick.{ns}",drag:"drag.{ns}",dragEnd:"dragend.{ns}",dragEnter:"dragenter.{ns}",dragLeave:"dragleave.{ns}",dragOver:"dragover.{ns}",dragStart:"dragstart.{ns}",drop:"drop.{ns}",error:"error.{ns}",focus:"focus.{ns}",focusIn:"focusin.{ns}",focusOut:"focusout.{ns}",input:"input.{ns}",keyDown:"keydown.{ns}",keyPress:"keypress.{ns}",keyUp:"keyup.{ns}",load:"load.{ns}",mouseDown:"mousedown.{ns}",mouseEnter:"mouseenter.{ns}",mouseLeave:"mouseleave.{ns}",mouseMove:"mousemove.{ns}",mouseOut:"mouseout.{ns}",mouseOver:"mouseover.{ns}",mouseUp:"mouseup.{ns}",resize:"resize.{ns}",scroll:"scroll.{ns}",select:"select.{ns}",touchCancel:"touchcancel.{ns}",touchEnd:"touchend.{ns}",touchLeave:"touchleave.{ns}",touchMove:"touchmove.{ns}",touchStart:"touchstart.{ns}"};j.prototype.Plugin=function(c,f){return l.Plugins[c]=function(c,f){function g(b){var e="object"===a.type(b);b=a.extend(!0,{},f.defaults||{},e?b:{});for(var g=this,h=0,i=g.length;i>h;h++){var k=g.eq(h);if(!j(k)){var l="__"+f.guid++,m=f.classes.raw.base+l,n=k.data(c+"-options"),o=a.extend(!0,{$el:k,guid:l,rawGuid:m,dotGuid:"."+m},b,"object"===a.type(n)?n:{});k.addClass(f.classes.raw.element).data(t,o),d(c),f.methods._construct.apply(k,[o].concat(Array.prototype.slice.call(arguments,e?1:0)))}}return g}function h(){f.functions.iterate.apply(this,[f.methods._destruct].concat(Array.prototype.slice.call(arguments,1))),this.removeClass(f.classes.raw.element).removeData(t)}function j(a){return a.data(t)}function o(b){if(this instanceof a){var c=f.methods[b];return"object"!==a.type(b)&&b?c&&0!==b.indexOf("_")?f.functions.iterate.apply(this,[c].concat(Array.prototype.slice.call(arguments,1))):this:g.apply(this,arguments)}}function p(c){var d=f.utilities[c]||f.utilities._initialize||!1;return d?d.apply(b,Array.prototype.slice.call(arguments,"object"===a.type(c)?0:1)):void 0}function q(b){f.defaults=a.extend(!0,f.defaults,b||{})}function r(b){for(var c=this,d=0,e=c.length;e>d;d++){var f=c.eq(d),g=j(f)||{};"undefined"!==a.type(g.$el)&&b.apply(f,[g].concat(Array.prototype.slice.call(arguments,1)))}return c}var s="fs-"+c,t="fs"+c.replace(/(^|\s)([a-z])/g,function(a,b,c){return b+c.toUpperCase()});return f.initialized=!1,f.priority=f.priority||10,f.classes=e("classes",s,m,f.classes),f.events=e("events",c,n,f.events),f.functions=a.extend({getData:j,iterate:r},k,f.functions),f.methods=a.extend(!0,{_setup:a.noop,_construct:a.noop,_destruct:a.noop,_resize:!1,destroy:h},f.methods),f.utilities=a.extend(!0,{_initialize:!1,_delegate:!1,defaults:q},f.utilities),f.widget&&(a.fn[c]=a.fn[t]=o),a[c]=a[t]=f.utilities._delegate||p,f.namespace=c,f.namespaceClean=t,f.guid=0,f.methods._resize&&(l.ResizeHandlers.push({namespace:c,priority:f.priority,callback:f.methods._resize}),l.ResizeHandlers.sort(i)),f}(c,f),l.Plugins[c]};var o=null,p=20;return l.$window.on("resize.fs",g),g(),a(function(){l.$body=a("body");for(var b in l.Plugins)l.Plugins.hasOwnProperty(b)&&d(b)}),n.clickTouchStart=n.click+" "+n.touchStart,f(),l}(jQuery,this,document);
function cambiarLugar() { var name = $('#selCiudad').val(); $('#evento').css('display','block'); if(name == 'CDMX'){ $('#lug').text("Haciendo los Morales"); $('#ulug').attr({"href":"https://www.haciendadelosmorales.com/"}) $('#dir').text("Av Juan Vázquez de Mella 525, Del Bosque, 11510 Miguel Hidalgo, CDMX"); $('#cardEvento').css('background-color','rgb(159, 212, 201)'); $('#map').attr({"src":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3762.4926003201513!2d-99.21140878453375!3d19.434317286883257!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d2021ed8b19fc5%3A0x1b803634341b80a9!2sHacienda+de+Los+Morales!5e0!3m2!1ses!2spe!4v1536339670051"}) }else if (name == 'Mérida') { $('#lug').text("Holiday inn Merida"); $('#dir').text("Av. Colón Núm. 498 x 60 y Paseo de Montejo C.P. 97000 Mérida, Yucatán, México"); $('#cardEvento').css('background-color','rgb(117, 118, 121)'); $('#map').attr({"src":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3725.17589217444!2d-89.62112218451415!3d20.985585286021816!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8f56715a77cdc1d3%3A0x4ab68a6e562c4ba4!2sAv.+Colon+498%2C+Centro%2C+97000+M%C3%A9rida%2C+Yuc.%2C+M%C3%A9xico!5e0!3m2!1ses!2spe!4v1536340255995"}) }else if (name == 'Guadalajara') { $('#lug').text("Holiday inn Guadalajara Select"); $('#dir').text("Av. Niños Héroes 3089 Esq. López Mateos Col. Jardines de los Arcos C.P. 44500 Guadalajara, Jalisco"); $('#cardEvento').css('background-color','rgb(0, 131, 117)'); $('#map').attr({"src":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3733.0843613125576!2d-103.39397358451828!3d20.66614658619594!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8428ae7717e6a48d%3A0x6ac7693d097339e2!2sHoliday+Inn+Guadalajara+Select!5e0!3m2!1ses!2spe!4v1536340433243"}) }else if (name == 'Monterrey') { $('#lug').text("Holiday inn Monterrey Valle"); $('#dir').text("Av. Lázaro Cárdenas no. 2305, Residencial San Agustín, C.P. 66260, San Pedro Garza Garcia, N.L."); $('#cardEvento').css('background-color','rgb(9, 72, 117)'); $('#map').attr({"src":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3596.606069661524!2d-100.34496720176006!3d25.65119664385348!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8662bddec4a395d9%3A0xecdbb983009020c2!2sProsperia!5e0!3m2!1ses!2spe!4v1536340556859"}) }else { $('#lug').text("Holiday inn León"); $('#dir').text("Blvd. Adolfo Lopez Mateso Lote 1308 Col. Los Gavilanes"); $('#cardEvento').css('background-color','rgb(159, 212, 201)'); $('#map').attr({"src":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3721.8501248719163!2d-101.66553028451237!3d21.118540585949784!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x842bbf0070b8b1ed%3A0x7b2a14102eca5d1b!2sBlvd.+Adolfo+L%C3%B3pez+Mateos+1308%2C+La+Martinica%2C+37500+Le%C3%B3n%2C+Gto.%2C+M%C3%A9xico!5e0!3m2!1ses!2spe!4v1536340658098"}) } }
"use strict"; /* https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isnan */ module.exports = function isNaN(value) { return value !== value; };
// Chapter 3: Stacks & Queues // Solution originally on repl.it, please see: https://repl.it/@khd25/ //============================================================================== /* Question 3.5 - Sort Stack: Write a program to sort a stack such that the smallest items are on the top. You can use an additional temporary stack, but you may not copy the elements into any other data structure (such as an array). The stack supports the following operations: push, pop, peek, and isEmpty. R(ephrase): take a stack that contains unsorted values and return them in sorted order, inside a stack structure - don't use any other DS to solve this, expect 1 additional temp stack E(xample): Stack { stack: [3,1,2] } -> should change to Stack { stack: [3,2,1] } // so smallest can .pop() off from the back first A(pproach): - make very normal Stack class, with push, pop, peek, and empty - sortStack function takes a disorderly stack and first makes a tempStack to hold values while sorting - 1 while loop that runs until input stack is emptied (ie all things have been ordered and place in tempStack) - 2 inner while loop that runs until things in tempStack are sorted, popping them back out and into original input stack when they are not in order - need a temp variable to hold the current stack item while sorting in progress, push into tempStack if larger (we want smaller ones to wait until later) -both loops finish, return the completed temp stack with sorted values in it C(ode): */ class Stack { constructor() { this.stack = []; } push(val) { this.stack.push(val); } pop() { if (this.stack.length === 0) return -1; return this.stack.pop(); } peek() { if (this.stack.length === 0) return -1; return this.stack[this.stack.length - 1]; } empty() { return this.stack.length === 0; } } //sort to put smallest on top so smallest comes off first function sortStack(stk) { // make another stack to bounce values between with input stack while sorting let tempStack = new Stack(); // while the input stack isn't empty yet... while (!stk.empty()) { // hold on to the last item you pop off input stack let temp = stk.pop(); // while temp stack isn't empty yet && the last item on it is LESS than temp while (!tempStack.empty() && tempStack.peek() < temp) { // you want that smaller item to wait till later, so put it back on the input stack stk.push(tempStack.pop()); // eventually this loop will break when either the tempStack is empty or when temp value is smaller value } // since we've held on to temp and not put it anywhere yet, now it gets to go onto tempStack tempStack.push(temp); // if it indeed did get pushed onto temp stack, it must be smaller than all items currently in tempStack // this will leave temp stack able to pop items off the end starting from smallest values // because the smallest values were pushed on at the end // the outer while loop will break when we have dealt with every item in input stack, and it becomes empty } // the values are in the order we want in tempStack now, so we return tempStack return tempStack; } // T(est): let test = new Stack(); test.push(2); test.push(6); test.push(5); test.push(1); test.push(4); test.push(3); test.push(7); test.push(3); console.log('TEST: ', test); // expect TEST: Stack { stack: [2,6,5,1,4,3,7,3] } sortStack(test); // expect Stack { stack: [7,6,5,4,3,3,2,1] } // O(ptimize): in progess... // current solution version is O(n^2) time and takes O(n) additional space
import React, { useContext, createContext } from 'react'; const HooksContext = createContext(); const defaultHooks = { // Intentionally empty for now }; export const useHooks = () => useContext(HooksContext); export const HooksProvider = ({ hooks, children }) => { return ( <HooksContext.Provider value={{ ...defaultHooks, ...hooks }}>{children}</HooksContext.Provider> ); };
import React from 'react'; class Nutrition extends React.Component { constructor(props) { super(props); this.state = { }; } componentDidMount() { } componentWillUnmount() { } render() { return ( <p className="App-comic"> </p> ); } } export default Nutrition;
var m = require('mithril'); module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#050708" fill-opacity="1" stroke-width="0.2" stroke-linejoin="round" d="M 9,7L 9,17L 11,17L 11,13L 13,13C 14.1046,13 15,12.1046 15,11L 15,9C 15,7.8954 14.1046,7 13,7L 9,7 Z M 11,9L 13,9L 13,11L 11,11L 11,9 Z M 12,2C 17.5228,2 22,6.47716 22,12C 22,17.5229 17.5228,22 12,22C 6.47715,22 2,17.5229 2,12C 2,6.47716 6.47715,2 12,2 Z "/></svg>');
/** * Imports */ require('babel-register') const test = require('tape') const markedx = require('..') const hyperx = require('hyperx') var marked = require('marked') var sample = require('./sample') var element = require('vdux/element').default const hx = hyperx(element) /** * Tests */ test('should convert plain markdown', (t) => { t.equal(markedx('## Hello World'), '<div><h2 id="hello-world">Hello World</h2></div>') t.end() }) test('shouldnt break markdown with standard html tags', (t) => { t.equal(markedx( `## Hello World I am the foo man. <a href="foo"/> <h2>Goodbye World</h2>` ), `<div><h2 id="hello-world">Hello World</h2><p>I am the foo man.</p><a href="foo"></a><h2>Goodbye World</h2></div>`) t.end() }) test('should work with inline component', (t) => { markedx.component('header', function ({props, children}) { return hx`<div>i</div>` }) t.equal( markedx( `<header>Hello</header> ### hello` ), `<div><div>i</div><h3 id="hello">hello</h3></div>`) t.end() }) test('should work for multiline markdown', (t) => { t.equal(markedx( '```\nstuff\nmore stuff```' ), '<div><pre><code>stuff\nmore stuff\n</code></pre></div>') t.equal(markedx( '1. stuff\n2. more stuff' ), '<div><ol><li>stuff</li><li>more stuff</li></ol></div>') t.end() }) test('should work for code boxes', (t) => { markedx.component('codebox', function ({props, children}) { return hx`<div innerHTML=${marked('```js\n' + children[0].props.nodeValue + '```')}></div>` }) console.log(markedx('<codebox>{`function () {\n\tvar a = 5\n}`}</codebox>')) t.end() }) // console.log(markedx('```\n stuff \n```')) test.only('it should work for indented checkboxes', (t) => { console.log(markedx(` ###### teacher materials - [ ] one aasdf asdfasdf asfd asdfasf asfdasfdsadfasdf asdfasfds adfasdf asfasfdas fasdfs fasdfsdf asdfsfd sdfasdf asfd asfsa fasfd s - [ ] two ###### separate materials - [ ] one - [ ] two ###### normal list - one - two`)) t.end() }) test('should add props to marked', (t) => { console.log(markedx(`<Marked style={{flex: true}}>on</Marked>`)) t.end() }) test('should gather links', (t) => { console.log(markedx(sample)) t.end() }) function icon () { console.log('iconining') }
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. // import Vue from 'vue' import VueRouter from 'vue-router' import App from './App.vue' import qs from 'qs' import axios from 'axios' import VueCookies from 'vue-cookies' axios.interceptors.request.use((config) => { if (config.method === 'post') { config.data = qs.stringify(config.data); } return config; }, (error) => { return Promise.reject(error); }); import { routes } from './routes' axios.defaults.withCredentials = true//让ajax携带cookie axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'; Vue.prototype.$axios = axios Vue.use(VueCookies) Vue.use(VueRouter) // Vue.prototype.$echarts = echarts const router = new VueRouter({ routes, mode: "hash", linkActiveClass: "bg" }) new Vue({ el: '#app', router, render: h => h(App) }) Vue.prototype.openLoading = function () { const loading = this.$loading({ // 声明一个loading对象 lock: true, // 是否锁屏 text: '加载中', // 加载动画的文字 spinner: 'el-icon-loading', // 引入的loading图标 background: 'rgba(0, 0, 0, 0.3)', // 背景颜色 target: '.sub-main', // 需要遮罩的区域 body: true, customClass: 'mask' // 遮罩层新增类名 }) // setTimeout(function () { // 设定定时器,超时5S后自动关闭遮罩层,避免请求失败时,遮罩层一直存在的问题 // loading.close(); // 关闭遮罩层 // }, 10000) return loading; }
/* Persian (Farsi) keyboard layouts * translate by Majid Ramezani -> majid.r830@gmail.com * --------------------------------------------------------------------------------------------------------- * To use: * Point to this js file into your page header: <script src="layouts/persian.js" type="text/javascript"></script> * Initialize the keyboard using: $('input').keyboard({ layout: 'Persian' }); * in select add - > "Persian (Farsi), persian, Persian", * * based on http://unicode-table.com/en/# */ jQuery.keyboard.layouts['Persian'] = { 'name': 'Persian (Farsi)', 'lang': ['fa'], 'default': [ '~ \u06f1 \u06f2 \u06f3 \u06f4 \u06f5 \u06f6 \u06f7 \u06f8 \u06f9 \u06f0 - = {bksp}', '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u0686 \u067e', '{lock} \u0634 \u0633 \u06cc \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u06af {enter}', '{shift} \u0638 \u0637 \u0632 \u0698 \u0631 \u0630 \u062f \u0678 \u0648 . \u061f {shift}', '{accept} {alt} {space} {alt} {cancel}' ], 'shift': [ '\u00a9 \u0021 \u0040 \u0023 \u0024 \u0025 \u005e \u0026 \u002a \u0028 \u0029 \u005f \u002b {bksp}', '{tab} \u064b \u064c \u064d \u00ae \u060c \u061b \u002c \u005d \u005b \u007d \u007b \u00d7 \u00b1', '{lock} \u064e \u064f \u0650 \u0651 \u06c0 \u0622 \u0640 \u00ab \u00bb : " {enter}', '{shift} \u0629 \u064a \u00b0 \u0624 \u0625 \u0623 \u0621 \u003c \u003e \u00a6 \u00f7 {shift}', '{accept} {alt} {space} {alt} {cancel}' ], 'alt': [ '` 1 2 3 4 5 6 7 8 9 0 - = {bksp}', '{tab} q w e r t y u i o p [ ] \\', '{lock} a s d f g h j k l ; \' {enter}', '{shift} z x c v b n m , . / {shift}', '{accept} {alt} {space} {alt} {cancel}' ], 'alt-shift': [ '~ ! @ # $ % ^ & * ( ) _ + {bksp}', '{tab} Q W E R T Y U I O P { } |', '{lock} A S D F G H J K L : " {enter}', '{shift} Z X C V B N M < > ? {shift}', '{accept} {alt} {space} {alt} {cancel}' ] }; jQuery.keyboard.language.fa = { display: { 'a': '\u2714:\u062a\u0623\u06cc\u06cc\u062f (Shift-Enter)', 'accept': '\u062a\u0623\u06cc\u06cc\u062f:\u062a\u0623\u06cc\u06cc\u062f (Shift-Enter)', 'alt': 'Lng:Alternate Graphemes', 'b': '\u2190:\u2b05 Backspace', 'bksp': '\u2b05 Bksp:\u2b05 Backspace', 'c': '\u2716:\u0627\u0646\u0635\u0631\u0627\u0641 (Esc)', 'cancel': '\u0627\u0646\u0635\u0631\u0627\u0641:\u0627\u0646\u0635\u0631\u0627\u0641 (Esc)', 'clear': 'C:Clear', 'combo': '\u00f6:Toggle Combo Keys', 'dec': '.:Decimal', 'e': '\u21b5:Enter', 'enter': 'Enter:Enter', 'lock': '\u21ea Lock:Caps Lock', 's': '\u21e7:Shift', 'shift': 'Shift:Shift', 'sign': '\u00b1:Change Sign', 'space': '&nbsp;:Space', 't': '\u21e5:Tab', 'tab': '\u21e5 Tab:Tab' }, // Message added to the key title while hovering, if the mousewheel plugin exists wheelMessage: 'Use mousewheel to see other keys', rtl: true // uncomment, then include changes to the comboRegex here //, comboRegex: /([`\'~\^\"ao])([a-z])/mig, // uncomment, then include any changes to the combos option here /* , combos : { // grave '`' : { a:"\u00e0", A:"\u00c0", e:"\u00e8", E:"\u00c8", i:"\u00ec", I:"\u00cc", o:"\u00f2", O:"\u00d2", u:"\u00f9", U:"\u00d9", y:"\u1ef3", Y:"\u1ef2" }, // acute & cedilla "'" : { a:"\u00e1", A:"\u00c1", e:"\u00e9", E:"\u00c9", i:"\u00ed", I:"\u00cd", o:"\u00f3", O:"\u00d3", u:"\u00fa", U:"\u00da", y:"\u00fd", Y:"\u00dd" }, // umlaut/trema '"' : { a:"\u00e4", A:"\u00c4", e:"\u00eb", E:"\u00cb", i:"\u00ef", I:"\u00cf", o:"\u00f6", O:"\u00d6", u:"\u00fc", U:"\u00dc", y:"\u00ff", Y:"\u0178" }, // circumflex '^' : { a:"\u00e2", A:"\u00c2", e:"\u00ea", E:"\u00ca", i:"\u00ee", I:"\u00ce", o:"\u00f4", O:"\u00d4", u:"\u00fb", U:"\u00db", y:"\u0177", Y:"\u0176" }, // tilde '~' : { a:"\u00e3", A:"\u00c3", e:"\u1ebd", E:"\u1ebc", i:"\u0129", I:"\u0128", o:"\u00f5", O:"\u00d5", u:"\u0169", U:"\u0168", y:"\u1ef9", Y:"\u1ef8", n:"\u00f1", N:"\u00d1" } } */ };
/* eslint-disable */ const workerFarm = require('worker-farm'); const locales = require('box-locales'); const numCPUs = require('os').cpus().length; const execSync = require('child_process').execSync; const path = require('path'); const filename = path.basename(__filename); const bundleCount = locales.length * 2; // One with react, and one without let counter = 0; const workers = workerFarm( { maxConcurrentWorkers: numCPUs - 2, maxRetries: 0 }, require.resolve('./build_locale.js') ); [true, false].forEach((react) => { locales.forEach((locale) => { workers(locale, react, (error) => { if (++counter === bundleCount || error) { // terminate after all locales have been processed workerFarm.end(workers); } if (error) { // kill the node process that spawns the workers as well as all processes been spawned execSync(`ps ax | grep "${filename}" | cut -b1-06 | xargs -t kill`); } }); }); });
const T = require("./Twit.js"); const my_user_name = require("../config").userName; const timeout = 1000 * 60 * 5; // timeout to send the message 5 min const AutoDM = () => { const stream = T.stream("user"); console.log("Start Sending Auto Direct Message 🚀🚀🚀"); stream.on("follow", SendMessage); }; const SendMessage = user => { const { screen_name, name } = user.source; const obj = { screen_name, text: GenerateMessage(name) }; // the follow stream track if I follow author person too. if (screen_name != my_user_name) { console.log(" 🎉🎉🎉🎉 New Follower 🎉🎉🎉🎉🎉 "); setTimeout(() => { T.post("direct_messages/new", obj) .catch(err => { console.error("error", err.stack); }) .then(result => { console.log(`Message sent successfully To ${screen_name} 💪💪`); }); }, timeout); } }; const GenerateMessage = name => { const days = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]; const d = new Date(); const dayName = days[d.getDay()]; return `Hi ${name}, thanks for following... \n Happy ${dayName} 😊😊 `; // your message // My message return `Hi ${name} Thanks for being a part of my social media network. I'am the @PicsrushE founder,A new Online Image Editor completely with web technologies,I'm also a reactjs developer and medium blogger.\n Happy to discuss anytime 😊 \n Happy ${dayName} 😊😊 `; }; module.exports = AutoDM;
import React, { Component } from 'react' import PropTypes from 'prop-types' import isRequiredIf from 'react-proptype-conditional-require' import ExecutionEnvironment from 'exenv' import twitterWidgetJs from './twitter-widget-url' export default class TwitterTimelineEmbed extends Component { static propTypes = { /** * This can be either of profile, likes, list, collection, URL, widget */ sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired, /** * username of twitter handle as String */ screenName: isRequiredIf(PropTypes.string, props => !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes')), /** * UserId of twitter handle as number */ userId: isRequiredIf(PropTypes.number, props => !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes')), /** * To show list, used along with slug */ ownerScreenName: isRequiredIf(PropTypes.string, props => props.sourceType === 'list' && !props.hasOwnProperty('id')), /** * To show list, used along with ownerScreenName */ slug: isRequiredIf(PropTypes.string, props => props.sourceType === 'list' && !props.hasOwnProperty('id')), /** * To show list, unique list id * Also used with collections, in that case its valid collection id */ id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), props => (props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug')) || props.sourceType === 'collection'), /** * To show twitter content with url. * Supported content includes profiles, likes, lists, and collections. */ url: isRequiredIf(PropTypes.string, props => props.sourceType === 'url'), /** * To show custom widget */ widgetId: isRequiredIf(PropTypes.string, props => props.sourceType === 'widget'), /** * Additional options to pass to twitter widget plugin */ options: PropTypes.object, /** * Automatically fit into parent container height */ autoHeight: PropTypes.bool, /** * With dark or light theme */ theme: PropTypes.oneOf(['dark', 'light']), /** * With custom link colors. Note: Only Hex colors are supported. */ linkColor: PropTypes.string, /** * With custom border colors. Note: Only Hex colors are supported. */ borderColor: PropTypes.string, /** * Hide the header from timeline */ noHeader: PropTypes.bool, /** * Hide the footer from timeline */ noFooter: PropTypes.bool, /** * Hide the border from timeline */ noBorders: PropTypes.bool, /** * Hide the scrollbars */ noScrollbar: PropTypes.bool, /** * Enable Transparancy */ transparent: PropTypes.bool, /** * Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html */ lang: PropTypes.string, /** * Placeholder while tweet is loading */ placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), /** * Function to execute after load, return html element */ onLoad: PropTypes.func }; constructor(props) { super(props) this.state = { isLoading: true } } buildChromeOptions(options) { options.chrome = '' if (this.props.noHeader) { options.chrome = options.chrome + ' noheader' } if (this.props.noFooter) { options.chrome = options.chrome + ' nofooter' } if (this.props.noBorders) { options.chrome = options.chrome + ' noborders' } if (this.props.noScrollbar) { options.chrome = options.chrome + ' noscrollbar' } if (this.props.transparent) { options.chrome = options.chrome + ' transparent' } return options } buildOptions() { let options = Object.assign({}, this.props.options) if (this.props.autoHeight) { options.height = this.refs.embedContainer.parentNode.offsetHeight } options = Object.assign({}, options, { theme: this.props.theme, linkColor: this.props.linkColor, borderColor: this.props.borderColor, lang: this.props.lang }) return options } renderWidget(options) { const { onLoad } = this.props if (!this.isMountCanceled) { window.twttr.widgets.createTimeline( { sourceType: this.props.sourceType, screenName: this.props.screenName, userId: this.props.userId, ownerScreenName: this.props.ownerScreenName, slug: this.props.slug, id: this.props.id || this.props.widgetId, url: this.props.url }, this.refs.embedContainer, options ).then((element) => { this.setState({ isLoading: false }) if (onLoad) { onLoad(element) } }) } } componentDidMount() { if (ExecutionEnvironment.canUseDOM) { let script = require('scriptjs') script(twitterWidgetJs, 'twitter-embed', () => { if (!window.twttr) { console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.') return } let options = this.buildOptions() /** Append chrome options */ options = this.buildChromeOptions(options) this.renderWidget(options) }) } } componentWillUnmount() { this.isMountCanceled = true } render() { const { isLoading } = this.state const { placeholder } = this.props return ( <React.Fragment> {isLoading && placeholder} <div ref='embedContainer' /> </React.Fragment> ) } }
var mediaQueries = {}; export function mediaQuery({ query = '', full = false, onChange = () => {}, } = {}) { var result = { query, full, queryMatches: false, _mq: null, } if (!query) { return result } function listener(mq) { result.queryMatches = mq.matches onChange(result.queryMatches) } function removeListener() { result._mq.removeListener(listener) } result.query = !full && query[query.length-1] !== ')' ? '(' + query + ')' : query if (!mediaQueries[result.query]) { mediaQueries[result.query] = window.matchMedia(result.query) } result._mq = mediaQueries[result.query] result.queryMatches = result._mq.matches result.removeListener = removeListener result._mq.addListener(listener) return result } export function mediaQueryMapper({ queries = [], valueKey = 'value', defaultValue = '', onChange = () => {}, } = {}) { const mQs = queries.map(query => mediaQuery({ query: query.query, full: query.full, onChange: onMqChange, })) function getValue() { let value = defaultValue mQs.forEach((mQ, i) => { if (mQ.queryMatches) { value = queries[i][valueKey] } }) return value } function onMqChange (mq) { onChange(getValue()) } function removeListeners() { mQs.forEach((mq, i) => { mq.removeListener() }) } return { getValue, removeListeners } }
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _default = (0, _createSvgIcon.default)(_react.default.createElement("path", { d: "M10.59 9.17L6.12 4.7a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41l4.46 4.46 1.42-1.4zm4.76-4.32l1.19 1.19L4.7 17.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L17.96 7.46l1.19 1.19c.31.31.85.09.85-.36V4.5c0-.28-.22-.5-.5-.5h-3.79c-.45 0-.67.54-.36.85zm-.52 8.56l-1.41 1.41 3.13 3.13-1.2 1.2c-.31.31-.09.85.36.85h3.79c.28 0 .5-.22.5-.5v-3.79c0-.45-.54-.67-.85-.35l-1.19 1.19-3.13-3.14z" }), 'ShuffleRounded'); exports.default = _default;
/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * monaco-languages version: 2.10.0(7e1d706f5f42c54781fe0747c3d41871112d186a) * Released under the MIT license * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md *-----------------------------------------------------------------------------*/ /*!--------------------------------------------------------------------------------------------- * Copyright (C) David Owens II, owensd.io. All rights reserved. *--------------------------------------------------------------------------------------------*/ define("vs/basic-languages/swift/swift",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},t.language={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","fileprivate","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","fileprivate","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}));
import React, {Component} from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import AuthContext from '../../../context/auth-context' const StyledDiv = styled.div` width: 40%; max-height: 40px; margin: 16px auto; border: 1px solid #eee; box-shadow: 0 2px 3px #ccc; padding: 60px; text-align: center; @media (min-width: 500px): { width: 200px; } `; // stateless class Person extends Component { static contextType = AuthContext; componentDidMount() { console.log('[Person.js] componentDidMount'); this.inputElement.focus(); } componentDidUpdate(prevProps, prevState, snapshot) { if(this.context.authenticated) { this.inputElement.focus(); } } render () { console.log('[Person.js] rendering...'); return ( <StyledDiv> <p> {this.context.authenticated ? "Authenticated" : "Please Authenticate"} </p> <p onClick={this.props.deletePersonHandler}> I am {this.props.name} and {this.props.age} years old. </p> <p> {this.props.children} </p> <input key={this.props.id} ref={(inputElement) => { this.inputElement = inputElement }} type="text" value={this.props.name} onChange={this.props.changeStateHandler} /> </StyledDiv> ); } } Person.propTypes = { id: PropTypes.string, click: PropTypes.func, name: PropTypes.string, age: PropTypes.number, changed: PropTypes.func }; export default Person;
import React from "react"; import classnames from "classnames"; import withStyles from "@material-ui/core/styles/withStyles"; import FormControl from "@material-ui/core/FormControl"; import TextField from "@material-ui/core/TextField"; import Typography from "@material-ui/core/Typography"; import {COLOR} from "../constants/theme"; const styles = { formControl: { textAlign: 'left', margin: '10px 0' }, input: { '& .MuiOutlinedInput-root': { height: 50, borderRadius: 15, fontSize: 14, fontWeight: 500, color: COLOR.DARK, '& fieldset': { border: 'none', borderRadius: 15, }, '& .MuiSelect-outlined.MuiSelect-outlined': { height: '100%', paddingTop: 0, paddingBottom: 0, display: 'flex', alignItems: 'center', borderRadius: 15, } }, '& .MuiOutlinedInput-marginDense': { height: 50, fontSize: 14 }, }, light: { '& .MuiOutlinedInput-root': { background: COLOR.LIGHT_GREY } }, white: { '& .MuiOutlinedInput-root': { background: COLOR.WHITE }, '& .MuiSelect-select:focus': { background: COLOR.WHITE } } } class CustomSelectField extends React.Component { render() { const { classes, input, children, label, helperText, placeholder, color, onChange, ...props } = this.props return ( <FormControl fullWidth className={classes.formControl} { ...props }> { label && ( <Typography variant="caption">{ label }</Typography> )} <TextField variant="outlined" placeholder={placeholder} classes={{ root: classnames( classes.input, color ? classes[color] : classes.light ) }} select onChange={onChange} { ...input } { ...props } helperText={helperText} onKeyDown={onChange} > { children } </TextField> </FormControl> ); } } export default withStyles(styles)(CustomSelectField)
const inquirer = require("inquirer"); const Engineer = require("./lib/Engineer"); const Intern = require("./lib/Intern"); const Manager = require("./lib/Manager"); const fs = require("fs"); const managerPrompts = [ { type: 'input', name: 'name', message: "Enter Manager's Name:", }, { type: 'input', name: 'id', message: "Enter Manager's ID Number:", }, { type: 'input', name: 'email', message: "Enter Manager's Email Address:", }, { type: "input", name: "officeNumber", message: "Enter Manager's current office number:", } ] const employeePrompts = [ { type: 'list', name: 'title', message: "What is the title of your next employee?", choices: ['Engineer', 'Intern'], }, { type: 'input', name: 'name', message: "Enter Employee's Name:", }, { type: 'input', name: 'id', message: "Enter Employee's ID Number:", }, { type: 'input', name: 'email', message: "Enter Employees's email address:", }, { type: 'input', name: 'github', message: "Enter Employee's GitHub username:", when: (answers) => answers.title === 'Engineer' }, { type: 'input', name: 'school', message: "Enter Employee's School:", when: (answers) => answers.title === 'Intern' }, ]; const askPrompts = () => { inquirer.prompt(managerPrompts).then((answers) => { const manager = new Manager(answers.name, answers.id, answers.email, answers.officeNumber) generateManager(manager); addEmployeeOrGenerate(); }) } const addEmployeePrompts= () => { inquirer.prompt(employeePrompts).then((answers) => { if (answers.title === 'Engineer') { const engineer = new Engineer(answers.name, answers.id, answers.email, answers.github) generateEngineer(engineer); } else { const intern = new Intern(answers.name, answers.id, answers.email, answers.school) generateIntern(intern) } addEmployeeOrGenerate(); }) } const generateManager = (manager) => { const renderM = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Team Profile</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> </head> <body> <div class="jumbotron jumbotron-fluid p-3 mb-2 bg-secondary text-white"> <div class="container"> <h1 class="display-1 text-center">Team Profile</h1> </div> </div> <div class=container> <div class="row"> <div class =col> <div class="card" style="width: 15rem;"> <div class="card-header p-3 mb-2 bg-danger text-white"> <h4 class="text-center">Manager</h4> </div> <div class="card-body"> <h5 class="card-title">${manager.getName()}</h5> <ul> <li>ID: ${manager.getId()}</li> <li><a href="mailto:${manager.getEmail()}" class="card-link">Email Address: ${manager.getEmail()}</a></li> <li>Office Number: ${manager.getOfficeNumber()}</li> </ul> </div> </div> </div>`; fs.writeFile('./dist/team.html', renderM, (err) => err ? console.log(err) : '') }; const generateEngineer = (engineer) => { const renderE = ` <div class="col"> <div class="card" style="width: 15rem;"> <div class="card-header p-3 mb-2 bg-success text-white"> <h4>Engineer</h4> </div> <div class="card-body"> <h5 class="card-title">${engineer.getName()}</h5> <ul> <li>ID: ${engineer.getId()}</li> <li><a href="mailto:${engineer.getEmail()}" class="card-link">Email Address: ${engineer.getEmail()}</a></li> <li><a href="https://github.com/${engineer.getGithub()}" target="_blank" class="card-link">GitHub: ${engineer.getGithub()}</a></li> </ul> </div> </div> </div>` fs.appendFile('./dist/team.html', renderE, (err) => err ? console.log(err) : '') }; const generateIntern = (intern) => { const renderI = ` <div class="col"> <div class="card" style="width: 15rem;"> <div class="card-header p-3 mb-2 bg-info text-white"> <h4>Intern</h4> </div> <div class="card-body"> <h5 class="card-title">${intern.getName()}</h5> <ul> <li>ID: ${intern.getId()}</li> <li>${intern.getSchool()}</li> <li><a href="mailto:${intern.getEmail()}" class="card-link">${intern.getEmail()}</a></li> </ul> </div> </div> </div>` fs.appendFile('./dist/team.html', renderI, (err) => err ? console.log(err) : '') }; const addEmployeeOrGenerate = () => { inquirer.prompt([{ type: "list", name: "newEmployee", message: "Would you like to add any more employees to your team?", choices: ["Yes, I have more team members to add.", "No, my team is complete."], }]).then((answer) => { if (answer.newEmployee === 'Yes, I have more team members to add.') { addEmployeePrompts(); } else { console.log('Your Team Profile is ready!!'); const endHTML = ` </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script> </body> </html>` fs.appendFile('./dist/team.html', endHTML, (err) => err ? console.log(err) : '') } }); }; askPrompts();
(function(d){d['et']=Object.assign(d['et']||{},{a:"Rasvane",b:"Kaldkiri",c:"Vali pealkiri",d:"Pealkiri",e:"Nummerdatud loetelu",f:"Punktidega loetelu",g:"Link",h:"Lõik",i:"Pealkiri 1",j:"Pealkiri 2",k:"Pealkiri 3",l:"Pealkiri 4",m:"Pealkiri 5",n:"Pealkiri 6",o:"Avatav tööriistariba",p:"Ava uuel kaardil",q:"Allalaaditav",r:"Redaktori tööriistariba",s:"Näita veel",t:"Tekstiredaktor, %0",u:"Salvesta",v:"Loobu",w:"Lingi URL",x:"Eemalda link",y:"Muuda linki",z:"Ava link uuel vahekaardil",aa:"Sellel lingil puudub URL",ab:"%0 / %1",ac:"Eelmine",ad:"Järgmine",ae:"Võta tagasi",af:"Tee uuesti"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
var searchData= [ ['cmu_5fopen_16',['cmu_open',['../cmu_8c.html#a0bf9288af36bde6e21cc7c79382fff11',1,'cmu.c']]] ];
import React from 'react'; import { shallow } from 'enzyme'; describe('(Component) GameLeaderBoard', function() { it('should exist', function() { }); });
const menuToggle = document.querySelector(".menu-toggle input"); const nav = document.querySelector("nav ul"); menuToggle.addEventListener("click", function () { nav.classList.toggle("slide"); });
/*! jQuery UI - v1.12.1 - 2017-03-20 * http://jqueryui.com * Includes: keycode.js, widgets/datepicker.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory ); } else { // Browser globals factory( jQuery ); } }(function( $ ) { $.ui = $.ui || {}; var version = $.ui.version = "1.12.1"; /*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: Keycode //>>group: Core //>>description: Provide keycodes as keynames //>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/ var keycode = $.ui.keyCode = { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 }; // jscs:disable maximumLineLength /* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */ /*! * jQuery UI Datepicker 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: Datepicker //>>group: Widgets //>>description: Displays a calendar from an input or inline for selecting dates. //>>docs: http://api.jqueryui.com/datepicker/ //>>demos: http://jqueryui.com/datepicker/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/datepicker.css //>>css.theme: ../../themes/base/theme.css $.extend( $.ui, { datepicker: { version: "1.12.1" } } ); var datepicker_instActive; function datepicker_getZindex( elem ) { var position, value; while ( elem.length && elem[ 0 ] !== document ) { // Ignore z-index if position is set to a value where z-index is ignored by the browser // This makes behavior of this function consistent across browsers // WebKit always returns auto if the element is positioned position = elem.css( "position" ); if ( position === "absolute" || position === "relative" || position === "fixed" ) { // IE returns 0 when zIndex is not specified // other browsers return a string // we ignore the case of nested elements with an explicit value of 0 // <div style="z-index: -10;"><div style="z-index: 0;"></div></div> value = parseInt( elem.css( "zIndex" ), 10 ); if ( !isNaN( value ) && value !== 0 ) { return value; } } elem = elem.parent(); } return 0; } /* Date picker manager. Use the singleton instance of this class, $.datepicker, to interact with the date picker. Settings for (groups of) date pickers are maintained in an instance object, allowing multiple different settings on the same page. */ function Datepicker() { this._curInst = null; // The current instance in use this._keyEvent = false; // If the last event was a key event this._disabledInputs = []; // List of date picker inputs that have been disabled this._datepickerShowing = false; // True if the popup picker is showing , false if not this._inDialog = false; // True if showing within a "dialog", false if not this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class this._appendClass = "ui-datepicker-append"; // The name of the append marker class this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class this.regional = []; // Available regional settings, indexed by language code this.regional[ "" ] = { // Default regional settings closeText: "Done", // Display text for close link prevText: "Prev", // Display text for previous month link nextText: "Next", // Display text for next month link currentText: "Today", // Display text for current month link monthNames: [ "January","February","March","April","May","June", "July","August","September","October","November","December" ], // Names of months for drop-down and formatting monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday weekHeader: "Wk", // Column header for week of the year dateFormat: "mm/dd/yy", // See format options on parseDate firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... isRTL: false, // True if right-to-left language, false if left-to-right showMonthAfterYear: false, // True if the year select precedes month, false for month then year yearSuffix: "" // Additional text to append to the year in the month headers }; this._defaults = { // Global defaults for all the date picker instances showOn: "focus", // "focus" for popup on focus, // "button" for trigger button, or "both" for either showAnim: "fadeIn", // Name of jQuery animation for popup showOptions: {}, // Options for enhanced animations defaultDate: null, // Used when field is blank: actual date, // +/-number for offset from today, null for today appendText: "", // Display text following the input box, e.g. showing the format buttonText: "...", // Text for trigger button buttonImage: "", // URL for trigger button image buttonImageOnly: false, // True if the image appears alone, false if it appears on a button hideIfNoPrevNext: false, // True to hide next/previous month links // if not applicable, false to just disable them navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links gotoCurrent: false, // True if today link goes back to current selection instead changeMonth: false, // True if month can be selected directly, false if only prev/next changeYear: false, // True if year can be selected directly, false if only prev/next yearRange: "c-10:c+10", // Range of years to display in drop-down, // either relative to today's year (-nn:+nn), relative to currently displayed year // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n) showOtherMonths: false, // True to show dates in other months, false to leave blank selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable showWeek: false, // True to show week of the year, false to not show it calculateWeek: this.iso8601Week, // How to calculate the week of the year, // takes a Date and returns the number of the week for it shortYearCutoff: "+10", // Short year values < this are in the current century, // > this are in the previous century, // string value starting with "+" for current year + value minDate: null, // The earliest selectable date, or null for no limit maxDate: null, // The latest selectable date, or null for no limit duration: "fast", // Duration of display/closure beforeShowDay: null, // Function that takes a date and returns an array with // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "", // [2] = cell title (optional), e.g. $.datepicker.noWeekends beforeShow: null, // Function that takes an input field and // returns a set of custom settings for the date picker onSelect: null, // Define a callback function when a date is selected onChangeMonthYear: null, // Define a callback function when the month or year is changed onClose: null, // Define a callback function when the datepicker is closed numberOfMonths: 1, // Number of months to show at a time showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) stepMonths: 1, // Number of months to step back/forward stepBigMonths: 12, // Number of months to step back/forward for the big links altField: "", // Selector for an alternate field to store selected dates into altFormat: "", // The date format to use for the alternate field constrainInput: true, // The input is constrained by the current date format showButtonPanel: false, // True to show button panel, false to not show it autoSize: false, // True to size the input for the date format, false to leave as is disabled: false // The initial disabled state }; $.extend( this._defaults, this.regional[ "" ] ); this.regional.en = $.extend( true, {}, this.regional[ "" ] ); this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en ); this.dpDiv = datepicker_bindHover( $( "<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ); } $.extend( Datepicker.prototype, { /* Class name added to elements to indicate already configured with a date picker. */ markerClassName: "hasDatepicker", //Keep track of the maximum number of rows displayed (see #7043) maxRows: 4, // TODO rename to "widget" when switching to widget factory _widgetDatepicker: function() { return this.dpDiv; }, /* Override the default settings for all instances of the date picker. * @param settings object - the new settings to use as defaults (anonymous object) * @return the manager object */ setDefaults: function( settings ) { datepicker_extendRemove( this._defaults, settings || {} ); return this; }, /* Attach the date picker to a jQuery selection. * @param target element - the target input field or division or span * @param settings object - the new settings to use for this date picker instance (anonymous) */ _attachDatepicker: function( target, settings ) { var nodeName, inline, inst; nodeName = target.nodeName.toLowerCase(); inline = ( nodeName === "div" || nodeName === "span" ); if ( !target.id ) { this.uuid += 1; target.id = "dp" + this.uuid; } inst = this._newInst( $( target ), inline ); inst.settings = $.extend( {}, settings || {} ); if ( nodeName === "input" ) { this._connectDatepicker( target, inst ); } else if ( inline ) { this._inlineDatepicker( target, inst ); } }, /* Create a new instance object. */ _newInst: function( target, inline ) { var id = target[ 0 ].id.replace( /([^A-Za-z0-9_\-])/g, "\\\\$1" ); // escape jQuery meta chars return { id: id, input: target, // associated target selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection drawMonth: 0, drawYear: 0, // month being drawn inline: inline, // is datepicker inline or not dpDiv: ( !inline ? this.dpDiv : // presentation div datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) }; }, /* Attach the date picker to an input field. */ _connectDatepicker: function( target, inst ) { var input = $( target ); inst.append = $( [] ); inst.trigger = $( [] ); if ( input.hasClass( this.markerClassName ) ) { return; } this._attachments( input, inst ); input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ). on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp ); this._autoSize( inst ); $.data( target, "datepicker", inst ); //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665) if ( inst.settings.disabled ) { this._disableDatepicker( target ); } }, /* Make attachments based on settings. */ _attachments: function( input, inst ) { var showOn, buttonText, buttonImage, appendText = this._get( inst, "appendText" ), isRTL = this._get( inst, "isRTL" ); if ( inst.append ) { inst.append.remove(); } if ( appendText ) { inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" ); input[ isRTL ? "before" : "after" ]( inst.append ); } input.off( "focus", this._showDatepicker ); if ( inst.trigger ) { inst.trigger.remove(); } showOn = this._get( inst, "showOn" ); if ( showOn === "focus" || showOn === "both" ) { // pop-up date picker when in the marked field input.on( "focus", this._showDatepicker ); } if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked buttonText = this._get( inst, "buttonText" ); buttonImage = this._get( inst, "buttonImage" ); inst.trigger = $( this._get( inst, "buttonImageOnly" ) ? $( "<img/>" ).addClass( this._triggerClass ). attr( { src: buttonImage, alt: buttonText, title: buttonText } ) : $( "<button type='button'></button>" ).addClass( this._triggerClass ). html( !buttonImage ? buttonText : $( "<img/>" ).attr( { src:buttonImage, alt:buttonText, title:buttonText } ) ) ); input[ isRTL ? "before" : "after" ]( inst.trigger ); inst.trigger.on( "click", function() { if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) { $.datepicker._hideDatepicker(); } else if ( $.datepicker._datepickerShowing && $.datepicker._lastInput !== input[ 0 ] ) { $.datepicker._hideDatepicker(); $.datepicker._showDatepicker( input[ 0 ] ); } else { $.datepicker._showDatepicker( input[ 0 ] ); } return false; } ); } }, /* Apply the maximum length for the date format. */ _autoSize: function( inst ) { if ( this._get( inst, "autoSize" ) && !inst.inline ) { var findMax, max, maxI, i, date = new Date( 2009, 12 - 1, 20 ), // Ensure double digits dateFormat = this._get( inst, "dateFormat" ); if ( dateFormat.match( /[DM]/ ) ) { findMax = function( names ) { max = 0; maxI = 0; for ( i = 0; i < names.length; i++ ) { if ( names[ i ].length > max ) { max = names[ i ].length; maxI = i; } } return maxI; }; date.setMonth( findMax( this._get( inst, ( dateFormat.match( /MM/ ) ? "monthNames" : "monthNamesShort" ) ) ) ); date.setDate( findMax( this._get( inst, ( dateFormat.match( /DD/ ) ? "dayNames" : "dayNamesShort" ) ) ) + 20 - date.getDay() ); } inst.input.attr( "size", this._formatDate( inst, date ).length ); } }, /* Attach an inline date picker to a div. */ _inlineDatepicker: function( target, inst ) { var divSpan = $( target ); if ( divSpan.hasClass( this.markerClassName ) ) { return; } divSpan.addClass( this.markerClassName ).append( inst.dpDiv ); $.data( target, "datepicker", inst ); this._setDate( inst, this._getDefaultDate( inst ), true ); this._updateDatepicker( inst ); this._updateAlternate( inst ); //If disabled option is true, disable the datepicker before showing it (see ticket #5665) if ( inst.settings.disabled ) { this._disableDatepicker( target ); } // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height inst.dpDiv.css( "display", "block" ); }, /* Pop-up the date picker in a "dialog" box. * @param input element - ignored * @param date string or Date - the initial date to display * @param onSelect function - the function to call when a date is selected * @param settings object - update the dialog date picker instance's settings (anonymous object) * @param pos int[2] - coordinates for the dialog's position within the screen or * event - with x/y coordinates or * leave empty for default (screen centre) * @return the manager object */ _dialogDatepicker: function( input, date, onSelect, settings, pos ) { var id, browserWidth, browserHeight, scrollX, scrollY, inst = this._dialogInst; // internal instance if ( !inst ) { this.uuid += 1; id = "dp" + this.uuid; this._dialogInput = $( "<input type='text' id='" + id + "' style='position: absolute; top: -100px; width: 0px;'/>" ); this._dialogInput.on( "keydown", this._doKeyDown ); $( "body" ).append( this._dialogInput ); inst = this._dialogInst = this._newInst( this._dialogInput, false ); inst.settings = {}; $.data( this._dialogInput[ 0 ], "datepicker", inst ); } datepicker_extendRemove( inst.settings, settings || {} ); date = ( date && date.constructor === Date ? this._formatDate( inst, date ) : date ); this._dialogInput.val( date ); this._pos = ( pos ? ( pos.length ? pos : [ pos.pageX, pos.pageY ] ) : null ); if ( !this._pos ) { browserWidth = document.documentElement.clientWidth; browserHeight = document.documentElement.clientHeight; scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; scrollY = document.documentElement.scrollTop || document.body.scrollTop; this._pos = // should use actual width/height below [ ( browserWidth / 2 ) - 100 + scrollX, ( browserHeight / 2 ) - 150 + scrollY ]; } // Move input on screen for focus, but hidden behind dialog this._dialogInput.css( "left", ( this._pos[ 0 ] + 20 ) + "px" ).css( "top", this._pos[ 1 ] + "px" ); inst.settings.onSelect = onSelect; this._inDialog = true; this.dpDiv.addClass( this._dialogClass ); this._showDatepicker( this._dialogInput[ 0 ] ); if ( $.blockUI ) { $.blockUI( this.dpDiv ); } $.data( this._dialogInput[ 0 ], "datepicker", inst ); return this; }, /* Detach a datepicker from its control. * @param target element - the target input field or division or span */ _destroyDatepicker: function( target ) { var nodeName, $target = $( target ), inst = $.data( target, "datepicker" ); if ( !$target.hasClass( this.markerClassName ) ) { return; } nodeName = target.nodeName.toLowerCase(); $.removeData( target, "datepicker" ); if ( nodeName === "input" ) { inst.append.remove(); inst.trigger.remove(); $target.removeClass( this.markerClassName ). off( "focus", this._showDatepicker ). off( "keydown", this._doKeyDown ). off( "keypress", this._doKeyPress ). off( "keyup", this._doKeyUp ); } else if ( nodeName === "div" || nodeName === "span" ) { $target.removeClass( this.markerClassName ).empty(); } if ( datepicker_instActive === inst ) { datepicker_instActive = null; } }, /* Enable the date picker to a jQuery selection. * @param target element - the target input field or division or span */ _enableDatepicker: function( target ) { var nodeName, inline, $target = $( target ), inst = $.data( target, "datepicker" ); if ( !$target.hasClass( this.markerClassName ) ) { return; } nodeName = target.nodeName.toLowerCase(); if ( nodeName === "input" ) { target.disabled = false; inst.trigger.filter( "button" ). each( function() { this.disabled = false; } ).end(). filter( "img" ).css( { opacity: "1.0", cursor: "" } ); } else if ( nodeName === "div" || nodeName === "span" ) { inline = $target.children( "." + this._inlineClass ); inline.children().removeClass( "ui-state-disabled" ); inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). prop( "disabled", false ); } this._disabledInputs = $.map( this._disabledInputs, function( value ) { return ( value === target ? null : value ); } ); // delete entry }, /* Disable the date picker to a jQuery selection. * @param target element - the target input field or division or span */ _disableDatepicker: function( target ) { var nodeName, inline, $target = $( target ), inst = $.data( target, "datepicker" ); if ( !$target.hasClass( this.markerClassName ) ) { return; } nodeName = target.nodeName.toLowerCase(); if ( nodeName === "input" ) { target.disabled = true; inst.trigger.filter( "button" ). each( function() { this.disabled = true; } ).end(). filter( "img" ).css( { opacity: "0.5", cursor: "default" } ); } else if ( nodeName === "div" || nodeName === "span" ) { inline = $target.children( "." + this._inlineClass ); inline.children().addClass( "ui-state-disabled" ); inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). prop( "disabled", true ); } this._disabledInputs = $.map( this._disabledInputs, function( value ) { return ( value === target ? null : value ); } ); // delete entry this._disabledInputs[ this._disabledInputs.length ] = target; }, /* Is the first field in a jQuery collection disabled as a datepicker? * @param target element - the target input field or division or span * @return boolean - true if disabled, false if enabled */ _isDisabledDatepicker: function( target ) { if ( !target ) { return false; } for ( var i = 0; i < this._disabledInputs.length; i++ ) { if ( this._disabledInputs[ i ] === target ) { return true; } } return false; }, /* Retrieve the instance data for the target control. * @param target element - the target input field or division or span * @return object - the associated instance data * @throws error if a jQuery problem getting data */ _getInst: function( target ) { try { return $.data( target, "datepicker" ); } catch ( err ) { throw "Missing instance data for this datepicker"; } }, /* Update or retrieve the settings for a date picker attached to an input field or division. * @param target element - the target input field or division or span * @param name object - the new settings to update or * string - the name of the setting to change or retrieve, * when retrieving also "all" for all instance settings or * "defaults" for all global defaults * @param value any - the new value for the setting * (omit if above is an object or to retrieve a value) */ _optionDatepicker: function( target, name, value ) { var settings, date, minDate, maxDate, inst = this._getInst( target ); if ( arguments.length === 2 && typeof name === "string" ) { return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) : ( inst ? ( name === "all" ? $.extend( {}, inst.settings ) : this._get( inst, name ) ) : null ) ); } settings = name || {}; if ( typeof name === "string" ) { settings = {}; settings[ name ] = value; } if ( inst ) { if ( this._curInst === inst ) { this._hideDatepicker(); } date = this._getDateDatepicker( target, true ); minDate = this._getMinMaxDate( inst, "min" ); maxDate = this._getMinMaxDate( inst, "max" ); datepicker_extendRemove( inst.settings, settings ); // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided if ( minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined ) { inst.settings.minDate = this._formatDate( inst, minDate ); } if ( maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined ) { inst.settings.maxDate = this._formatDate( inst, maxDate ); } if ( "disabled" in settings ) { if ( settings.disabled ) { this._disableDatepicker( target ); } else { this._enableDatepicker( target ); } } this._attachments( $( target ), inst ); this._autoSize( inst ); this._setDate( inst, date ); this._updateAlternate( inst ); this._updateDatepicker( inst ); } }, // Change method deprecated _changeDatepicker: function( target, name, value ) { this._optionDatepicker( target, name, value ); }, /* Redraw the date picker attached to an input field or division. * @param target element - the target input field or division or span */ _refreshDatepicker: function( target ) { var inst = this._getInst( target ); if ( inst ) { this._updateDatepicker( inst ); } }, /* Set the dates for a jQuery selection. * @param target element - the target input field or division or span * @param date Date - the new date */ _setDateDatepicker: function( target, date ) { var inst = this._getInst( target ); if ( inst ) { this._setDate( inst, date ); this._updateDatepicker( inst ); this._updateAlternate( inst ); } }, /* Get the date(s) for the first entry in a jQuery selection. * @param target element - the target input field or division or span * @param noDefault boolean - true if no default date is to be used * @return Date - the current date */ _getDateDatepicker: function( target, noDefault ) { var inst = this._getInst( target ); if ( inst && !inst.inline ) { this._setDateFromField( inst, noDefault ); } return ( inst ? this._getDate( inst ) : null ); }, /* Handle keystrokes. */ _doKeyDown: function( event ) { var onSelect, dateStr, sel, inst = $.datepicker._getInst( event.target ), handled = true, isRTL = inst.dpDiv.is( ".ui-datepicker-rtl" ); inst._keyEvent = true; if ( $.datepicker._datepickerShowing ) { switch ( event.keyCode ) { case 9: $.datepicker._hideDatepicker(); handled = false; break; // hide on tab out case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." + $.datepicker._currentClass + ")", inst.dpDiv ); if ( sel[ 0 ] ) { $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] ); } onSelect = $.datepicker._get( inst, "onSelect" ); if ( onSelect ) { dateStr = $.datepicker._formatDate( inst ); // Trigger custom callback onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); } else { $.datepicker._hideDatepicker(); } return false; // don't submit the form case 27: $.datepicker._hideDatepicker(); break; // hide on escape case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? -$.datepicker._get( inst, "stepBigMonths" ) : -$.datepicker._get( inst, "stepMonths" ) ), "M" ); break; // previous month/year on page up/+ ctrl case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? +$.datepicker._get( inst, "stepBigMonths" ) : +$.datepicker._get( inst, "stepMonths" ) ), "M" ); break; // next month/year on page down/+ ctrl case 35: if ( event.ctrlKey || event.metaKey ) { $.datepicker._clearDate( event.target ); } handled = event.ctrlKey || event.metaKey; break; // clear on ctrl or command +end case 36: if ( event.ctrlKey || event.metaKey ) { $.datepicker._gotoToday( event.target ); } handled = event.ctrlKey || event.metaKey; break; // current on ctrl or command +home case 37: if ( event.ctrlKey || event.metaKey ) { $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" ); } handled = event.ctrlKey || event.metaKey; // -1 day on ctrl or command +left if ( event.originalEvent.altKey ) { $.datepicker._adjustDate( event.target, ( event.ctrlKey ? -$.datepicker._get( inst, "stepBigMonths" ) : -$.datepicker._get( inst, "stepMonths" ) ), "M" ); } // next month/year on alt +left on Mac break; case 38: if ( event.ctrlKey || event.metaKey ) { $.datepicker._adjustDate( event.target, -7, "D" ); } handled = event.ctrlKey || event.metaKey; break; // -1 week on ctrl or command +up case 39: if ( event.ctrlKey || event.metaKey ) { $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" ); } handled = event.ctrlKey || event.metaKey; // +1 day on ctrl or command +right if ( event.originalEvent.altKey ) { $.datepicker._adjustDate( event.target, ( event.ctrlKey ? +$.datepicker._get( inst, "stepBigMonths" ) : +$.datepicker._get( inst, "stepMonths" ) ), "M" ); } // next month/year on alt +right break; case 40: if ( event.ctrlKey || event.metaKey ) { $.datepicker._adjustDate( event.target, +7, "D" ); } handled = event.ctrlKey || event.metaKey; break; // +1 week on ctrl or command +down default: handled = false; } } else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home $.datepicker._showDatepicker( this ); } else { handled = false; } if ( handled ) { event.preventDefault(); event.stopPropagation(); } }, /* Filter entered characters - based on date format. */ _doKeyPress: function( event ) { var chars, chr, inst = $.datepicker._getInst( event.target ); if ( $.datepicker._get( inst, "constrainInput" ) ) { chars = $.datepicker._possibleChars( $.datepicker._get( inst, "dateFormat" ) ); chr = String.fromCharCode( event.charCode == null ? event.keyCode : event.charCode ); return event.ctrlKey || event.metaKey || ( chr < " " || !chars || chars.indexOf( chr ) > -1 ); } }, /* Synchronise manual entry and field/alternate field. */ _doKeyUp: function( event ) { var date, inst = $.datepicker._getInst( event.target ); if ( inst.input.val() !== inst.lastVal ) { try { date = $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ), ( inst.input ? inst.input.val() : null ), $.datepicker._getFormatConfig( inst ) ); if ( date ) { // only if valid $.datepicker._setDateFromField( inst ); $.datepicker._updateAlternate( inst ); $.datepicker._updateDatepicker( inst ); } } catch ( err ) { } } return true; }, /* Pop-up the date picker for a given input field. * If false returned from beforeShow event handler do not show. * @param input element - the input field attached to the date picker or * event - if triggered by focus */ _showDatepicker: function( input ) { input = input.target || input; if ( input.nodeName.toLowerCase() !== "input" ) { // find from button/image trigger input = $( "input", input.parentNode )[ 0 ]; } if ( $.datepicker._isDisabledDatepicker( input ) || $.datepicker._lastInput === input ) { // already here return; } var inst, beforeShow, beforeShowSettings, isFixed, offset, showAnim, duration; inst = $.datepicker._getInst( input ); if ( $.datepicker._curInst && $.datepicker._curInst !== inst ) { $.datepicker._curInst.dpDiv.stop( true, true ); if ( inst && $.datepicker._datepickerShowing ) { $.datepicker._hideDatepicker( $.datepicker._curInst.input[ 0 ] ); } } beforeShow = $.datepicker._get( inst, "beforeShow" ); beforeShowSettings = beforeShow ? beforeShow.apply( input, [ input, inst ] ) : {}; if ( beforeShowSettings === false ) { return; } datepicker_extendRemove( inst.settings, beforeShowSettings ); inst.lastVal = null; $.datepicker._lastInput = input; $.datepicker._setDateFromField( inst ); if ( $.datepicker._inDialog ) { // hide cursor input.value = ""; } if ( !$.datepicker._pos ) { // position below input $.datepicker._pos = $.datepicker._findPos( input ); $.datepicker._pos[ 1 ] += input.offsetHeight; // add the height } isFixed = false; $( input ).parents().each( function() { isFixed |= $( this ).css( "position" ) === "fixed"; return !isFixed; } ); offset = { left: $.datepicker._pos[ 0 ], top: $.datepicker._pos[ 1 ] }; $.datepicker._pos = null; //to avoid flashes on Firefox inst.dpDiv.empty(); // determine sizing offscreen inst.dpDiv.css( { position: "absolute", display: "block", top: "-1000px" } ); $.datepicker._updateDatepicker( inst ); // fix width for dynamic number of date pickers // and adjust position before showing offset = $.datepicker._checkOffset( inst, offset, isFixed ); inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ? "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none", left: offset.left + "px", top: offset.top + "px" } ); if ( !inst.inline ) { showAnim = $.datepicker._get( inst, "showAnim" ); duration = $.datepicker._get( inst, "duration" ); inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 ); $.datepicker._datepickerShowing = true; if ( $.effects && $.effects.effect[ showAnim ] ) { inst.dpDiv.show( showAnim, $.datepicker._get( inst, "showOptions" ), duration ); } else { inst.dpDiv[ showAnim || "show" ]( showAnim ? duration : null ); } if ( $.datepicker._shouldFocusInput( inst ) ) { inst.input.trigger( "focus" ); } $.datepicker._curInst = inst; } }, /* Generate the date picker content. */ _updateDatepicker: function( inst ) { this.maxRows = 4; //Reset the max number of rows being displayed (see #7043) datepicker_instActive = inst; // for delegate hover events inst.dpDiv.empty().append( this._generateHTML( inst ) ); this._attachHandlers( inst ); var origyearshtml, numMonths = this._getNumberOfMonths( inst ), cols = numMonths[ 1 ], width = 17, activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ); if ( activeCell.length > 0 ) { datepicker_handleMouseover.apply( activeCell.get( 0 ) ); } inst.dpDiv.removeClass( "ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4" ).width( "" ); if ( cols > 1 ) { inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" ); } inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) + "Class" ]( "ui-datepicker-multi" ); inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) + "Class" ]( "ui-datepicker-rtl" ); if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) { inst.input.trigger( "focus" ); } // Deffered render of the years select (to avoid flashes on Firefox) if ( inst.yearshtml ) { origyearshtml = inst.yearshtml; setTimeout( function() { //assure that inst.yearshtml didn't change. if ( origyearshtml === inst.yearshtml && inst.yearshtml ) { inst.dpDiv.find( "select.ui-datepicker-year:first" ).replaceWith( inst.yearshtml ); } origyearshtml = inst.yearshtml = null; }, 0 ); } }, // #6694 - don't focus the input if it's already focused // this breaks the change event in IE // Support: IE and jQuery <1.9 _shouldFocusInput: function( inst ) { return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" ); }, /* Check positioning to remain on screen. */ _checkOffset: function( inst, offset, isFixed ) { var dpWidth = inst.dpDiv.outerWidth(), dpHeight = inst.dpDiv.outerHeight(), inputWidth = inst.input ? inst.input.outerWidth() : 0, inputHeight = inst.input ? inst.input.outerHeight() : 0, viewWidth = document.documentElement.clientWidth + ( isFixed ? 0 : $( document ).scrollLeft() ), viewHeight = document.documentElement.clientHeight + ( isFixed ? 0 : $( document ).scrollTop() ); offset.left -= ( this._get( inst, "isRTL" ) ? ( dpWidth - inputWidth ) : 0 ); offset.left -= ( isFixed && offset.left === inst.input.offset().left ) ? $( document ).scrollLeft() : 0; offset.top -= ( isFixed && offset.top === ( inst.input.offset().top + inputHeight ) ) ? $( document ).scrollTop() : 0; // Now check if datepicker is showing outside window viewport - move to a better place if so. offset.left -= Math.min( offset.left, ( offset.left + dpWidth > viewWidth && viewWidth > dpWidth ) ? Math.abs( offset.left + dpWidth - viewWidth ) : 0 ); offset.top -= Math.min( offset.top, ( offset.top + dpHeight > viewHeight && viewHeight > dpHeight ) ? Math.abs( dpHeight + inputHeight ) : 0 ); return offset; }, /* Find an object's position on the screen. */ _findPos: function( obj ) { var position, inst = this._getInst( obj ), isRTL = this._get( inst, "isRTL" ); while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) { obj = obj[ isRTL ? "previousSibling" : "nextSibling" ]; } position = $( obj ).offset(); return [ position.left, position.top ]; }, /* Hide the date picker from view. * @param input element - the input field attached to the date picker */ _hideDatepicker: function( input ) { var showAnim, duration, postProcess, onClose, inst = this._curInst; if ( !inst || ( input && inst !== $.data( input, "datepicker" ) ) ) { return; } if ( this._datepickerShowing ) { showAnim = this._get( inst, "showAnim" ); duration = this._get( inst, "duration" ); postProcess = function() { $.datepicker._tidyDialog( inst ); }; // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) { inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess ); } else { inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" : ( showAnim === "fadeIn" ? "fadeOut" : "hide" ) ) ]( ( showAnim ? duration : null ), postProcess ); } if ( !showAnim ) { postProcess(); } this._datepickerShowing = false; onClose = this._get( inst, "onClose" ); if ( onClose ) { onClose.apply( ( inst.input ? inst.input[ 0 ] : null ), [ ( inst.input ? inst.input.val() : "" ), inst ] ); } this._lastInput = null; if ( this._inDialog ) { this._dialogInput.css( { position: "absolute", left: "0", top: "-100px" } ); if ( $.blockUI ) { $.unblockUI(); $( "body" ).append( this.dpDiv ); } } this._inDialog = false; } }, /* Tidy up after a dialog display. */ _tidyDialog: function( inst ) { inst.dpDiv.removeClass( this._dialogClass ).off( ".ui-datepicker-calendar" ); }, /* Close date picker if clicked elsewhere. */ _checkExternalClick: function( event ) { if ( !$.datepicker._curInst ) { return; } var $target = $( event.target ), inst = $.datepicker._getInst( $target[ 0 ] ); if ( ( ( $target[ 0 ].id !== $.datepicker._mainDivId && $target.parents( "#" + $.datepicker._mainDivId ).length === 0 && !$target.hasClass( $.datepicker.markerClassName ) && !$target.closest( "." + $.datepicker._triggerClass ).length && $.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) || ( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) { $.datepicker._hideDatepicker(); } }, /* Adjust one of the date sub-fields. */ _adjustDate: function( id, offset, period ) { var target = $( id ), inst = this._getInst( target[ 0 ] ); if ( this._isDisabledDatepicker( target[ 0 ] ) ) { return; } this._adjustInstDate( inst, offset + ( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning period ); this._updateDatepicker( inst ); }, /* Action for current link. */ _gotoToday: function( id ) { var date, target = $( id ), inst = this._getInst( target[ 0 ] ); if ( this._get( inst, "gotoCurrent" ) && inst.currentDay ) { inst.selectedDay = inst.currentDay; inst.drawMonth = inst.selectedMonth = inst.currentMonth; inst.drawYear = inst.selectedYear = inst.currentYear; } else { date = new Date(); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); } this._notifyChange( inst ); this._adjustDate( target ); }, /* Action for selecting a new month/year. */ _selectMonthYear: function( id, select, period ) { var target = $( id ), inst = this._getInst( target[ 0 ] ); inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] = inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] = parseInt( select.options[ select.selectedIndex ].value, 10 ); this._notifyChange( inst ); this._adjustDate( target ); }, /* Action for selecting a day. */ _selectDay: function( id, month, year, td ) { var inst, target = $( id ); if ( $( td ).hasClass( this._unselectableClass ) || this._isDisabledDatepicker( target[ 0 ] ) ) { return; } inst = this._getInst( target[ 0 ] ); inst.selectedDay = inst.currentDay = $( "a", td ).html(); inst.selectedMonth = inst.currentMonth = month; inst.selectedYear = inst.currentYear = year; this._selectDate( id, this._formatDate( inst, inst.currentDay, inst.currentMonth, inst.currentYear ) ); }, /* Erase the input field and hide the date picker. */ _clearDate: function( id ) { var target = $( id ); this._selectDate( target, "" ); }, /* Update the input field with the selected date. */ _selectDate: function( id, dateStr ) { var onSelect, target = $( id ), inst = this._getInst( target[ 0 ] ); dateStr = ( dateStr != null ? dateStr : this._formatDate( inst ) ); if ( inst.input ) { inst.input.val( dateStr ); } this._updateAlternate( inst ); onSelect = this._get( inst, "onSelect" ); if ( onSelect ) { onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback } else if ( inst.input ) { inst.input.trigger( "change" ); // fire the change event } if ( inst.inline ) { this._updateDatepicker( inst ); } else { this._hideDatepicker(); this._lastInput = inst.input[ 0 ]; if ( typeof( inst.input[ 0 ] ) !== "object" ) { inst.input.trigger( "focus" ); // restore focus } this._lastInput = null; } }, /* Update any alternate field to synchronise with the main field. */ _updateAlternate: function( inst ) { var altFormat, date, dateStr, altField = this._get( inst, "altField" ); if ( altField ) { // update alternate field too altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" ); date = this._getDate( inst ); dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) ); $( altField ).val( dateStr ); } }, /* Set as beforeShowDay function to prevent selection of weekends. * @param date Date - the date to customise * @return [boolean, string] - is this date selectable?, what is its CSS class? */ noWeekends: function( date ) { var day = date.getDay(); return [ ( day > 0 && day < 6 ), "" ]; }, /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. * @param date Date - the date to get the week for * @return number - the number of the week within the year that contains this date */ iso8601Week: function( date ) { var time, checkDate = new Date( date.getTime() ); // Find Thursday of this week starting on Monday checkDate.setDate( checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ) ); time = checkDate.getTime(); checkDate.setMonth( 0 ); // Compare with Jan 1 checkDate.setDate( 1 ); return Math.floor( Math.round( ( time - checkDate ) / 86400000 ) / 7 ) + 1; }, /* Parse a string value into a date object. * See formatDate below for the possible formats. * * @param format string - the expected format of the date * @param value string - the date in the above format * @param settings Object - attributes include: * shortYearCutoff number - the cutoff year for determining the century (optional) * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) * dayNames string[7] - names of the days from Sunday (optional) * monthNamesShort string[12] - abbreviated names of the months (optional) * monthNames string[12] - names of the months (optional) * @return Date - the extracted date value or null if value is blank */ parseDate: function( format, value, settings ) { if ( format == null || value == null ) { throw "Invalid arguments"; } value = ( typeof value === "object" ? value.toString() : value + "" ); if ( value === "" ) { return null; } var iFormat, dim, extra, iValue = 0, shortYearCutoffTemp = ( settings ? settings.shortYearCutoff : null ) || this._defaults.shortYearCutoff, shortYearCutoff = ( typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp : new Date().getFullYear() % 100 + parseInt( shortYearCutoffTemp, 10 ) ), dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort, dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames, monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort, monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames, year = -1, month = -1, day = -1, doy = -1, literal = false, date, // Check whether a format character is doubled lookAhead = function( match ) { var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match ); if ( matches ) { iFormat++; } return matches; }, // Extract a number from the string value getNumber = function( match ) { var isDoubled = lookAhead( match ), size = ( match === "@" ? 14 : ( match === "!" ? 20 : ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ), minSize = ( match === "y" ? size : 1 ), digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ), num = value.substring( iValue ).match( digits ); if ( !num ) { throw "Missing number at position " + iValue; } iValue += num[ 0 ].length; return parseInt( num[ 0 ], 10 ); }, // Extract a name from the string value and convert to an index getName = function( match, shortNames, longNames ) { var index = -1, names = $.map( lookAhead( match ) ? longNames : shortNames, function( v, k ) { return [ [ k, v ] ]; } ).sort( function( a, b ) { return -( a[ 1 ].length - b[ 1 ].length ); } ); $.each( names, function( i, pair ) { var name = pair[ 1 ]; if ( value.substr( iValue, name.length ).toLowerCase() === name.toLowerCase() ) { index = pair[ 0 ]; iValue += name.length; return false; } } ); if ( index !== -1 ) { return index + 1; } else { throw "Unknown name at position " + iValue; } }, // Confirm that a literal character matches the string value checkLiteral = function() { if ( value.charAt( iValue ) !== format.charAt( iFormat ) ) { throw "Unexpected literal at position " + iValue; } iValue++; }; for ( iFormat = 0; iFormat < format.length; iFormat++ ) { if ( literal ) { if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) { literal = false; } else { checkLiteral(); } } else { switch ( format.charAt( iFormat ) ) { case "d": day = getNumber( "d" ); break; case "D": getName( "D", dayNamesShort, dayNames ); break; case "o": doy = getNumber( "o" ); break; case "m": month = getNumber( "m" ); break; case "M": month = getName( "M", monthNamesShort, monthNames ); break; case "y": year = getNumber( "y" ); break; case "@": date = new Date( getNumber( "@" ) ); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case "!": date = new Date( ( getNumber( "!" ) - this._ticksTo1970 ) / 10000 ); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case "'": if ( lookAhead( "'" ) ) { checkLiteral(); } else { literal = true; } break; default: checkLiteral(); } } } if ( iValue < value.length ) { extra = value.substr( iValue ); if ( !/^\s+/.test( extra ) ) { throw "Extra/unparsed characters found in date: " + extra; } } if ( year === -1 ) { year = new Date().getFullYear(); } else if ( year < 100 ) { year += new Date().getFullYear() - new Date().getFullYear() % 100 + ( year <= shortYearCutoff ? 0 : -100 ); } if ( doy > -1 ) { month = 1; day = doy; do { dim = this._getDaysInMonth( year, month - 1 ); if ( day <= dim ) { break; } month++; day -= dim; } while ( true ); } date = this._daylightSavingAdjust( new Date( year, month - 1, day ) ); if ( date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day ) { throw "Invalid date"; // E.g. 31/02/00 } return date; }, /* Standard date formats. */ ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601) COOKIE: "D, dd M yy", ISO_8601: "yy-mm-dd", RFC_822: "D, d M y", RFC_850: "DD, dd-M-y", RFC_1036: "D, d M y", RFC_1123: "D, d M yy", RFC_2822: "D, d M yy", RSS: "D, d M y", // RFC 822 TICKS: "!", TIMESTAMP: "@", W3C: "yy-mm-dd", // ISO 8601 _ticksTo1970: ( ( ( 1970 - 1 ) * 365 + Math.floor( 1970 / 4 ) - Math.floor( 1970 / 100 ) + Math.floor( 1970 / 400 ) ) * 24 * 60 * 60 * 10000000 ), /* Format a date object into a string value. * The format can be combinations of the following: * d - day of month (no leading zero) * dd - day of month (two digit) * o - day of year (no leading zeros) * oo - day of year (three digit) * D - day name short * DD - day name long * m - month of year (no leading zero) * mm - month of year (two digit) * M - month name short * MM - month name long * y - year (two digit) * yy - year (four digit) * @ - Unix timestamp (ms since 01/01/1970) * ! - Windows ticks (100ns since 01/01/0001) * "..." - literal text * '' - single quote * * @param format string - the desired format of the date * @param date Date - the date value to format * @param settings Object - attributes include: * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) * dayNames string[7] - names of the days from Sunday (optional) * monthNamesShort string[12] - abbreviated names of the months (optional) * monthNames string[12] - names of the months (optional) * @return string - the date in the above format */ formatDate: function( format, date, settings ) { if ( !date ) { return ""; } var iFormat, dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort, dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames, monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort, monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames, // Check whether a format character is doubled lookAhead = function( match ) { var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match ); if ( matches ) { iFormat++; } return matches; }, // Format a number, with leading zero if necessary formatNumber = function( match, value, len ) { var num = "" + value; if ( lookAhead( match ) ) { while ( num.length < len ) { num = "0" + num; } } return num; }, // Format a name, short or long as requested formatName = function( match, value, shortNames, longNames ) { return ( lookAhead( match ) ? longNames[ value ] : shortNames[ value ] ); }, output = "", literal = false; if ( date ) { for ( iFormat = 0; iFormat < format.length; iFormat++ ) { if ( literal ) { if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) { literal = false; } else { output += format.charAt( iFormat ); } } else { switch ( format.charAt( iFormat ) ) { case "d": output += formatNumber( "d", date.getDate(), 2 ); break; case "D": output += formatName( "D", date.getDay(), dayNamesShort, dayNames ); break; case "o": output += formatNumber( "o", Math.round( ( new Date( date.getFullYear(), date.getMonth(), date.getDate() ).getTime() - new Date( date.getFullYear(), 0, 0 ).getTime() ) / 86400000 ), 3 ); break; case "m": output += formatNumber( "m", date.getMonth() + 1, 2 ); break; case "M": output += formatName( "M", date.getMonth(), monthNamesShort, monthNames ); break; case "y": output += ( lookAhead( "y" ) ? date.getFullYear() : ( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 ); break; case "@": output += date.getTime(); break; case "!": output += date.getTime() * 10000 + this._ticksTo1970; break; case "'": if ( lookAhead( "'" ) ) { output += "'"; } else { literal = true; } break; default: output += format.charAt( iFormat ); } } } } return output; }, /* Extract all possible characters from the date format. */ _possibleChars: function( format ) { var iFormat, chars = "", literal = false, // Check whether a format character is doubled lookAhead = function( match ) { var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match ); if ( matches ) { iFormat++; } return matches; }; for ( iFormat = 0; iFormat < format.length; iFormat++ ) { if ( literal ) { if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) { literal = false; } else { chars += format.charAt( iFormat ); } } else { switch ( format.charAt( iFormat ) ) { case "d": case "m": case "y": case "@": chars += "0123456789"; break; case "D": case "M": return null; // Accept anything case "'": if ( lookAhead( "'" ) ) { chars += "'"; } else { literal = true; } break; default: chars += format.charAt( iFormat ); } } } return chars; }, /* Get a setting value, defaulting if necessary. */ _get: function( inst, name ) { return inst.settings[ name ] !== undefined ? inst.settings[ name ] : this._defaults[ name ]; }, /* Parse existing date and initialise date picker. */ _setDateFromField: function( inst, noDefault ) { if ( inst.input.val() === inst.lastVal ) { return; } var dateFormat = this._get( inst, "dateFormat" ), dates = inst.lastVal = inst.input ? inst.input.val() : null, defaultDate = this._getDefaultDate( inst ), date = defaultDate, settings = this._getFormatConfig( inst ); try { date = this.parseDate( dateFormat, dates, settings ) || defaultDate; } catch ( event ) { dates = ( noDefault ? "" : dates ); } inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); inst.currentDay = ( dates ? date.getDate() : 0 ); inst.currentMonth = ( dates ? date.getMonth() : 0 ); inst.currentYear = ( dates ? date.getFullYear() : 0 ); this._adjustInstDate( inst ); }, /* Retrieve the default date shown on opening. */ _getDefaultDate: function( inst ) { return this._restrictMinMax( inst, this._determineDate( inst, this._get( inst, "defaultDate" ), new Date() ) ); }, /* A date may be specified as an exact value or a relative one. */ _determineDate: function( inst, date, defaultDate ) { var offsetNumeric = function( offset ) { var date = new Date(); date.setDate( date.getDate() + offset ); return date; }, offsetString = function( offset ) { try { return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ), offset, $.datepicker._getFormatConfig( inst ) ); } catch ( e ) { // Ignore } var date = ( offset.toLowerCase().match( /^c/ ) ? $.datepicker._getDate( inst ) : null ) || new Date(), year = date.getFullYear(), month = date.getMonth(), day = date.getDate(), pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, matches = pattern.exec( offset ); while ( matches ) { switch ( matches[ 2 ] || "d" ) { case "d" : case "D" : day += parseInt( matches[ 1 ], 10 ); break; case "w" : case "W" : day += parseInt( matches[ 1 ], 10 ) * 7; break; case "m" : case "M" : month += parseInt( matches[ 1 ], 10 ); day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) ); break; case "y": case "Y" : year += parseInt( matches[ 1 ], 10 ); day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) ); break; } matches = pattern.exec( offset ); } return new Date( year, month, day ); }, newDate = ( date == null || date === "" ? defaultDate : ( typeof date === "string" ? offsetString( date ) : ( typeof date === "number" ? ( isNaN( date ) ? defaultDate : offsetNumeric( date ) ) : new Date( date.getTime() ) ) ) ); newDate = ( newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate ); if ( newDate ) { newDate.setHours( 0 ); newDate.setMinutes( 0 ); newDate.setSeconds( 0 ); newDate.setMilliseconds( 0 ); } return this._daylightSavingAdjust( newDate ); }, /* Handle switch to/from daylight saving. * Hours may be non-zero on daylight saving cut-over: * > 12 when midnight changeover, but then cannot generate * midnight datetime, so jump to 1AM, otherwise reset. * @param date (Date) the date to check * @return (Date) the corrected date */ _daylightSavingAdjust: function( date ) { if ( !date ) { return null; } date.setHours( date.getHours() > 12 ? date.getHours() + 2 : 0 ); return date; }, /* Set the date(s) directly. */ _setDate: function( inst, date, noChange ) { var clear = !date, origMonth = inst.selectedMonth, origYear = inst.selectedYear, newDate = this._restrictMinMax( inst, this._determineDate( inst, date, new Date() ) ); inst.selectedDay = inst.currentDay = newDate.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth(); inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear(); if ( ( origMonth !== inst.selectedMonth || origYear !== inst.selectedYear ) && !noChange ) { this._notifyChange( inst ); } this._adjustInstDate( inst ); if ( inst.input ) { inst.input.val( clear ? "" : this._formatDate( inst ) ); } }, /* Retrieve the date(s) directly. */ _getDate: function( inst ) { var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null : this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); return startDate; }, /* Attach the onxxx handlers. These are declared statically so * they work with static code transformers like Caja. */ _attachHandlers: function( inst ) { var stepMonths = this._get( inst, "stepMonths" ), id = "#" + inst.id.replace( /\\\\/g, "\\" ); inst.dpDiv.find( "[data-handler]" ).map( function() { var handler = { prev: function() { $.datepicker._adjustDate( id, -stepMonths, "M" ); }, next: function() { $.datepicker._adjustDate( id, +stepMonths, "M" ); }, hide: function() { $.datepicker._hideDatepicker(); }, today: function() { $.datepicker._gotoToday( id ); }, selectDay: function() { $.datepicker._selectDay( id, +this.getAttribute( "data-month" ), +this.getAttribute( "data-year" ), this ); return false; }, selectMonth: function() { $.datepicker._selectMonthYear( id, this, "M" ); return false; }, selectYear: function() { $.datepicker._selectMonthYear( id, this, "Y" ); return false; } }; $( this ).on( this.getAttribute( "data-event" ), handler[ this.getAttribute( "data-handler" ) ] ); } ); }, /* Generate the HTML for the current state of the date picker. */ _generateHTML: function( inst ) { var maxDraw, prevText, prev, nextText, next, currentText, gotoDate, controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin, monthNames, monthNamesShort, beforeShowDay, showOtherMonths, selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate, cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows, printDate, dRow, tbody, daySettings, otherMonth, unselectable, tempDate = new Date(), today = this._daylightSavingAdjust( new Date( tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate() ) ), // clear time isRTL = this._get( inst, "isRTL" ), showButtonPanel = this._get( inst, "showButtonPanel" ), hideIfNoPrevNext = this._get( inst, "hideIfNoPrevNext" ), navigationAsDateFormat = this._get( inst, "navigationAsDateFormat" ), numMonths = this._getNumberOfMonths( inst ), showCurrentAtPos = this._get( inst, "showCurrentAtPos" ), stepMonths = this._get( inst, "stepMonths" ), isMultiMonth = ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ), currentDate = this._daylightSavingAdjust( ( !inst.currentDay ? new Date( 9999, 9, 9 ) : new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ), minDate = this._getMinMaxDate( inst, "min" ), maxDate = this._getMinMaxDate( inst, "max" ), drawMonth = inst.drawMonth - showCurrentAtPos, drawYear = inst.drawYear; if ( drawMonth < 0 ) { drawMonth += 12; drawYear--; } if ( maxDate ) { maxDraw = this._daylightSavingAdjust( new Date( maxDate.getFullYear(), maxDate.getMonth() - ( numMonths[ 0 ] * numMonths[ 1 ] ) + 1, maxDate.getDate() ) ); maxDraw = ( minDate && maxDraw < minDate ? minDate : maxDraw ); while ( this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 ) ) > maxDraw ) { drawMonth--; if ( drawMonth < 0 ) { drawMonth = 11; drawYear--; } } } inst.drawMonth = drawMonth; inst.drawYear = drawYear; prevText = this._get( inst, "prevText" ); prevText = ( !navigationAsDateFormat ? prevText : this.formatDate( prevText, this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ), this._getFormatConfig( inst ) ) ); prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ? "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" + " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" : ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) ); nextText = this._get( inst, "nextText" ); nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText, this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ), this._getFormatConfig( inst ) ) ); next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ? "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" + " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" : ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) ); currentText = this._get( inst, "currentText" ); gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today ); currentText = ( !navigationAsDateFormat ? currentText : this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) ); controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" + this._get( inst, "closeText" ) + "</button>" : "" ); buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) + ( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" + ">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : ""; firstDay = parseInt( this._get( inst, "firstDay" ), 10 ); firstDay = ( isNaN( firstDay ) ? 0 : firstDay ); showWeek = this._get( inst, "showWeek" ); dayNames = this._get( inst, "dayNames" ); dayNamesMin = this._get( inst, "dayNamesMin" ); monthNames = this._get( inst, "monthNames" ); monthNamesShort = this._get( inst, "monthNamesShort" ); beforeShowDay = this._get( inst, "beforeShowDay" ); showOtherMonths = this._get( inst, "showOtherMonths" ); selectOtherMonths = this._get( inst, "selectOtherMonths" ); defaultDate = this._getDefaultDate( inst ); html = ""; for ( row = 0; row < numMonths[ 0 ]; row++ ) { group = ""; this.maxRows = 4; for ( col = 0; col < numMonths[ 1 ]; col++ ) { selectedDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, inst.selectedDay ) ); cornerClass = " ui-corner-all"; calender = ""; if ( isMultiMonth ) { calender += "<div class='ui-datepicker-group"; if ( numMonths[ 1 ] > 1 ) { switch ( col ) { case 0: calender += " ui-datepicker-group-first"; cornerClass = " ui-corner-" + ( isRTL ? "right" : "left" ); break; case numMonths[ 1 ] - 1: calender += " ui-datepicker-group-last"; cornerClass = " ui-corner-" + ( isRTL ? "left" : "right" ); break; default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break; } } calender += "'>"; } calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" + ( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) + ( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) + this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate, row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers "</div><table class='ui-datepicker-calendar'><thead>" + "<tr>"; thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" ); for ( dow = 0; dow < 7; dow++ ) { // days of the week day = ( dow + firstDay ) % 7; thead += "<th scope='col'" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "" ) + ">" + "<span title='" + dayNames[ day ] + "'>" + dayNamesMin[ day ] + "</span></th>"; } calender += thead + "</tr></thead><tbody>"; daysInMonth = this._getDaysInMonth( drawYear, drawMonth ); if ( drawYear === inst.selectedYear && drawMonth === inst.selectedMonth ) { inst.selectedDay = Math.min( inst.selectedDay, daysInMonth ); } leadDays = ( this._getFirstDayOfMonth( drawYear, drawMonth ) - firstDay + 7 ) % 7; curRows = Math.ceil( ( leadDays + daysInMonth ) / 7 ); // calculate the number of rows to generate numRows = ( isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows ); //If multiple months, use the higher number of rows (see #7043) this.maxRows = numRows; printDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 - leadDays ) ); for ( dRow = 0; dRow < numRows; dRow++ ) { // create date picker rows calender += "<tr>"; tbody = ( !showWeek ? "" : "<td class='ui-datepicker-week-col'>" + this._get( inst, "calculateWeek" )( printDate ) + "</td>" ); for ( dow = 0; dow < 7; dow++ ) { // create date picker days daySettings = ( beforeShowDay ? beforeShowDay.apply( ( inst.input ? inst.input[ 0 ] : null ), [ printDate ] ) : [ true, "" ] ); otherMonth = ( printDate.getMonth() !== drawMonth ); unselectable = ( otherMonth && !selectOtherMonths ) || !daySettings[ 0 ] || ( minDate && printDate < minDate ) || ( maxDate && printDate > maxDate ); tbody += "<td class='" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " ui-datepicker-week-end" : "" ) + // highlight weekends ( otherMonth ? " ui-datepicker-other-month" : "" ) + // highlight days from other months ( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key ( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ? // or defaultDate is current printedDate and defaultDate is selectedDate " " + this._dayOverClass : "" ) + // highlight selected day ( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days ( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different) ( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title ( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions ( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" + ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) + ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months "' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date printDate.setDate( printDate.getDate() + 1 ); printDate = this._daylightSavingAdjust( printDate ); } calender += tbody + "</tr>"; } drawMonth++; if ( drawMonth > 11 ) { drawMonth = 0; drawYear++; } calender += "</tbody></table>" + ( isMultiMonth ? "</div>" + ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" ); group += calender; } html += group; } html += buttonPanel; inst._keyEvent = false; return html; }, /* Generate the month and year header. */ _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate, secondary, monthNames, monthNamesShort ) { var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear, changeMonth = this._get( inst, "changeMonth" ), changeYear = this._get( inst, "changeYear" ), showMonthAfterYear = this._get( inst, "showMonthAfterYear" ), html = "<div class='ui-datepicker-title'>", monthHtml = ""; // Month selection if ( secondary || !changeMonth ) { monthHtml += "<span class='ui-datepicker-month'>" + monthNames[ drawMonth ] + "</span>"; } else { inMinYear = ( minDate && minDate.getFullYear() === drawYear ); inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear ); monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>"; for ( month = 0; month < 12; month++ ) { if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) { monthHtml += "<option value='" + month + "'" + ( month === drawMonth ? " selected='selected'" : "" ) + ">" + monthNamesShort[ month ] + "</option>"; } } monthHtml += "</select>"; } if ( !showMonthAfterYear ) { html += monthHtml + ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" ); } // Year selection if ( !inst.yearshtml ) { inst.yearshtml = ""; if ( secondary || !changeYear ) { html += "<span class='ui-datepicker-year'>" + drawYear + "</span>"; } else { // determine range of years to display years = this._get( inst, "yearRange" ).split( ":" ); thisYear = new Date().getFullYear(); determineYear = function( value ) { var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) : ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) : parseInt( value, 10 ) ) ); return ( isNaN( year ) ? thisYear : year ); }; year = determineYear( years[ 0 ] ); endYear = Math.max( year, determineYear( years[ 1 ] || "" ) ); year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year ); endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear ); inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>"; for ( ; year <= endYear; year++ ) { inst.yearshtml += "<option value='" + year + "'" + ( year === drawYear ? " selected='selected'" : "" ) + ">" + year + "</option>"; } inst.yearshtml += "</select>"; html += inst.yearshtml; inst.yearshtml = null; } } html += this._get( inst, "yearSuffix" ); if ( showMonthAfterYear ) { html += ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" ) + monthHtml; } html += "</div>"; // Close datepicker_header return html; }, /* Adjust one of the date sub-fields. */ _adjustInstDate: function( inst, offset, period ) { var year = inst.selectedYear + ( period === "Y" ? offset : 0 ), month = inst.selectedMonth + ( period === "M" ? offset : 0 ), day = Math.min( inst.selectedDay, this._getDaysInMonth( year, month ) ) + ( period === "D" ? offset : 0 ), date = this._restrictMinMax( inst, this._daylightSavingAdjust( new Date( year, month, day ) ) ); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); if ( period === "M" || period === "Y" ) { this._notifyChange( inst ); } }, /* Ensure a date is within any min/max bounds. */ _restrictMinMax: function( inst, date ) { var minDate = this._getMinMaxDate( inst, "min" ), maxDate = this._getMinMaxDate( inst, "max" ), newDate = ( minDate && date < minDate ? minDate : date ); return ( maxDate && newDate > maxDate ? maxDate : newDate ); }, /* Notify change of month/year. */ _notifyChange: function( inst ) { var onChange = this._get( inst, "onChangeMonthYear" ); if ( onChange ) { onChange.apply( ( inst.input ? inst.input[ 0 ] : null ), [ inst.selectedYear, inst.selectedMonth + 1, inst ] ); } }, /* Determine the number of months to show. */ _getNumberOfMonths: function( inst ) { var numMonths = this._get( inst, "numberOfMonths" ); return ( numMonths == null ? [ 1, 1 ] : ( typeof numMonths === "number" ? [ 1, numMonths ] : numMonths ) ); }, /* Determine the current maximum date - ensure no time components are set. */ _getMinMaxDate: function( inst, minMax ) { return this._determineDate( inst, this._get( inst, minMax + "Date" ), null ); }, /* Find the number of days in a given month. */ _getDaysInMonth: function( year, month ) { return 32 - this._daylightSavingAdjust( new Date( year, month, 32 ) ).getDate(); }, /* Find the day of the week of the first of a month. */ _getFirstDayOfMonth: function( year, month ) { return new Date( year, month, 1 ).getDay(); }, /* Determines if we should allow a "next/prev" month display change. */ _canAdjustMonth: function( inst, offset, curYear, curMonth ) { var numMonths = this._getNumberOfMonths( inst ), date = this._daylightSavingAdjust( new Date( curYear, curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) ); if ( offset < 0 ) { date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) ); } return this._isInRange( inst, date ); }, /* Is the given date in the accepted range? */ _isInRange: function( inst, date ) { var yearSplit, currentYear, minDate = this._getMinMaxDate( inst, "min" ), maxDate = this._getMinMaxDate( inst, "max" ), minYear = null, maxYear = null, years = this._get( inst, "yearRange" ); if ( years ) { yearSplit = years.split( ":" ); currentYear = new Date().getFullYear(); minYear = parseInt( yearSplit[ 0 ], 10 ); maxYear = parseInt( yearSplit[ 1 ], 10 ); if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) { minYear += currentYear; } if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) { maxYear += currentYear; } } return ( ( !minDate || date.getTime() >= minDate.getTime() ) && ( !maxDate || date.getTime() <= maxDate.getTime() ) && ( !minYear || date.getFullYear() >= minYear ) && ( !maxYear || date.getFullYear() <= maxYear ) ); }, /* Provide the configuration settings for formatting/parsing. */ _getFormatConfig: function( inst ) { var shortYearCutoff = this._get( inst, "shortYearCutoff" ); shortYearCutoff = ( typeof shortYearCutoff !== "string" ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt( shortYearCutoff, 10 ) ); return { shortYearCutoff: shortYearCutoff, dayNamesShort: this._get( inst, "dayNamesShort" ), dayNames: this._get( inst, "dayNames" ), monthNamesShort: this._get( inst, "monthNamesShort" ), monthNames: this._get( inst, "monthNames" ) }; }, /* Format the given date for display. */ _formatDate: function( inst, day, month, year ) { if ( !day ) { inst.currentDay = inst.selectedDay; inst.currentMonth = inst.selectedMonth; inst.currentYear = inst.selectedYear; } var date = ( day ? ( typeof day === "object" ? day : this._daylightSavingAdjust( new Date( year, month, day ) ) ) : this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) ); } } ); /* * Bind hover events for datepicker elements. * Done via delegate so the binding only occurs once in the lifetime of the parent div. * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker. */ function datepicker_bindHover( dpDiv ) { var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; return dpDiv.on( "mouseout", selector, function() { $( this ).removeClass( "ui-state-hover" ); if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { $( this ).removeClass( "ui-datepicker-prev-hover" ); } if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { $( this ).removeClass( "ui-datepicker-next-hover" ); } } ) .on( "mouseover", selector, datepicker_handleMouseover ); } function datepicker_handleMouseover() { if ( !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? datepicker_instActive.dpDiv.parent()[ 0 ] : datepicker_instActive.input[ 0 ] ) ) { $( this ).parents( ".ui-datepicker-calendar" ).find( "a" ).removeClass( "ui-state-hover" ); $( this ).addClass( "ui-state-hover" ); if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { $( this ).addClass( "ui-datepicker-prev-hover" ); } if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { $( this ).addClass( "ui-datepicker-next-hover" ); } } } /* jQuery extend now ignores nulls! */ function datepicker_extendRemove( target, props ) { $.extend( target, props ); for ( var name in props ) { if ( props[ name ] == null ) { target[ name ] = props[ name ]; } } return target; } /* Invoke the datepicker functionality. @param options string - a command, optionally followed by additional parameters or Object - settings for attaching new datepicker functionality @return jQuery object */ $.fn.datepicker = function( options ) { /* Verify an empty collection wasn't passed - Fixes #6976 */ if ( !this.length ) { return this; } /* Initialise the date picker. */ if ( !$.datepicker.initialized ) { $( document ).on( "mousedown", $.datepicker._checkExternalClick ); $.datepicker.initialized = true; } /* Append datepicker main container to body if not exist. */ if ( $( "#" + $.datepicker._mainDivId ).length === 0 ) { $( "body" ).append( $.datepicker.dpDiv ); } var otherArgs = Array.prototype.slice.call( arguments, 1 ); if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) { return $.datepicker[ "_" + options + "Datepicker" ]. apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); } if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) { return $.datepicker[ "_" + options + "Datepicker" ]. apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); } return this.each( function() { typeof options === "string" ? $.datepicker[ "_" + options + "Datepicker" ]. apply( $.datepicker, [ this ].concat( otherArgs ) ) : $.datepicker._attachDatepicker( this, options ); } ); }; $.datepicker = new Datepicker(); // singleton instance $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); $.datepicker.version = "1.12.1"; var widgetsDatepicker = $.datepicker; }));
/*! * OpenUI5 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/thirdparty/jquery","sap/ui/dom/isHidden"],function(t,e){"use strict";function n(e){return t(e).find("input, textarea").not("input[readonly],textarea[readonly],input[type=hidden],input[type=button],input[type=submit],input[type=reset],input[type=image],button").filter(":enabled:visible:first")[0]}function i(t){if(!t||e(t)){return null}return n(t)}return i});
import React from 'react'; import { InlineContainer, Text } from '../../../components'; import ManuscriptRefLink from './ManuscriptRefLink'; export const ManuscriptRefLinkWithAlternatives = ({ manuscript }) => ( <InlineContainer> <ManuscriptRefLink manuscript={ manuscript }/> { manuscript.alternatives && manuscript.alternatives.map((alternative, i) => ( <InlineContainer key={ `alternative${i}` }> <Text>{ ', ' }</Text> <ManuscriptRefLink manuscript={ alternative }/> </InlineContainer> ) ) } </InlineContainer> ); export default ManuscriptRefLinkWithAlternatives;
//@ts-check const gulp = require('gulp'); const ts = require('gulp-typescript'); const babel = require('gulp-babel'); const uglify = require('gulp-uglify'); const pump = require('pump'); const rename = require('gulp-rename'); const tsProject = ts.createProject('tsconfig.json'); const buildDir = './dist' gulp.task('ts', function () { return gulp.src('./src/**/*.ts') .pipe(tsProject()) .pipe(babel({ presets : ['babel-preset-env'] })) .pipe(gulp.dest(buildDir)); }); gulp.task('tsmin', (cb) => { pump([ gulp.src('./src/**/*.ts'), tsProject(), babel({ presets : ['babel-preset-env'] }), uglify(), rename({ suffix: '-min' }), gulp.dest(buildDir) ], cb ) // ) // .pipe() // .pipe() // .pipe(rename({ // suffix: "-min" // })) // .pipe(gulp.dest(buildDir)); })
import React from 'react'; import PropTypes from 'prop-types'; import { Platform, StyleSheet, Text, TouchableHighlight, View, } from 'react-native'; const ViewPropTypes = require('react-native').ViewPropTypes || ViewPropTypes; export default class DefaultLabel extends React.Component { static propTypes = { leftDiff: PropTypes.number, labelStyle: ViewPropTypes.style, labelTextStyle: ViewPropTypes.style, oneMarkerValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), twoMarkerValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), oneMarkerLeftPosition: PropTypes.number, twoMarkerLeftPosition: PropTypes.number, }; static defaultProps = { leftDiff: 0, labelStyle: {}, labelTextStyle: {}, }; render() { const { leftDiff, labelStyle, labelTextStyle, oneMarkerValue, twoMarkerValue, oneMarkerLeftPosition, twoMarkerLeftPosition, } = this.props; return ( <View style={{ position: 'relative' }}> <View style={[ styles.sliderLabel, { left: oneMarkerLeftPosition - leftDiff }, labelStyle, ]} > <Text style={[styles.sliderLabelText, labelTextStyle]}> {oneMarkerValue} </Text> </View> {twoMarkerValue !== undefined && ( <View style={[ styles.sliderLabel, { left: twoMarkerLeftPosition - leftDiff }, labelStyle, ]} > <Text style={[styles.sliderLabelText, labelTextStyle]}> {twoMarkerValue} </Text> </View> )} </View> ); } } const styles = StyleSheet.create({ sliderLabel: { position: 'absolute', top: -24, minWidth: 51, padding: 8, backgroundColor: '#fff', }, sliderLabelText: { alignItems: 'center', textAlign: 'center', fontStyle: 'normal', fontSize: 11, }, });
import config from "../../config/firebase"; import Firebase from "firebase/app"; import "firebase/auth"; import "firebase/database"; const app = Firebase.initializeApp(config); export const firebase = Firebase; export const auth = firebase.auth(); export const database = firebase.database();
import { hooks as moment, setHookCallback } from './lib/utils/hooks'; moment.version = '2.10.2'; import { min, max, isMoment, momentPrototype as fn, createUTC as utc, createUnix as unix, createLocal as local, createInvalid as invalid, createInZone as parseZone } from './lib/moment/moment'; import { defineLocale, getSetGlobalLocale as locale, getLocale as localeData, listMonths as months, listMonthsShort as monthsShort, listWeekdays as weekdays, listWeekdaysMin as weekdaysMin, listWeekdaysShort as weekdaysShort } from './lib/locale/locale'; import { isDuration, createDuration as duration, getSetRelativeTimeThreshold as relativeTimeThreshold } from './lib/duration/duration'; import { normalizeUnits } from './lib/units/units'; import isDate from './lib/utils/is-date'; setHookCallback(local); moment.fn = fn; moment.min = min; moment.max = max; moment.utc = utc; moment.unix = unix; moment.months = months; moment.isDate = isDate; moment.locale = locale; moment.invalid = invalid; moment.duration = duration; moment.isMoment = isMoment; moment.weekdays = weekdays; moment.parseZone = parseZone; moment.localeData = localeData; moment.isDuration = isDuration; moment.monthsShort = monthsShort; moment.weekdaysMin = weekdaysMin; moment.defineLocale = defineLocale; moment.weekdaysShort = weekdaysShort; moment.normalizeUnits = normalizeUnits; moment.relativeTimeThreshold = relativeTimeThreshold; export default moment;
!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(i,a){for(var u,s,c=0,l=[];c<i.length;c++)s=i[c],o[s]&&l.push.apply(l,o[s]),o[s]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u]);for(n&&n(i,a);l.length;)l.shift().call(null,e);if(a[0])return r[0]=0,e(0)};var r={},o={0x99703cc56f65:0};e.e=function(t,n){if(0===o[t])return n.call(null,e);if(void 0!==o[t])o[t].push(n);else{o[t]=[n];var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.src=e.p+window.webpackManifest[t],r.appendChild(i)}},e.m=t,e.c=r,e.p="/",e.s=o}([,function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,s){if(o(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,u,s],p=0;c=new Error(e.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(12),o=r;t.exports=o},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=n},function(t,e,n){"use strict";t.exports=n(38)},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,u,s=n(t),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)i.call(r,l)&&(s[l]=r[l]);if(o){u=o(r);for(var p=0;p<u.length;p++)a.call(r,u[p])&&(s[u[p]]=r[u[p]])}}return s}},function(t,e,n){"use strict";function r(t,e){return 1===t.nodeType&&t.getAttribute(h)===String(e)||8===t.nodeType&&t.nodeValue===" react-text: "+e+" "||8===t.nodeType&&t.nodeValue===" react-empty: "+e+" "}function o(t){for(var e;e=t._renderedComponent;)t=e;return t}function i(t,e){var n=o(t);n._hostNode=e,e[m]=n}function a(t){var e=t._hostNode;e&&(delete e[m],t._hostNode=null)}function u(t,e){if(!(t._flags&v.hasCachedChildNodes)){var n=t._renderedChildren,a=e.firstChild;t:for(var u in n)if(n.hasOwnProperty(u)){var s=n[u],c=o(s)._domID;if(0!==c){for(;null!==a;a=a.nextSibling)if(r(a,c)){i(s,a);continue t}p("32",c)}}t._flags|=v.hasCachedChildNodes}}function s(t){if(t[m])return t[m];for(var e=[];!t[m];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,r;t&&(r=t[m]);t=e.pop())n=r,e.length&&u(r,t);return n}function c(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function l(t){if(void 0===t._hostNode?p("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:p("34"),t=t._hostParent;for(;e.length;t=e.pop())u(t,t._hostNode);return t._hostNode}var p=n(3),f=n(36),d=n(162),h=(n(1),f.ID_ATTRIBUTE_NAME),v=d,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),y={getClosestInstanceFromNode:s,getInstanceFromNode:c,getNodeFromInstance:l,precacheChildNodes:u,precacheNode:i,uncacheNode:a};t.exports=y},function(t,e,n){t.exports=n(325)()},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){var r=n(144)("wks"),o=n(95),i=n(11).Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var r=null;t.exports={debugTool:r}},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=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,i,a,u],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};t.exports=r},function(t,e,n){"use strict";function r(){O.ReactReconcileTransaction&&C?void 0:l("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function i(t,e,n,o,i,a){return r(),C.batchedUpdates(t,e,n,o,i,a)}function a(t,e){return t._mountOrder-e._mountOrder}function u(t){var e=t.dirtyComponentsLength;e!==g.length?l("124",e,g.length):void 0,g.sort(a),_++;for(var n=0;n<e;n++){var r=g[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var u=r;r._currentElement.type.isReactTopLevelWrapper&&(u=r._renderedComponent),i="React update: "+u.getName(),console.time(i)}if(v.performUpdateIfNecessary(r,t.reconcileTransaction,_),i&&console.timeEnd(i),o)for(var s=0;s<o.length;s++)t.callbackQueue.enqueue(o[s],r.getPublicInstance())}}function s(t){return r(),C.isBatchingUpdates?(g.push(t),void(null==t._updateBatchNumber&&(t._updateBatchNumber=_+1))):void C.batchedUpdates(s,t)}function c(t,e){y(C.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),b.enqueue(t,e),w=!0}var l=n(3),p=n(5),f=n(160),d=n(23),h=n(165),v=n(37),m=n(66),y=n(1),g=[],_=0,b=f.getPooled(),w=!1,C=null,x={initialize:function(){this.dirtyComponentsLength=g.length},close:function(){this.dirtyComponentsLength!==g.length?(g.splice(0,this.dirtyComponentsLength),P()):g.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},S=[x,E];p(o.prototype,m,{getTransactionWrappers:function(){return S},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return m.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),d.addPoolingTo(o);var P=function(){for(;g.length||w;){if(g.length){var t=o.getPooled();t.perform(u,null,t),o.release(t)}if(w){w=!1;var e=b;b=f.getPooled(),e.notifyAll(),f.release(e)}}},T={injectReconcileTransaction:function(t){t?void 0:l("126"),O.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:l("127"),"function"!=typeof t.batchedUpdates?l("128"):void 0,"boolean"!=typeof t.isBatchingUpdates?l("129"):void 0,C=t}},O={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:s,flushBatchedUpdates:P,injection:T,asap:c};t.exports=O},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},,function(t,e,n){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];u?this[i]=u(n):"target"===i?this.target=r:this[i]=n[i]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return s?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=n(5),i=n(23),a=n(12),u=(n(2),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),s={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var n=0;n<u.length;n++)this[u[n]]=null}}),r.Interface=s,r.augmentClass=function(t,e){var n=this,r=function(){};r.prototype=n.prototype;var a=new r;o(a,t.prototype),t.prototype=a,t.prototype.constructor=t,t.Interface=o({},n.Interface,e),t.augmentClass=n.augmentClass,i.addPoolingTo(t,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),t.exports=r},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(43);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var r=n(3),o=(n(1),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t){var e=this;t instanceof e?void 0:r("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,l=o,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||l,n.poolSize||(n.poolSize=c),n.release=s,n},f={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u};t.exports=f},function(t,e,n){t.exports=!n(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(20),o=n(16),i=n(126),a=n(27),u=n(21),s="prototype",c=function(t,e,n){var l,p,f,d=t&c.F,h=t&c.G,v=t&c.S,m=t&c.P,y=t&c.B,g=t&c.W,_=h?o:o[e]||(o[e]={}),b=_[s],w=h?r:v?r[e]:(r[e]||{})[s];h&&(n=e);for(l in n)p=!d&&w&&void 0!==w[l],p&&u(_,l)||(f=p?w[l]:n[l],_[l]=h&&"function"!=typeof w[l]?n[l]:y&&p?i(f,r):g&&w[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((_.virtual||(_.virtual={}))[l]=f,t&c.R&&b&&!b[l]&&a(b,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(29),o=n(54);t.exports=n(24)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(40),o=n(128),i=n(84),a=Object.defineProperty;e.f=n(24)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(129),o=n(73);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(81)("wks"),o=n(55),i=n(20).Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(61),o=n(143);t.exports=n(42)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){"use strict";e.__esModule=!0;var n=(e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.hasBasename=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)});e.stripBasename=function(t,e){return n(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");o!==-1&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return i!==-1&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,e,n){"use strict";function r(t){if(m){var e=t.node,n=t.children;if(n.length)for(var r=0;r<n.length;r++)y(e,n[r],null);else null!=t.html?p(e,t.html):null!=t.text&&d(e,t.text)}}function o(t,e){t.parentNode.replaceChild(e.node,t),r(e)}function i(t,e){m?t.children.push(e):t.node.appendChild(e.node)}function a(t,e){m?t.html=e:p(t.node,e)}function u(t,e){m?t.text=e:d(t.node,e)}function s(){return this.node.nodeName}function c(t){return{node:t,children:[],html:null,text:null,toString:s}}var l=n(104),p=n(68),f=n(112),d=n(178),h=1,v=11,m="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),y=f(function(t,e,n){e.node.nodeType===v||e.node.nodeType===h&&"object"===e.node.nodeName.toLowerCase()&&(null==e.node.namespaceURI||e.node.namespaceURI===l.html)?(r(e),t.insertBefore(e.node,n)):(t.insertBefore(e.node,n),r(e))});c.insertTreeBefore=y,c.replaceChildWithTree=o,c.queueChild=i,c.queueHTML=a,c.queueText=u,t.exports=c},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var o=n(3),i=(n(1),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var e=i,n=t.Properties||{},a=t.DOMAttributeNamespaces||{},s=t.DOMAttributeNames||{},c=t.DOMPropertyNames||{},l=t.DOMMutationMethods||{};t.isCustomAttribute&&u._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var p in n){u.properties.hasOwnProperty(p)?o("48",p):void 0;var f=p.toLowerCase(),d=n[p],h={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:r(d,e.MUST_USE_PROPERTY),hasBooleanValue:r(d,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o("50",p),s.hasOwnProperty(p)){var v=s[p];h.attributeName=v}a.hasOwnProperty(p)&&(h.attributeNamespace=a[p]),c.hasOwnProperty(p)&&(h.propertyName=c[p]),l.hasOwnProperty(p)&&(h.mutationMethod=l[p]),u.properties[p]=h}}}),a=":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",u={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<u._isCustomAttributeFunctions.length;e++){var n=u._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},injection:i};t.exports=u},function(t,e,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(363),i=(n(13),n(2),{mountComponent:function(t,e,n,o,i,a){var u=t.mountComponent(e,n,o,i,a);return t._currentElement&&null!=t._currentElement.ref&&e.getReactMountReady().enqueue(r,t),u},getHostNode:function(t){return t.getHostNode()},unmountComponent:function(t,e){o.detachRefs(t,t._currentElement),t.unmountComponent(e)},receiveComponent:function(t,e,n,i){var a=t._currentElement;if(e!==a||i!==t._context){var u=o.shouldUpdateRefs(a,e);u&&o.detachRefs(t,a),t.receiveComponent(e,n,i),u&&t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e,n){t._updateBatchNumber===n&&t.performUpdateIfNecessary(e)}});t.exports=i},function(t,e,n){"use strict";var r=n(5),o=n(184),i=n(412),a=n(413),u=n(39),s=n(414),c=n(415),l=n(416),p=n(420),f=u.createElement,d=u.createFactory,h=u.cloneElement,v=r,m=function(t){return t},y={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:p},Component:o.Component,PureComponent:o.PureComponent,createElement:f,cloneElement:h,isValidElement:u.isValidElement,PropTypes:s,createClass:l,createFactory:d,createMixin:m,DOM:a,version:c,__spread:v};t.exports=y},function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=n(5),a=n(19),u=(n(2),n(188),Object.prototype.hasOwnProperty),s=n(186),c={key:!0,ref:!0,__self:!0,__source:!0},l=function(t,e,n,r,o,i,a){var u={$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i};return u};l.createElement=function(t,e,n){var i,s={},p=null,f=null,d=null,h=null;if(null!=e){r(e)&&(f=e.ref),o(e)&&(p=""+e.key),d=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!c.hasOwnProperty(i)&&(s[i]=e[i])}var v=arguments.length-2;if(1===v)s.children=n;else if(v>1){for(var m=Array(v),y=0;y<v;y++)m[y]=arguments[y+2];s.children=m}if(t&&t.defaultProps){var g=t.defaultProps;for(i in g)void 0===s[i]&&(s[i]=g[i])}return l(t,p,f,d,h,a.current,s)},l.createFactory=function(t){var e=l.createElement.bind(null,t);return e.type=t,e},l.cloneAndReplaceKey=function(t,e){var n=l(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},l.cloneElement=function(t,e,n){var s,p=i({},t.props),f=t.key,d=t.ref,h=t._self,v=t._source,m=t._owner;if(null!=e){r(e)&&(d=e.ref,m=a.current),o(e)&&(f=""+e.key);var y;t.type&&t.type.defaultProps&&(y=t.type.defaultProps);for(s in e)u.call(e,s)&&!c.hasOwnProperty(s)&&(void 0===e[s]&&void 0!==y?p[s]=y[s]:p[s]=e[s])}var g=arguments.length-2;if(1===g)p.children=n;else if(g>1){for(var _=Array(g),b=0;b<g;b++)_[b]=arguments[b+2];p.children=_}return l(t.type,f,d,h,v,m,p)},l.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},t.exports=l},function(t,e,n){var r=n(28);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(133),o=n(74);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){t.exports=!n(136)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e,n){var r=n(11),o=n(33),i=n(60),a=n(95)("src"),u="toString",s=Function[u],c=(""+s).split(u);n(32).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){"use strict";function r(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function o(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(e));default:return!1}}var i=n(3),a=n(105),u=n(106),s=n(110),c=n(171),l=n(172),p=(n(1),{}),f=null,d=function(t,e){t&&(u.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},h=function(t){return d(t,!0)},v=function(t){return d(t,!1)},m=function(t){return"."+t._rootNodeID},y={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?i("94",e,typeof n):void 0;var r=m(t),o=p[e]||(p[e]={});o[r]=n;var u=a.registrationNameModules[e];u&&u.didPutListener&&u.didPutListener(t,e,n)},getListener:function(t,e){var n=p[e];if(o(e,t._currentElement.type,t._currentElement.props))return null;var r=m(t);return n&&n[r]},deleteListener:function(t,e){var n=a.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=p[e];if(r){var o=m(t);delete r[o]}},deleteAllListeners:function(t){var e=m(t);for(var n in p)if(p.hasOwnProperty(n)&&p[n][e]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(t,n),delete p[n][e]}},extractEvents:function(t,e,n,r){for(var o,i=a.plugins,u=0;u<i.length;u++){var s=i[u];if(s){var l=s.extractEvents(t,e,n,r);l&&(o=c(o,l))}}return o},enqueueEvents:function(t){t&&(f=c(f,t))},processEventQueue:function(t){var e=f;f=null,t?l(e,h):l(e,v),f?i("95"):void 0,s.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};t.exports=y},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return y(t,r)}function o(t,e,n){var o=r(t,n,e);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(t._targetInst,o,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?h.getParentInstance(e):null;h.traverseTwoPhase(n,o,t)}}function u(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(t,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,t))}}function s(t){t&&t.dispatchConfig.registrationName&&u(t._targetInst,null,t)}function c(t){m(t,i)}function l(t){m(t,a)}function p(t,e,n,r){h.traverseEnterLeave(n,r,u,t,e)}function f(t){m(t,s)}var d=n(46),h=n(106),v=n(171),m=n(172),y=(n(2),d.getListener),g={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:p};t.exports=g},function(t,e){"use strict";var n={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i=n(115),a={view:function(t){if(t.view)return t.view;var e=i(t);if(e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(r,a),t.exports=r},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=n},,function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(56);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(32),i=n(33),a=n(45),u=n(58),s="prototype",c=function(t,e,n){var l,p,f,d,h=t&c.F,v=t&c.G,m=t&c.S,y=t&c.P,g=t&c.B,_=v?r:m?r[e]||(r[e]={}):(r[e]||{})[s],b=v?o:o[e]||(o[e]={}),w=b[s]||(b[s]={});v&&(n=e);for(l in n)p=!h&&_&&void 0!==_[l],f=(p?_:n)[l],d=g&&p?u(f,r):y&&"function"==typeof f?u(Function.call,f):f,_&&a(_,l,f,t&c.U),b[l]!=f&&i(b,l,d),y&&w[l]!=f&&(w[l]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(22),o=n(251),i=n(269),a=Object.defineProperty;e.f=n(42)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(422),a=r(i),u=n(427),s=r(u),c=n(34);e.createLocation=function(t,e,n,r){var i=void 0;"string"==typeof t?(i=(0,c.parsePath)(t),i.state=e):(i=o({},t),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,s.default)(t.state,e.state)}},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=d++,p[t[v]]={}),p[t[v]]}var o,i=n(5),a=n(105),u=n(355),s=n(170),c=n(387),l=n(116),p={},f=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",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",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",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),m=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=t}},setEnabled:function(t){m.ReactEventListener&&m.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],u=0;u<i.length;u++){var s=i[u];o.hasOwnProperty(s)&&o[s]||("topWheel"===s?l("wheel")?m.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):l("mousewheel")?m.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):m.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===s?l("scroll",!0)?m.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):m.ReactEventListener.trapBubbledEvent("topScroll","scroll",m.ReactEventListener.WINDOW_HANDLE):"topFocus"===s||"topBlur"===s?(l("focus",!0)?(m.ReactEventListener.trapCapturedEvent("topFocus","focus",n),m.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):l("focusin")&&(m.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),m.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):h.hasOwnProperty(s)&&m.ReactEventListener.trapBubbledEvent(s,h[s],n),o[s]=!0)}},trapBubbledEvent:function(t,e,n){return m.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return m.ReactEventListener.trapCapturedEvent(t,e,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var t=document.createEvent("MouseEvent");return null!=t&&"pageX"in t},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=m.supportsEventPageXY()),!o&&!f){var t=s.refreshScrollValues;m.ReactEventListener.monitorScrollValue(t),f=!0}}});t.exports=m},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(49),i=n(170),a=n(114),u={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+i.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+i.currentScrollTop}};o.augmentClass(r,u),t.exports=r},function(t,e,n){"use strict";var r=n(3),o=(n(1),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction; },perform:function(t,e,n,o,i,a,u,s){this.isInTransaction()?r("27"):void 0;var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=t.call(e,n,o,i,a,u,s),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var r=e[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(t){}}}},closeAll:function(t){this.isInTransaction()?void 0:r("28");for(var e=this.transactionWrappers,n=t;n<e.length;n++){var i,a=e[n],u=this.wrapperInitData[n];try{i=!0,u!==o&&a.close&&a.close.call(this,u),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(t){}}}this.wrapperInitData.length=0}};t.exports=i},function(t,e){"use strict";function n(t){var e=""+t,n=o.exec(e);if(!n)return e;var r,i="",a=0,u=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}u!==a&&(i+=e.substring(u,a)),u=a+1,i+=r}return u!==a?i+e.substring(u,a):i}function r(t){return"boolean"==typeof t||"number"==typeof t?""+t:n(t)}var o=/["'&<>]/;t.exports=r},function(t,e,n){"use strict";var r,o=n(8),i=n(104),a=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(112),c=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+e+"</svg>";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),l=null}t.exports=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.NavLink=e.MemoryRouter=e.Link=e.HashRouter=e.BrowserRouter=void 0;var o=n(392),i=r(o),a=n(393),u=r(a),s=n(181),c=r(s),l=n(394),p=r(l),f=n(395),d=r(f),h=n(396),v=r(h),m=n(397),y=r(m),g=n(182),_=r(g),b=n(119),w=r(b),C=n(398),x=r(C),E=n(399),S=r(E),P=n(400),T=r(P),O=n(401),k=r(O);e.BrowserRouter=i.default,e.HashRouter=u.default,e.Link=c.default,e.MemoryRouter=p.default,e.NavLink=d.default,e.Prompt=v.default,e.Redirect=y.default,e.Route=_.default,e.Router=w.default,e.StaticRouter=x.default,e.Switch=S.default,e.matchPath=T.default,e.withRouter=k.default},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(205),i=r(o),a=n(203),u=r(a),s=n(124),c=r(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(124),i=r(o);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var r=n(40),o=n(228),i=n(74),a=n(80)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(127)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(222).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(29).f,o=n(21),i=n(31)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(81)("keys"),o=n(55);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(20),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(73);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(28);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(20),o=n(16),i=n(76),a=n(86),u=n(29).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(31)},function(t,e,n){var r=n(57),o=n(9)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(43),o=n(11).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(56);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(61).f,o=n(60),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(144)("keys"),o=n(95);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(253),o=n(88);t.exports=function(t){return r(o(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=!("undefined"==typeof window||!window.document||!window.document.createElement),t.exports=e.default},function(t,e){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(10),u=r(a),s=n(14),c=r(s),l=n(63),p=n(34),f=n(99),d=r(f),h=n(152),v="popstate",m="hashchange",y=function(){try{return window.history.state||{}}catch(t){return{}}},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),a=t.forceRefresh,s=void 0!==a&&a,f=t.getUserConfirmation,g=void 0===f?h.getConfirmation:f,_=t.keyLength,b=void 0===_?6:_,w=t.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(t.basename)):"",C=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname,a=o.search,s=o.hash,c=i+a+s;return(0,u.default)(!w||(0,p.hasBasename)(c,w),'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 "'+w+'".'),w&&(c=(0,p.stripBasename)(c,w)),(0,l.createLocation)(c,r,n)},x=function(){return Math.random().toString(36).substr(2,b)},E=(0,d.default)(),S=function(t){i(q,t),q.length=e.length,E.notifyListeners(q.location,q.action)},P=function(t){(0,h.isExtraneousPopstateEvent)(t)||k(C(t.state))},T=function(){k(C(y()))},O=!1,k=function(t){if(O)O=!1,S();else{var e="POP";E.confirmTransitionTo(t,e,g,function(n){n?S({action:e,location:t}):M(t)})}},M=function(t){var e=q.location,n=N.indexOf(e.key);n===-1&&(n=0);var r=N.indexOf(t.key);r===-1&&(r=0);var o=n-r;o&&(O=!0,j(o))},R=C(y()),N=[R.key],A=function(t){return w+(0,p.createPath)(t)},I=function(t,r){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=(0,l.createLocation)(t,r,x(),q.location);E.confirmTransitionTo(a,i,g,function(t){if(t){var r=A(a),o=a.key,c=a.state;if(n)if(e.pushState({key:o,state:c},null,r),s)window.location.href=r;else{var l=N.indexOf(q.location.key),p=N.slice(0,l===-1?0:l+1);p.push(a.key),N=p,S({action:i,location:a})}else(0,u.default)(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},L=function(t,r){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=(0,l.createLocation)(t,r,x(),q.location);E.confirmTransitionTo(a,i,g,function(t){if(t){var r=A(a),o=a.key,c=a.state;if(n)if(e.replaceState({key:o,state:c},null,r),s)window.location.replace(r);else{var l=N.indexOf(q.location.key);l!==-1&&(N[l]=a.key),S({action:i,location:a})}else(0,u.default)(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},j=function(t){e.go(t)},D=function(){return j(-1)},U=function(){return j(1)},F=0,W=function(t){F+=t,1===F?((0,h.addEventListener)(window,v,P),r&&(0,h.addEventListener)(window,m,T)):0===F&&((0,h.removeEventListener)(window,v,P),r&&(0,h.removeEventListener)(window,m,T))},B=!1,H=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=E.setPrompt(t);return B||(W(1),B=!0),function(){return B&&(B=!1,W(-1)),e()}},V=function(t){var e=E.appendListener(t);return W(1),function(){W(-1),e()}},q={length:e.length,action:"POP",location:R,createHref:A,push:I,replace:L,go:j,goBack:D,goForward:U,block:H,listen:V};return q};e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(10),i=r(o),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(a!==!1)}else o(!0)},r=[],o=function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:o,notifyListeners:a}};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.createPath=e.parsePath=e.locationsAreEqual=e.createLocation=e.createMemoryHistory=e.createHashHistory=e.createBrowserHistory=void 0;var o=n(63);Object.defineProperty(e,"createLocation",{enumerable:!0,get:function(){return o.createLocation}}),Object.defineProperty(e,"locationsAreEqual",{enumerable:!0,get:function(){return o.locationsAreEqual}});var i=n(34);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return i.parsePath}}),Object.defineProperty(e,"createPath",{enumerable:!0,get:function(){return i.createPath}});var a=n(98),u=r(a),s=n(153),c=r(s),l=n(154),p=r(l);e.createBrowserHistory=u.default,e.createHashHistory=c.default,e.createMemoryHistory=p.default},,,function(t,e,n){"use strict";function r(t,e){return Array.isArray(e)&&(e=e[1]),e?e.nextSibling:t.firstChild}function o(t,e,n){l.insertTreeBefore(t,e,n)}function i(t,e,n){Array.isArray(e)?u(t,e[0],e[1],n):v(t,e,n)}function a(t,e){if(Array.isArray(e)){var n=e[1];e=e[0],s(t,e,n),t.removeChild(n)}t.removeChild(e)}function u(t,e,n,r){for(var o=e;;){var i=o.nextSibling;if(v(t,o,r),o===n)break;o=i}}function s(t,e,n){for(;;){var r=e.nextSibling;if(r===n)break;t.removeChild(r)}}function c(t,e,n){var r=t.parentNode,o=t.nextSibling;o===e?n&&v(r,document.createTextNode(n),o):n?(h(o,n),s(r,o,e)):s(r,t,e)}var l=n(35),p=n(332),f=(n(6),n(13),n(112)),d=n(68),h=n(178),v=f(function(t,e,n){t.insertBefore(e,n)}),m=p.dangerouslyReplaceNodeWithMarkup,y={dangerouslyReplaceNodeWithMarkup:m,replaceDelimitedText:c,processUpdates:function(t,e){for(var n=0;n<e.length;n++){var u=e[n];switch(u.type){case"INSERT_MARKUP":o(t,u.content,r(t,u.afterNode));break;case"MOVE_EXISTING":i(t,u.fromNode,r(t,u.afterNode));break;case"SET_MARKUP":d(t,u.content);break;case"TEXT_CONTENT":h(t,u.content);break;case"REMOVE_NODE":a(t,u.fromNode)}}}};t.exports=y},function(t,e){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=n},function(t,e,n){"use strict";function r(){if(u)for(var t in s){var e=s[t],n=u.indexOf(t);if(n>-1?void 0:a("96",t),!c.plugins[n]){e.extractEvents?void 0:a("97",t),c.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a("98",i,t)}}}function o(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){c.registrationNameModules[t]?a("100",t):void 0,c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(3),u=(n(1),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){u?a("101"):void 0,u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]?a("102",n):void 0,s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var t in s)s.hasOwnProperty(t)&&delete s[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=y.getNodeFromInstance(r),e?v.invokeGuardedCallbackWithCatch(o,n,t):v.invokeGuardedCallback(o,n,t),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!t.isPropagationStopped();o++)a(t,e,n[o],r[o]);else n&&a(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null}function s(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e)){for(var r=0;r<e.length&&!t.isPropagationStopped();r++)if(e[r](t,n[r]))return n[r]}else if(e&&e(t,n))return n;return null}function c(t){var e=s(t);return t._dispatchInstances=null,t._dispatchListeners=null,e}function l(t){var e=t._dispatchListeners,n=t._dispatchInstances;Array.isArray(e)?h("103"):void 0,t.currentTarget=e?y.getNodeFromInstance(n):null;var r=e?e(t):null;return t.currentTarget=null,t._dispatchListeners=null,t._dispatchInstances=null,r}function p(t){return!!t._dispatchListeners}var f,d,h=n(3),v=n(110),m=(n(1),n(2),{injectComponentTree:function(t){f=t},injectTreeTraversal:function(t){d=t}}),y={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:c,hasDispatches:p,getInstanceFromNode:function(t){return f.getInstanceFromNode(t)},getNodeFromInstance:function(t){return f.getNodeFromInstance(t)},isAncestor:function(t,e){return d.isAncestor(t,e)},getLowestCommonAncestor:function(t,e){return d.getLowestCommonAncestor(t,e)},getParentInstance:function(t){return d.getParentInstance(t)},traverseTwoPhase:function(t,e,n){return d.traverseTwoPhase(t,e,n)},traverseEnterLeave:function(t,e,n,r,o){return d.traverseEnterLeave(t,e,n,r,o)},injection:m};t.exports=y},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r}function r(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}var o={escape:n,unescape:r};t.exports=o},function(t,e,n){"use strict";function r(t){null!=t.checkedLink&&null!=t.valueLink?u("87"):void 0}function o(t){r(t),null!=t.value||null!=t.onChange?u("88"):void 0}function i(t){r(t),null!=t.checked||null!=t.onChange?u("89"):void 0}function a(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var u=n(3),s=n(361),c=n(156),l=n(38),p=c(l.isValidElement),f=(n(1),n(2),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(t,e,n){return!t[e]||f[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e,n){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:p.func},h={},v={checkPropTypes:function(t,e,n){for(var r in d){if(d.hasOwnProperty(r))var o=d[r](e,r,t,"prop",null,s);if(o instanceof Error&&!(o.message in h)){h[o.message]=!0;a(n)}}},getValue:function(t){return t.valueLink?(o(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(i(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(o(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(i(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=v},function(t,e,n){"use strict";var r=n(3),o=(n(1),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){o?r("104"):void 0,i.replaceNodeWithMarkup=t.replaceNodeWithMarkup,i.processChildrenUpdates=t.processChildrenUpdates,o=!0}}};t.exports=i},function(t,e,n){"use strict";function r(t,e,n){try{e(n)}catch(t){null===o&&(o=t)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var t=o;throw o=null,t}}};t.exports=i},function(t,e,n){"use strict";function r(t){s.enqueueUpdate(t)}function o(t){var e=typeof t;if("object"!==e)return e;var n=t.constructor&&t.constructor.name||e,r=Object.keys(t);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=u.get(t);if(!n){return null}return n}var a=n(3),u=(n(19),n(48)),s=(n(13),n(15)),c=(n(1),n(2),{isMounted:function(t){var e=u.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){c.validateCallback(e,n);var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void r(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e,n){var o=i(t,"replaceState");o&&(o._pendingStateQueue=[e],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,o(t)):void 0}});t.exports=c},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=n},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(8);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";var r=(n(5),n(12)),o=(n(2),r);t.exports=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(120),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(10),c=r(s),l=n(14),p=r(l),f=n(4),d=r(f),h=n(7),v=r(h),m=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.state={match:r.computeMatch(r.props.history.location.pathname)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,r=e.history;(0,p.default)(null==n||1===d.default.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){(0,c.default)(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?d.default.Children.only(t):null},e}(d.default.Component);m.propTypes={history:v.default.object.isRequired,children:v.default.node},m.contextTypes={router:v.default.object},m.childContextTypes={router:v.default.object.isRequired},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(407),i=r(o),a={},u=1e4,s=0,c=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=a[n]||(a[n]={});if(r[t])return r[t];var o=[],c=(0,i.default)(t,o,e),l={re:c,keys:o};return s<u&&(r[t]=l,s++),l},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,u=n.strict,s=void 0!==u&&u,l=n.sensitive,p=void 0!==l&&l,f=c(o,{end:a,strict:s,sensitive:p}),d=f.re,h=f.keys,v=d.exec(t);if(!v)return null;var m=v[0],y=v.slice(1),g=t===m;return a&&!g?null:{path:o,url:"/"===o&&""===m?"/":m,isExact:g,params:h.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}};e.default=l},,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(207),i=r(o),a=n(206),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(i.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(218);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(28),o=n(20).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(24)&&!n(26)(function(){return 7!=Object.defineProperty(n(127)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(125);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(76),o=n(25),i=n(134),a=n(27),u=n(75),s=n(224),c=n(79),l=n(230),p=n(31)("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,y,g,_,b){s(n,e,y);var w,C,x,E=function(t){if(!f&&t in O)return O[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",P=g==v,T=!1,O=t.prototype,k=O[p]||O[d]||g&&O[g],M=k||E(g),R=g?P?E("entries"):M:void 0,N="Array"==e?O.entries||k:k;if(N&&(x=l(N.call(new t)),x!==Object.prototype&&x.next&&(c(x,S,!0),r||"function"==typeof x[p]||a(x,p,m))),P&&k&&k.name!==v&&(T=!0,M=function(){return k.call(this)}),r&&!b||!f&&!T&&O[p]||a(O,p,M),u[e]=M,u[S]=m,g)if(w={values:P?M:E(v),keys:_?M:E(h),entries:R},b)for(C in w)C in O||i(O,C,w[C]);else o(o.P+o.F*(f||T),e,w);return w}},function(t,e,n){var r=n(53),o=n(54),i=n(30),a=n(84),u=n(21),s=n(128),c=Object.getOwnPropertyDescriptor;e.f=n(24)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(133),o=n(74).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(21),o=n(30),i=n(220)(!1),a=n(80)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){t.exports=n(27)},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(11).document;t.exports=r&&r.documentElement},function(t,e,n){"use strict";var r=n(139),o=n(59),i=n(45),a=n(33),u=n(44),s=n(256),c=n(91),l=n(262),p=n(9)("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,y,g,_,b){s(n,e,y);var w,C,x,E=function(t){if(!f&&t in O)return O[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",P=g==v,T=!1,O=t.prototype,k=O[p]||O[d]||g&&O[g],M=k||E(g),R=g?P?E("entries"):M:void 0,N="Array"==e?O.entries||k:k;if(N&&(x=l(N.call(new t)),x!==Object.prototype&&x.next&&(c(x,S,!0),r||"function"==typeof x[p]||a(x,p,m))),P&&k&&k.name!==v&&(T=!0,M=function(){return k.call(this)}),r&&!b||!f&&!T&&O[p]||a(O,p,M),u[e]=M,u[S]=m,g)if(w={values:P?M:E(v),keys:_?M:E(h),entries:R},b)for(C in w)C in O||i(O,C,w[C]);else o(o.P+o.F*(f||T),e,w);return w}},function(t,e){t.exports=!1},function(t,e,n){var r=n(263),o=n(135);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(22),o=n(43),i=n(90);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(11),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(22),o=n(56),i=n(9)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(58),u=n(252),s=n(137),c=n(89),l=n(11),p=l.process,f=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},g="onreadystatechange",_=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){_.call(t.data)};f&&d||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete y[t]},"process"==n(57)(p)?r=function(t){p.nextTick(a(_,t,1))}:v&&v.now?r=function(t){ v.now(a(_,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r=g in c("script")?function(t){s.appendChild(c("script"))[g]=function(){s.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:f,clear:d}},function(t,e,n){var r=n(93),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){"use strict";function n(t){return t===t.window?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(12),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){"use strict";function n(t){if(t=t||("undefined"!=typeof document?document:void 0),"undefined"==typeof t)return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(10),a=r(i),u=n(14),s=r(u),c=n(63),l=n(34),p=n(99),f=r(p),d=n(152),h="hashchange",v={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,l.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:l.stripLeadingSlash,decodePath:l.addLeadingSlash},slash:{encodePath:l.addLeadingSlash,decodePath:l.addLeadingSlash}},m=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},y=function(t){return window.location.hash=t},g=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(d.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=t.getUserConfirmation,i=void 0===r?d.getConfirmation:r,u=t.hashType,p=void 0===u?"slash":u,_=t.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(t.basename)):"",b=v[p],w=b.encodePath,C=b.decodePath,x=function(){var t=C(m());return(0,a.default)(!_||(0,l.hasBasename)(t,_),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+_+'".'),_&&(t=(0,l.stripBasename)(t,_)),(0,c.createLocation)(t)},E=(0,f.default)(),S=function(t){o(K,t),K.length=e.length,E.notifyListeners(K.location,K.action)},P=!1,T=null,O=function(){var t=m(),e=w(t);if(t!==e)g(e);else{var n=x(),r=K.location;if(!P&&(0,c.locationsAreEqual)(r,n))return;if(T===(0,l.createPath)(n))return;T=null,k(n)}},k=function(t){if(P)P=!1,S();else{var e="POP";E.confirmTransitionTo(t,e,i,function(n){n?S({action:e,location:t}):M(t)})}},M=function(t){var e=K.location,n=I.lastIndexOf((0,l.createPath)(e));n===-1&&(n=0);var r=I.lastIndexOf((0,l.createPath)(t));r===-1&&(r=0);var o=n-r;o&&(P=!0,U(o))},R=m(),N=w(R);R!==N&&g(N);var A=x(),I=[(0,l.createPath)(A)],L=function(t){return"#"+w(_+(0,l.createPath)(t))},j=function(t,e){(0,a.default)(void 0===e,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,c.createLocation)(t,void 0,void 0,K.location);E.confirmTransitionTo(r,n,i,function(t){if(t){var e=(0,l.createPath)(r),o=w(_+e),i=m()!==o;if(i){T=e,y(o);var u=I.lastIndexOf((0,l.createPath)(K.location)),s=I.slice(0,u===-1?0:u+1);s.push(e),I=s,S({action:n,location:r})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},D=function(t,e){(0,a.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,c.createLocation)(t,void 0,void 0,K.location);E.confirmTransitionTo(r,n,i,function(t){if(t){var e=(0,l.createPath)(r),o=w(_+e),i=m()!==o;i&&(T=e,g(o));var a=I.indexOf((0,l.createPath)(K.location));a!==-1&&(I[a]=e),S({action:n,location:r})}})},U=function(t){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},F=function(){return U(-1)},W=function(){return U(1)},B=0,H=function(t){B+=t,1===B?(0,d.addEventListener)(window,h,O):0===B&&(0,d.removeEventListener)(window,h,O)},V=!1,q=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=E.setPrompt(t);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),e()}},Y=function(t){var e=E.appendListener(t);return H(1),function(){H(-1),e()}},K={length:e.length,action:"POP",location:A,createHref:L,push:j,replace:D,go:U,goBack:F,goForward:W,block:q,listen:Y};return K};e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(10),u=r(a),s=n(34),c=n(63),l=n(99),p=r(l),f=function(t,e,n){return Math.min(Math.max(t,e),n)},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,a=t.initialIndex,l=void 0===a?0:a,d=t.keyLength,h=void 0===d?6:d,v=(0,p.default)(),m=function(t){i(k,t),k.length=k.entries.length,v.notifyListeners(k.location,k.action)},y=function(){return Math.random().toString(36).substr(2,h)},g=f(l,0,r.length-1),_=r.map(function(t){return"string"==typeof t?(0,c.createLocation)(t,void 0,y()):(0,c.createLocation)(t,void 0,t.key||y())}),b=s.createPath,w=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r="PUSH",i=(0,c.createLocation)(t,n,y(),k.location);v.confirmTransitionTo(i,r,e,function(t){if(t){var e=k.index,n=e+1,o=k.entries.slice(0);o.length>n?o.splice(n,o.length-n,i):o.push(i),m({action:r,location:i,index:n,entries:o})}})},C=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r="REPLACE",i=(0,c.createLocation)(t,n,y(),k.location);v.confirmTransitionTo(i,r,e,function(t){t&&(k.entries[k.index]=i,m({action:r,location:i}))})},x=function(t){var n=f(k.index+t,0,k.entries.length-1),r="POP",o=k.entries[n];v.confirmTransitionTo(o,r,e,function(t){t?m({action:r,location:o,index:n}):m()})},E=function(){return x(-1)},S=function(){return x(1)},P=function(t){var e=k.index+t;return e>=0&&e<k.entries.length},T=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v.setPrompt(t)},O=function(t){return v.appendListener(t)},k={length:_.length,action:"POP",location:_[g],index:g,entries:_,createHref:b,push:w,replace:C,go:x,goBack:E,goForward:S,canGo:P,block:T,listen:O};return k};e.default=d},,function(t,e,n){"use strict";var r=n(326);t.exports=function(t){var e=!1;return r(t,e)}},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";t.exports=n(340)},function(t,e){"use strict";function n(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var r={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},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(t){o.forEach(function(e){r[n(e,t)]=r[t]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};t.exports=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(3),i=n(23),a=(n(1),function(){function t(e){r(this,t),this._callbacks=null,this._contexts=null,this._arg=e}return t.prototype.enqueue=function(t,e){this._callbacks=this._callbacks||[],this._callbacks.push(t),this._contexts=this._contexts||[],this._contexts.push(e)},t.prototype.notifyAll=function(){var t=this._callbacks,e=this._contexts,n=this._arg;if(t&&e){t.length!==e.length?o("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<t.length;r++)t[r].call(e[r],n);t.length=0,e.length=0}},t.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},t.prototype.rollback=function(t){this._callbacks&&this._contexts&&(this._callbacks.length=t,this._contexts.length=t)},t.prototype.reset=function(){this._callbacks=null,this._contexts=null},t.prototype.destructor=function(){this.reset()},t}());t.exports=i.addPoolingTo(a)},function(t,e,n){"use strict";function r(t){return!!c.hasOwnProperty(t)||!s.hasOwnProperty(t)&&(u.test(t)?(c[t]=!0,!0):(s[t]=!0,!1))}function o(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&e===!1}var i=n(36),a=(n(6),n(13),n(388)),u=(n(2),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),s={},c={},l={createMarkupForID:function(t){return i.ID_ATTRIBUTE_NAME+"="+a(t)},setAttributeForID:function(t,e){t.setAttribute(i.ID_ATTRIBUTE_NAME,e)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(t){t.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(t,e){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){if(o(n,e))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&e===!0?r+'=""':r+"="+a(e)}return i.isCustomAttribute(t)?null==e?"":t+"="+a(e):null},createMarkupForCustomAttribute:function(t,e){return r(t)&&null!=e?t+"="+a(e):""},setValueForProperty:function(t,e,n){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){var a=r.mutationMethod;if(a)a(t,n);else{if(o(r,n))return void this.deleteValueForProperty(t,e);if(r.mustUseProperty)t[r.propertyName]=n;else{var u=r.attributeName,s=r.attributeNamespace;s?t.setAttributeNS(s,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?t.setAttribute(u,""):t.setAttribute(u,""+n)}}}else if(i.isCustomAttribute(e))return void l.setValueForAttribute(t,e,n)},setValueForAttribute:function(t,e,n){if(r(e)){null==n?t.removeAttribute(e):t.setAttribute(e,""+n)}},deleteValueForAttribute:function(t,e){t.removeAttribute(e)},deleteValueForProperty:function(t,e){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){var r=n.mutationMethod;if(r)r(t,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?t[o]=!1:t[o]=""}else t.removeAttribute(n.attributeName)}else i.isCustomAttribute(e)&&t.removeAttribute(e)}};t.exports=l},function(t,e){"use strict";var n={hasCachedChildNodes:1};t.exports=n},function(t,e,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=u.getValue(t);null!=e&&o(this,Boolean(t.multiple),e)}}function o(t,e,n){var r,o,i=s.getNodeFromInstance(t).options;if(e){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),c.asap(r,this),n}var a=n(5),u=n(108),s=n(6),c=n(15),l=(n(2),!1),p={getHostProps:function(t,e){return a({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,e){var n=u.getValue(e);t._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:e.defaultValue,listeners:null,onChange:i.bind(t),wasMultiple:Boolean(e.multiple)},void 0===e.value||void 0===e.defaultValue||l||(l=!0)},getSelectValueContext:function(t){return t._wrapperState.initialValue},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var n=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var r=u.getValue(e);null!=r?(t._wrapperState.pendingUpdate=!1,o(t,Boolean(e.multiple),r)):n!==Boolean(e.multiple)&&(null!=e.defaultValue?o(t,Boolean(e.multiple),e.defaultValue):o(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=p},function(t,e){"use strict";var n,r={injectEmptyComponentFactory:function(t){n=t}},o={create:function(t){return n(t)}};o.injection=r,t.exports=o},function(t,e){"use strict";var n={logTopLevelRenders:!1};t.exports=n},function(t,e,n){"use strict";function r(t){return u?void 0:a("111",t.type),new u(t)}function o(t){return new s(t)}function i(t){return t instanceof s}var a=n(3),u=(n(1),null),s=null,c={injectGenericComponentClass:function(t){u=t},injectTextComponentClass:function(t){s=t}},l={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:c};t.exports=l},function(t,e,n){"use strict";function r(t){return i(document.documentElement,t)}var o=n(348),i=n(292),a=n(150),u=n(151),s={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=u();return{focusedElem:t,selectionRange:s.hasSelectionCapabilities(t)?s.getSelection(t):null}},restoreSelection:function(t){var e=u(),n=t.focusedElem,o=t.selectionRange;e!==n&&r(n)&&(s.hasSelectionCapabilities(n)&&s.setSelection(n,o),a(n))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=o.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,r=e.end;if(void 0===r&&(r=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(r,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var i=t.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(t,e)}};t.exports=s},function(t,e,n){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r))return r;return t.length===e.length?-1:n}function o(t){return t?t.nodeType===I?t.documentElement:t.firstChild:null}function i(t){return t.getAttribute&&t.getAttribute(R)||""}function a(t,e,n,r,o){var i;if(w.logTopLevelRenders){var a=t._currentElement.props.child,u=a.type;i="React mount: "+("string"==typeof u?u:u.displayName||u.name),console.time(i)}var s=E.mountComponent(t,n,null,_(t,e),o,0);i&&console.timeEnd(i),t._renderedComponent._topLevelWrapper=t,F._mountImageIntoNode(s,e,t,r,n)}function u(t,e,n,r){var o=P.ReactReconcileTransaction.getPooled(!n&&b.useCreateElement);o.perform(a,null,t,e,o,n,r),P.ReactReconcileTransaction.release(o)}function s(t,e,n){for(E.unmountComponent(t,n),e.nodeType===I&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function c(t){var e=o(t);if(e){var n=g.getInstanceFromNode(e);return!(!n||!n._hostParent)}}function l(t){return!(!t||t.nodeType!==A&&t.nodeType!==I&&t.nodeType!==L)}function p(t){var e=o(t),n=e&&g.getInstanceFromNode(e);return n&&!n._hostParent?n:null}function f(t){var e=p(t);return e?e._hostContainerInfo._topLevelWrapper:null}var d=n(3),h=n(35),v=n(36),m=n(38),y=n(64),g=(n(19),n(6)),_=n(342),b=n(344),w=n(165),C=n(48),x=(n(13),n(358)),E=n(37),S=n(111),P=n(15),T=n(62),O=n(176),k=(n(1),n(68)),M=n(117),R=(n(2),v.ID_ATTRIBUTE_NAME),N=v.ROOT_ATTRIBUTE_NAME,A=1,I=9,L=11,j={},D=1,U=function(){this.rootID=D++};U.prototype.isReactComponent={},U.prototype.render=function(){return this.props.child},U.isReactTopLevelWrapper=!0;var F={TopLevelWrapper:U,_instancesByReactRootID:j,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,n,r,o){return F.scrollMonitor(r,function(){S.enqueueElementInternal(t,e,n),o&&S.enqueueCallbackInternal(t,o)}),t},_renderNewRootComponent:function(t,e,n,r){l(e)?void 0:d("37"),y.ensureScrollValueMonitoring();var o=O(t,!1);P.batchedUpdates(u,o,e,n,r);var i=o._instance.rootID;return j[i]=o,o},renderSubtreeIntoContainer:function(t,e,n,r){return null!=t&&C.has(t)?void 0:d("38"),F._renderSubtreeIntoContainer(t,e,n,r)},_renderSubtreeIntoContainer:function(t,e,n,r){S.validateCallback(r,"ReactDOM.render"),m.isValidElement(e)?void 0:d("39","string"==typeof e?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=m.createElement(U,{child:e});if(t){var s=C.get(t);a=s._processChildContext(s._context)}else a=T;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(M(h,e)){var v=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(v)};return F._updateRootComponent(l,u,a,n,y),v}F.unmountComponentAtNode(n)}var g=o(n),_=g&&!!i(g),b=c(n),w=_&&!l&&!b,x=F._renderNewRootComponent(u,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(x),x},render:function(t,e,n){return F._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){l(t)?void 0:d("40");var e=f(t);if(!e){c(t),1===t.nodeType&&t.hasAttribute(N);return!1}return delete j[e._instance.rootID],P.batchedUpdates(s,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(l(e)?void 0:d("41"),i){var u=o(e);if(x.canReuseMarkup(t,u))return void g.precacheNode(n,u);var s=u.getAttribute(x.CHECKSUM_ATTR_NAME);u.removeAttribute(x.CHECKSUM_ATTR_NAME);var c=u.outerHTML;u.setAttribute(x.CHECKSUM_ATTR_NAME,s);var p=t,f=r(p,c),v=" (client) "+p.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);e.nodeType===I?d("42",v):void 0}if(e.nodeType===I?d("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);h.insertTreeBefore(e,t,null)}else k(e,t),g.precacheNode(n,e.firstChild)}};t.exports=F},function(t,e,n){"use strict";var r=n(3),o=n(38),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?i.EMPTY:o.isValidElement(t)?"function"==typeof t.type?i.COMPOSITE:i.HOST:void r("26",t)}});t.exports=i},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){"use strict";function r(t,e){return null==e?o("30"):void 0,null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=n(3);n(1);t.exports=r},function(t,e){"use strict";function n(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=n},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(169);t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(8),i=null;t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.type,n=t.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===e||"radio"===e)}function o(t){return t._wrapperState.valueTracker}function i(t,e){t._wrapperState.valueTracker=e}function a(t){t._wrapperState.valueTracker=null}function u(t){var e;return t&&(e=r(t)?""+t.checked:t.value),e}var s=n(6),c={_getTrackerFromNode:function(t){return o(s.getInstanceFromNode(t))},track:function(t){if(!o(t)){var e=s.getNodeFromInstance(t),n=r(e)?"checked":"value",u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),c=""+e[n];e.hasOwnProperty(n)||"function"!=typeof u.get||"function"!=typeof u.set||(Object.defineProperty(e,n,{enumerable:u.enumerable,configurable:!0,get:function(){return u.get.call(this)},set:function(t){c=""+t,u.set.call(this,t)}}),i(t,{getValue:function(){return c},setValue:function(t){c=""+t},stopTracking:function(){a(t),delete e[n]}}))}},updateValueIfChanged:function(t){if(!t)return!1;var e=o(t);if(!e)return c.track(t),!0;var n=e.getValue(),r=u(s.getNodeFromInstance(t));return r!==n&&(e.setValue(r),!0)},stopTracking:function(t){var e=o(t);e&&e.stopTracking()}};t.exports=c},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,e){var n;if(null===t||t===!1)n=c.create(i);else if("object"==typeof t){var u=t,s=u.type;if("function"!=typeof s&&"string"!=typeof s){var f="";f+=r(u._owner),a("130",null==s?s:typeof s,f)}"string"==typeof u.type?n=l.createInternalComponent(u):o(u.type)?(n=new u.type(u),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(u)}else"string"==typeof t||"number"==typeof t?n=l.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(3),u=n(5),s=n(339),c=n(164),l=n(166),p=(n(418),n(1),n(2),function(t){this.construct(t)});u(p.prototype,s,{_instantiateReactComponent:i}),t.exports=i},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!r[t.type]:"textarea"===e}var r={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};t.exports=n},function(t,e,n){"use strict";var r=n(8),o=n(67),i=n(68),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,o(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,n,i){var f=typeof t;if("undefined"!==f&&"boolean"!==f||(t=null),null===t||"string"===f||"number"===f||"object"===f&&t.$$typeof===u)return n(i,t,""===e?l+r(t,0):e),1;var d,h,v=0,m=""===e?l:e+p;if(Array.isArray(t))for(var y=0;y<t.length;y++)d=t[y],h=m+r(d,y),v+=o(d,h,n,i);else{var g=s(t);if(g){var _,b=g.call(t);if(g!==t.entries)for(var w=0;!(_=b.next()).done;)d=_.value,h=m+r(d,w++),v+=o(d,h,n,i);else for(;!(_=b.next()).done;){var C=_.value;C&&(d=C[1],h=m+c.escape(C[0])+p+r(d,0),v+=o(d,h,n,i))}}else if("object"===f){var x="",E=String(t);a("31","[object Object]"===E?"object with keys {"+Object.keys(t).join(", ")+"}":E,x)}}return v}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=n(3),u=(n(19),n(354)),s=n(385),c=(n(1),n(107)),l=(n(2),"."),p=":";t.exports=i},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(4),l=r(c),p=n(7),f=r(p),d=n(14),h=r(d),v=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},m=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=a(this,t.call.apply(t,[this].concat(s))),r.handleClick=function(t){if(r.props.onClick&&r.props.onClick(t),!t.defaultPrevented&&0===t.button&&!r.props.target&&!v(t)){t.preventDefault();var e=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?e.replace(i):e.push(i)}},o=n,a(r,o)}return u(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=t.innerRef,r=o(t,["replace","to","innerRef"]);(0,h.default)(this.context.router,"You should not use <Link> outside a <Router>");var i=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return l.default.createElement("a",s({},r,{onClick:this.handleClick,href:i,ref:n}))},e}(l.default.Component);m.propTypes={onClick:f.default.func,target:f.default.string,replace:f.default.bool,to:f.default.oneOfType([f.default.string,f.default.object]).isRequired,innerRef:f.default.oneOfType([f.default.string,f.default.func])},m.defaultProps={replace:!1},m.contextTypes={router:f.default.shape({history:f.default.shape({push:f.default.func.isRequired,replace:f.default.func.isRequired,createHref:f.default.func.isRequired}).isRequired}).isRequired},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(183),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(10),c=r(s),l=n(14),p=r(l),f=n(4),d=r(f),h=n(7),v=r(h),m=n(121),y=r(m),g=function(t){return 0===d.default.Children.count(t)},_=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.state={match:r.computeMatch(r.props,r.context.router)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,r=t.location,o=t.path,i=t.strict,a=t.exact,u=t.sensitive;if(n)return n;(0,p.default)(e,"You should not use <Route> or withRouter() outside a <Router>");var s=e.route,c=(r||s.location).pathname;return o?(0,y.default)(c,{path:o,strict:i,exact:a,sensitive:u}):s.match},e.prototype.componentWillMount=function(){(0,c.default)(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),(0,c.default)(!(this.props.component&&this.props.children&&!g(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),(0,c.default)(!(this.props.render&&this.props.children&&!g(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){(0,c.default)(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,c.default)(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function t(){var e=this.state.match,n=this.props,r=n.children,o=n.component,t=n.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,c=this.props.location||u.location,l={match:e,location:c,history:a,staticContext:s};return o?e?d.default.createElement(o,l):null:t?e?t(l):null:r?"function"==typeof r?r(l):g(r)?null:d.default.Children.only(r):null},e}(d.default.Component);_.propTypes={computedMatch:v.default.object,path:v.default.string,exact:v.default.bool,strict:v.default.bool,sensitive:v.default.bool,component:v.default.func,render:v.default.func,children:v.default.oneOfType([v.default.func,v.default.node]),location:v.default.object},_.contextTypes={router:v.default.shape({history:v.default.object.isRequired,route:v.default.object.isRequired,staticContext:v.default.object})},_.childContextTypes={router:v.default.object.isRequired},e.default=_},function(t,e,n){"use strict"; function r(t,e,n){this.props=t,this.context=e,this.refs=c,this.updater=n||s}function o(t,e,n){this.props=t,this.context=e,this.refs=c,this.updater=n||s}function i(){}var a=n(50),u=n(5),s=n(187),c=(n(188),n(62));n(1),n(419);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?a("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,u(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,t.exports={Component:r,PureComponent:o}},function(t,e,n){"use strict";function r(t){var e=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+e.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=e.call(t);return r.test(o)}catch(t){return!1}}function o(t){var e=c(t);if(e){var n=e.childIDs;l(t),n.forEach(o)}}function i(t,e,n){return"\n in "+(t||"Unknown")+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":n?" (created by "+n+")":"")}function a(t){return null==t?"#empty":"string"==typeof t||"number"==typeof t?"#text":"string"==typeof t.type?t.type:t.type.displayName||t.type.name||"Unknown"}function u(t){var e,n=S.getDisplayName(t),r=S.getElement(t),o=S.getOwnerID(t);return o&&(e=S.getDisplayName(o)),i(n,r&&r._source,e)}var s,c,l,p,f,d,h,v=n(50),m=n(19),y=(n(1),n(2),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(y){var g=new Map,_=new Set;s=function(t,e){g.set(t,e)},c=function(t){return g.get(t)},l=function(t){g.delete(t)},p=function(){return Array.from(g.keys())},f=function(t){_.add(t)},d=function(t){_.delete(t)},h=function(){return Array.from(_.keys())}}else{var b={},w={},C=function(t){return"."+t},x=function(t){return parseInt(t.substr(1),10)};s=function(t,e){var n=C(t);b[n]=e},c=function(t){var e=C(t);return b[e]},l=function(t){var e=C(t);delete b[e]},p=function(){return Object.keys(b).map(x)},f=function(t){var e=C(t);w[e]=!0},d=function(t){var e=C(t);delete w[e]},h=function(){return Object.keys(w).map(x)}}var E=[],S={onSetChildren:function(t,e){var n=c(t);n?void 0:v("144"),n.childIDs=e;for(var r=0;r<e.length;r++){var o=e[r],i=c(o);i?void 0:v("140"),null==i.childIDs&&"object"==typeof i.element&&null!=i.element?v("141"):void 0,i.isMounted?void 0:v("71"),null==i.parentID&&(i.parentID=t),i.parentID!==t?v("142",o,i.parentID,t):void 0}},onBeforeMountComponent:function(t,e,n){var r={element:e,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};s(t,r)},onBeforeUpdateComponent:function(t,e){var n=c(t);n&&n.isMounted&&(n.element=e)},onMountComponent:function(t){var e=c(t);e?void 0:v("144"),e.isMounted=!0;var n=0===e.parentID;n&&f(t)},onUpdateComponent:function(t){var e=c(t);e&&e.isMounted&&e.updateCount++},onUnmountComponent:function(t){var e=c(t);if(e){e.isMounted=!1;var n=0===e.parentID;n&&d(t)}E.push(t)},purgeUnmountedComponents:function(){if(!S._preventPurging){for(var t=0;t<E.length;t++){var e=E[t];o(e)}E.length=0}},isMounted:function(t){var e=c(t);return!!e&&e.isMounted},getCurrentStackAddendum:function(t){var e="";if(t){var n=a(t),r=t._owner;e+=i(n,t._source,r&&r.getName())}var o=m.current,u=o&&o._debugID;return e+=S.getStackAddendumByID(u)},getStackAddendumByID:function(t){for(var e="";t;)e+=u(t),t=S.getParentID(t);return e},getChildIDs:function(t){var e=c(t);return e?e.childIDs:[]},getDisplayName:function(t){var e=S.getElement(t);return e?a(e):null},getElement:function(t){var e=c(t);return e?e.element:null},getOwnerID:function(t){var e=S.getElement(t);return e&&e._owner?e._owner._debugID:null},getParentID:function(t){var e=c(t);return e?e.parentID:null},getSource:function(t){var e=c(t),n=e?e.element:null,r=null!=n?n._source:null;return r},getText:function(t){var e=S.getElement(t);return"string"==typeof e?e:"number"==typeof e?""+e:null},getUpdateCount:function(t){var e=c(t);return e?e.updateCount:0},getRootIDs:h,getRegisteredIDs:p,pushNonStandardWarningStack:function(t,e){if("function"==typeof console.reactStack){var n=[],r=m.current,o=r&&r._debugID;try{for(t&&n.push({name:o?S.getDisplayName(o):null,fileName:e?e.fileName:null,lineNumber:e?e.lineNumber:null});o;){var i=S.getElement(o),a=S.getParentID(o),u=S.getOwnerID(o),s=u?S.getDisplayName(u):null,c=i&&i._source;n.push({name:s,fileName:c?c.fileName:null,lineNumber:c?c.lineNumber:null}),o=a}}catch(t){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};t.exports=S},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){"use strict";function r(t,e){}var o=(n(2),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")}});t.exports=o},function(t,e,n){"use strict";var r=!1;t.exports=r},,,,,,,,,,,,,function(t,e,n){t.exports={default:n(211),__esModule:!0}},function(t,e,n){t.exports={default:n(212),__esModule:!0}},function(t,e,n){t.exports={default:n(213),__esModule:!0}},function(t,e,n){t.exports={default:n(214),__esModule:!0}},function(t,e,n){t.exports={default:n(215),__esModule:!0}},function(t,e,n){t.exports={default:n(216),__esModule:!0}},function(t,e,n){t.exports={default:n(217),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(202),i=r(o);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){n(272),n(274),n(277),n(273),n(275),n(276),t.exports=n(32).Promise},function(t,e,n){var r=n(16),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){n(237),t.exports=n(16).Object.assign},function(t,e,n){n(238);var r=n(16).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(239),t.exports=n(16).Object.keys},function(t,e,n){n(240),t.exports=n(16).Object.setPrototypeOf},function(t,e,n){n(243),n(241),n(244),n(245),t.exports=n(16).Symbol},function(t,e,n){n(242),n(246),t.exports=n(86).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(30),o=n(235),i=n(234);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(41),o=n(78),i=n(53);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var r=n(20).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(125);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(77),o=n(54),i=n(79),a={};n(27)(a,n(31)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(55)("meta"),o=n(28),i=n(21),a=n(29).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(26)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},p=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},f=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&s(t)&&!i(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(t,e,n){"use strict";var r=n(41),o=n(78),i=n(53),a=n(83),u=n(129),s=Object.assign;t.exports=!s||n(26)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=o.f,p=i.f;s>c;)for(var f,d=u(arguments[c++]),h=l?r(d).concat(l(d)):r(d),v=h.length,m=0;v>m;)p.call(d,f=h[m++])&&(n[f]=d[f]);return n}:s},function(t,e,n){var r=n(29),o=n(40),i=n(41);t.exports=n(24)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(30),o=n(132).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(21),o=n(83),i=n(80)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(25),o=n(16),i=n(26);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(28),o=n(40),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(126)(Function.call,n(131).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(82),o=n(73);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(82),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(82),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(219),o=n(225),i=n(75),a=n(30);t.exports=n(130)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(25);r(r.S+r.F,"Object",{assign:n(227)})},function(t,e,n){var r=n(25);r(r.S,"Object",{create:n(77)})},function(t,e,n){var r=n(83),o=n(41);n(231)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(25);r(r.S,"Object",{setPrototypeOf:n(232).set})},function(t,e){},function(t,e,n){"use strict";var r=n(233)(!0);n(130)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(20),o=n(21),i=n(24),a=n(25),u=n(134),s=n(226).KEY,c=n(26),l=n(81),p=n(79),f=n(55),d=n(31),h=n(86),v=n(85),m=n(221),y=n(223),g=n(40),_=n(28),b=n(30),w=n(84),C=n(54),x=n(77),E=n(229),S=n(131),P=n(29),T=n(41),O=S.f,k=P.f,M=E.f,R=r.Symbol,N=r.JSON,A=N&&N.stringify,I="prototype",L=d("_hidden"),j=d("toPrimitive"),D={}.propertyIsEnumerable,U=l("symbol-registry"),F=l("symbols"),W=l("op-symbols"),B=Object[I],H="function"==typeof R,V=r.QObject,q=!V||!V[I]||!V[I].findChild,Y=i&&c(function(){return 7!=x(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=O(B,e);r&&delete B[e],k(t,e,n),r&&t!==B&&k(B,e,r)}:k,K=function(t){var e=F[t]=x(R[I]);return e._k=t,e},z=H&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},G=function(t,e,n){return t===B&&G(W,e,n),g(t),e=w(e,!0),g(n),o(F,e)?(n.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),n=x(n,{enumerable:C(0,!1)})):(o(t,L)||k(t,L,C(1,{})),t[L][e]=!0),Y(t,e,n)):k(t,e,n)},X=function(t,e){g(t);for(var n,r=m(e=b(e)),o=0,i=r.length;i>o;)G(t,n=r[o++],e[n]);return t},$=function(t,e){return void 0===e?x(t):X(x(t),e)},Q=function(t){var e=D.call(this,t=w(t,!0));return!(this===B&&o(F,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,L)&&this[L][t])||e)},J=function(t,e){if(t=b(t),e=w(e,!0),t!==B||!o(F,e)||o(W,e)){var n=O(t,e);return!n||!o(F,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=M(b(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==L||e==s||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=M(n?W:b(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(B,e)||i.push(F[e]);return i};H||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(W,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),Y(this,t,C(1,n))};return i&&q&&Y(B,t,{configurable:!0,set:e}),K(t)},u(R[I],"toString",function(){return this._k}),S.f=J,P.f=G,n(132).f=E.f=Z,n(53).f=Q,n(78).f=tt,i&&!n(76)&&u(B,"propertyIsEnumerable",Q,!0),h.f=function(t){return K(d(t))}),a(a.G+a.W+a.F*!H,{Symbol:R});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=T(d.store),ot=0;rt.length>ot;)v(rt[ot++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return o(U,t+="")?U[t]:U[t]=R(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!H,"Object",{create:$,defineProperty:G,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),N&&a(a.S+a.F*(!H||c(function(){var t=R();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!z(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,A.apply(N,r)}}),R[I][j]||n(27)(R[I],j,R[I].valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){n(85)("asyncIterator")},function(t,e,n){n(85)("observable")},function(t,e,n){n(236);for(var r=n(20),o=n(27),i=n(75),a=n(31)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],l=r[c],p=l&&l.prototype;p&&!p[a]&&o(p,a,c),i[c]=i.Array}},function(t,e,n){var r=n(9)("unscopables"),o=Array.prototype;void 0==o[r]&&n(33)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(94),o=n(147),i=n(267);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(58),o=n(255),i=n(254),a=n(22),u=n(147),s=n(270),c={},l={},e=t.exports=function(t,e,n,p,f){var d,h,v,m,y=f?function(){return t}:s(t),g=r(n,p,e?2:1),_=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>_;_++)if(m=e?g(a(h=t[_])[0],h[1]):g(t[_]),m===c||m===l)return m}else for(v=y.call(t);!(h=v.next()).done;)if(m=o(v,g,h.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},function(t,e,n){t.exports=!n(42)&&!n(136)(function(){return 7!=Object.defineProperty(n(89)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(57);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(44),o=n(9)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(22);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(260),o=n(143),i=n(91),a={};n(33)(a,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(9)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(11),o=n(146).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(57)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve();n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var p=!0,f=document.createTextNode("");new i(c).observe(f,{characterData:!0}),n=function(){f.data=p=!p}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(22),o=n(261),i=n(135),a=n(92)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(89)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(137).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(61),o=n(22),i=n(140);t.exports=n(42)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(60),o=n(268),i=n(92)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(60),o=n(94),i=n(249)(!1),a=n(92)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(11),o=n(61),i=n(42),a=n(9)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(93),o=n(88);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(93),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(88);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(43);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(87),o=n(9)("iterator"),i=n(44);t.exports=n(32).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(247),o=n(258),i=n(44),a=n(94);t.exports=n(138)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r=n(87),o={};o[n(9)("toStringTag")]="z",o+""!="[object z]"&&n(45)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r,o,i,a,u=n(139),s=n(11),c=n(58),l=n(87),p=n(59),f=n(43),d=n(56),h=n(248),v=n(250),m=n(145),y=n(146).set,g=n(259)(),_=n(90),b=n(141),w=n(142),C="Promise",x=s.TypeError,E=s.process,S=s[C],P="process"==l(E),T=function(){},O=o=_.f,k=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(9)("species")]=function(t){t(T,T)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e}catch(t){}}(),M=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(o||(2==t._h&&I(t),t._h=1),u===!0?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c(x("Promise-chain cycle")):(i=M(n))?i.call(n,s,c):s(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){y.call(s,function(){var e,n,r,o=t._v,i=A(t);if(i&&(e=b(function(){P?E.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=P||A(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){y.call(s,function(){var e;P?E.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=M(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(j,r,1),c(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};k||(S=function(t){h(this,S,C,"_h"),d(t),r.call(this);try{t(c(j,this,1),c(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(264)(S.prototype,{then:function(t,e){var n=O(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(j,t,1),this.reject=c(L,t,1)},_.f=O=function(t){return t===S||t===a?new i(t):o(t)}),p(p.G+p.W+p.F*!k,{Promise:S}),n(91)(S,C),n(265)(C),a=n(32)[C],p(p.S+p.F*!k,C,{reject:function(t){var e=O(this),n=e.reject;return n(t),e.promise}}),p(p.S+p.F*(u||!k),C,{resolve:function(t){return w(u&&this===a?S:this,t)}}),p(p.S+p.F*!(k&&n(257)(function(t){S.all(t).catch(T)})),C,{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(266)(!0);n(138)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(59),o=n(32),i=n(11),a=n(145),u=n(142);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(59),o=n(90),i=n(141);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){for(var r=n(271),o=n(140),i=n(45),a=n(11),u=n(33),s=n(44),c=n(9),l=c("iterator"),p=c("toStringTag"),f=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v<h.length;v++){var m,y=h[v],g=d[y],_=a[y],b=_&&_.prototype;if(b&&(b[l]||u(b,l,f),b[p]||u(b,p,y),s[y]=f,g))for(m in r)b[m]||i(b,m,r[m],!0)}},function(t,e,n){"use strict";function r(t){return t}function o(t,e,n){function o(t,e){var n=g.hasOwnProperty(e)?g[e]:null;x.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function i(t,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(c)&&b.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==c){var u=n[a],l=r.hasOwnProperty(a);if(o(l,a),b.hasOwnProperty(a))b[a](t,u);else{var p=g.hasOwnProperty(a),h="function"==typeof u,v=h&&!p&&!l&&n.autobind!==!1;if(v)i.push(a,u),r[a]=u;else if(l){var m=g[a];s(p&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=f(r[a],u):"DEFINE_MANY"===m&&(r[a]=d(r[a],u))}else r[a]=u}}}else;}function l(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in b;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;if(i){var a=_.hasOwnProperty(n)?_[n]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(t[n]=f(t[n],r))}t[n]=r}}}function p(t,e){s(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function f(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return p(o,n),p(o,r),o}}function d(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function h(t,e){var n=e.bind(t);return n}function v(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=h(t,o)}}function m(t){var e=r(function(t,r,o){this.__reactAutoBindPairs.length&&v(this),this.props=t,this.context=r,this.refs=u,this.updater=o||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;s("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=i});e.prototype=new E,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],y.forEach(i.bind(null,e)),i(e,w),i(e,t),i(e,C),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),s(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in g)e.prototype[o]||(e.prototype[o]=null);return e}var y=[],g={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},_={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},b={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)i(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=a({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=a({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=f(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=a({},t.propTypes,e)},statics:function(t,e){l(t,e)},autobind:function(){}},w={componentDidMount:function(){this.__isMounted=!0}},C={componentWillUnmount:function(){this.__isMounted=!1}},x={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},E=function(){};return a(E.prototype,t.prototype,x),m}var i,a=n(5),u=n(62),s=n(1),c="mixins";i={},t.exports=o},,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(96),i=r(o),a=function(){};i.default&&(a=function(){return document.addEventListener?function(t,e,n,r){return t.removeEventListener(e,n,r||!1)}:document.attachEvent?function(t,e,n){return t.detachEvent("on"+e,n)}:void 0}()),e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(96),i=r(o),a=function(){};i.default&&(a=function(){return document.addEventListener?function(t,e,n,r){return t.addEventListener(e,n,r||!1)}:document.attachEvent?function(t,e,n){return t.attachEvent("on"+e,function(e){e=e||window.event,e.target=e.target||e.srcElement,e.currentTarget=t,n.call(t,e)})}:void 0}()),e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=(0,a.default)(t);return void 0===e?n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:t.scrollLeft:void(n?n.scrollTo(e,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):t.scrollLeft=e); }Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(148),a=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=(0,a.default)(t);return void 0===e?n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:t.scrollTop:void(n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,e):t.scrollTop=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(148),a=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-f)),r=setTimeout(t,n);return f=e,r}Object.defineProperty(e,"__esModule",{value:!0});var i=n(96),a=r(i),u=["","webkit","moz","o","ms"],s="clearTimeout",c=o,l=void 0,p=function(t,e){return t+(t?e[0].toUpperCase()+e.substr(1):e)+"AnimationFrame"};a.default&&u.some(function(t){var e=p(t,"request");if(e in window)return s=p(t,"cancel"),c=function(t){return window[e](t)}});var f=(new Date).getTime();l=function(t){return c(t)},l.cancel=function(t){window[s]&&"function"==typeof window[s]&&window[s](t)},e.default=l,t.exports=e.default},,,,function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(290),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(300);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}function o(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return o(t)?Array.isArray(t)?t.slice():r(t):[t]}var a=n(1);t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.match(l);return e&&e[1].toLowerCase()}function o(t,e){var n=c;c?void 0:s(!1);var o=r(t),i=o&&u(o);if(i){n.innerHTML=i[1]+t+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=t;var p=n.getElementsByTagName("script");p.length&&(e?void 0:s(!1),a(p).forEach(e));for(var f=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var i=n(8),a=n(293),u=n(295),s=n(1),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o},function(t,e,n){"use strict";function r(t){return a?void 0:i(!1),f.hasOwnProperty(t)||(t="*"),u.hasOwnProperty(t)||("*"===t?a.innerHTML="<link />":a.innerHTML="<"+t+"></"+t+">",u[t]=!a.firstChild),u[t]?f[t]:null}var o=n(8),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],f={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:s,option:s,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(t){f[t]=p,u[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(297),i=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(299);t.exports=r},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return i(S+t)}function i(t){return t.replace(/^\/\//g,"/")}function a(t,e){var n=(0,E.createLocation)(t,null,null,e.location);return n.pathname=o(n.pathname),n}e.__esModule=!0,e.navigateTo=void 0;var u=n(208),s=r(u),c=n(204),l=r(c),p=n(209),f=r(p),d=n(52),h=r(d),v=n(72),m=r(v),y=n(71),g=r(y);e.withPrefix=o;var _=n(4),b=r(_),w=n(69),C=n(7),x=r(C),E=n(100),S="/",P={activeClassName:x.default.string,activeStyle:x.default.object,exact:x.default.bool,strict:x.default.bool,isActive:x.default.func,location:x.default.object},T=function(t,e){var n=new window.IntersectionObserver(function(r){r.forEach(function(r){t===r.target&&(r.isIntersecting||r.intersectionRatio>0)&&(n.unobserve(t),n.disconnect(),e())})});n.observe(t)},O=function(t){function e(n,r){(0,h.default)(this,e);var o=(0,m.default)(this,t.call(this)),i=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(i=!0);var u=r.router.history,s=a(n.to,u);return o.state={path:(0,E.createPath)(s),to:s,IOSupported:i},o.handleRef=o.handleRef.bind(o),o}return(0,g.default)(e,t),e.prototype.componentWillReceiveProps=function(t){if(this.props.to!==t.to){var e=a(t.to,history);this.setState({path:(0,E.createPath)(e),to:e}),this.state.IOSupported||___loader.enqueue(this.state.to.pathname)}},e.prototype.componentDidMount=function(){this.state.IOSupported||___loader.enqueue(this.state.to.pathname)},e.prototype.handleRef=function(t){var e=this;this.props.innerRef&&this.props.innerRef(t),this.state.IOSupported&&t&&T(t,function(){___loader.enqueue(e.state.to.pathname)})},e.prototype.render=function(){var t=this,e=this.props,n=e.onClick,r=(0,f.default)(e,["onClick"]),o=void 0;return o=(0,l.default)(P).some(function(e){return t.props[e]})?w.NavLink:w.Link,b.default.createElement(o,(0,s.default)({onClick:function(e){if(n&&n(e),!(0!==e.button||t.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){var r=t.state.path;if(r.split("#").length>1&&(r=r.split("#").slice(0,-1).join("")),r===window.location.pathname){var o=t.state.path.split("#").slice(1).join("#"),i=document.getElementById(o);return null!==i?(i.scrollIntoView(),!0):(window.scrollTo(0,0),!0)}e.preventDefault(),window.___navigateTo(t.state.to)}return!0}},r,{to:this.state.to,innerRef:this.handleRef}))},e}(b.default.Component);O.propTypes=(0,s.default)({},P,{innerRef:x.default.func,onClick:x.default.func,to:x.default.oneOfType([x.default.string,x.default.object]).isRequired}),O.contextTypes={router:x.default.object},e.default=O;e.navigateTo=function(t){window.___navigateTo(t)}},,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(52),i=r(o),a=n(72),u=r(a),s=n(71),c=r(s),l=n(4),p=r(l),f=n(69),d=n(423),h=r(d),v=n(7),m=r(v),y=n(314),g=r(y),_={shouldUpdateScroll:m.default.func,children:m.default.element.isRequired,location:m.default.object.isRequired,history:m.default.object.isRequired},b={scrollBehavior:m.default.object.isRequired},w=function(t){function e(n,r){(0,i.default)(this,e);var o=(0,u.default)(this,t.call(this,n,r));o.shouldUpdateScroll=function(t,e){var n=o.props.shouldUpdateScroll;return!n||n.call(o.scrollBehavior,t,e)},o.registerElement=function(t,e,n){o.scrollBehavior.registerElement(t,e,n,o.getRouterProps())},o.unregisterElement=function(t){o.scrollBehavior.unregisterElement(t)};var a=n.history;return o.scrollBehavior=new h.default({addTransitionHook:a.listen,stateStorage:new g.default,getCurrentLocation:function(){return o.props.location},shouldUpdateScroll:o.shouldUpdateScroll}),o.scrollBehavior.updateScroll(null,o.getRouterProps()),o}return(0,c.default)(e,t),e.prototype.getChildContext=function(){return{scrollBehavior:this}},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.location,r=e.history,o=t.location;if(n!==o){var i={history:t.history,location:t.location};n.action=r.action,this.scrollBehavior.updateScroll(i,{history:r,location:n})}},e.prototype.componentWillUnmount=function(){this.scrollBehavior.stop()},e.prototype.getRouterProps=function(){var t=this.props,e=t.history,n=t.location;return{history:e,location:n}},e.prototype.render=function(){return p.default.Children.only(this.props.children)},e}(p.default.Component);w.propTypes=_,w.childContextTypes=b,e.default=(0,f.withRouter)(w)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(52),i=r(o),a=n(72),u=r(a),s=n(71),c=r(s),l=n(4),p=r(l),f=n(158),d=r(f),h=n(10),v=(r(h),n(7)),m=r(v),y={scrollKey:m.default.string.isRequired,shouldUpdateScroll:m.default.func,children:m.default.element.isRequired},g={scrollBehavior:m.default.object},_=function(t){function e(n,r){(0,i.default)(this,e);var o=(0,u.default)(this,t.call(this,n,r));return o.shouldUpdateScroll=function(t,e){var n=o.props.shouldUpdateScroll;return!n||n.call(o.context.scrollBehavior.scrollBehavior,t,e)},o.scrollKey=n.scrollKey,o}return(0,c.default)(e,t),e.prototype.componentDidMount=function(){this.context.scrollBehavior.registerElement(this.props.scrollKey,d.default.findDOMNode(this),this.shouldUpdateScroll)},e.prototype.componentWillReceiveProps=function(t){},e.prototype.componentDidUpdate=function(){},e.prototype.componentWillUnmount=function(){this.context.scrollBehavior.unregisterElement(this.scrollKey)},e.prototype.render=function(){return this.props.children},e}(p.default.Component);_.propTypes=y,_.contextTypes=g,e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(201),i=r(o),a=n(52),u=r(a),s="@@scroll|",c="___GATSBY_REACT_ROUTER_SCROLL",l=function(){function t(){(0,u.default)(this,t)}return t.prototype.read=function(t,e){var n=this.getStateKey(t,e);try{var r=window.sessionStorage.getItem(n);return JSON.parse(r)}catch(t){return console.warn("[gatsby-react-router-scroll] Unable to access sessionStorage; sessionStorage is not available."),window&&window[c]&&window[c][n]?window[c][n]:{}}},t.prototype.save=function(t,e,n){var r=this.getStateKey(t,e),o=(0,i.default)(n);try{window.sessionStorage.setItem(r,o)}catch(t){window&&window[c]?window[c][r]=JSON.parse(o):(window[c]={},window[c][r]=JSON.parse(o)),console.warn("[gatsby-react-router-scroll] Unable to save state in sessionStorage; sessionStorage is not available.")}},t.prototype.getStateKey=function(t,e){var n=""+s+t.pathname;return null===e||"undefined"==typeof e?n:n+"|"+e},t}();e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(312),i=r(o),a=n(313),u=r(a);e.ScrollContainer=u.default,e.ScrollContext=i.default},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},,,,,,,,function(t,e,n){"use strict";function r(t,e,n,r,o){}t.exports=r},function(t,e,n){"use strict";var r=n(12),o=n(1),i=n(157);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";var r=n(12),o=n(1),i=n(2),a=n(5),u=n(157),s=n(324);t.exports=function(t,e){function n(t){var e=t&&(k&&t[k]||t[M]);if("function"==typeof e)return e}function c(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function l(t){this.message=t,this.stack=""}function p(t){function n(n,r,i,a,s,c,p){if(a=a||R,c=c||i,p!==u)if(e)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new l(null===r[i]?"The "+s+" `"+c+"` is marked as required "+("in `"+a+"`, but its value is `null`."):"The "+s+" `"+c+"` is marked as required in "+("`"+a+"`, but its value is `undefined`.")):null:t(r,i,a,s,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(t){function e(e,n,r,o,i,a){var u=e[n],s=S(u);if(s!==t){var c=P(u);return new l("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return p(e)}function d(){return p(r.thatReturnsNull)}function h(t){function e(e,n,r,o,i){if("function"!=typeof t)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var s=S(a);return new l("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var p=t(a,c,r,o,i+"["+c+"]",u);if(p instanceof Error)return p}return null}return p(e)}function v(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){var u=S(a);return new l("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return p(e)}function m(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||R,u=O(e[n]);return new l("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return p(e)}function y(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(c(a,t[u]))return null;var s=JSON.stringify(t);return new l("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+s+"."))}return Array.isArray(t)?p(e):r.thatReturnsNull}function g(t){function e(e,n,r,o,i){if("function"!=typeof t)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],s=S(a);if("object"!==s)return new l("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var p=t(a,c,r,o,i+"."+c,u);if(p instanceof Error)return p}return null}return p(e)}function _(t){function e(e,n,r,o,i){for(var a=0;a<t.length;a++){var s=t[a];if(null==s(e,n,r,o,i,u))return null}return new l("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return r.thatReturnsNull;for(var n=0;n<t.length;n++){var o=t[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",T(o),n),r.thatReturnsNull}return p(e)}function b(){function t(t,e,n,r,o){return x(t[e])?null:new l("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return p(t)}function w(t){function e(e,n,r,o,i){var a=e[n],s=S(a);if("object"!==s)return new l("Invalid "+o+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in t){var p=t[c];if(p){var f=p(a,c,r,o,i+"."+c,u);if(f)return f}}return null}return p(e)}function C(t){function e(e,n,r,o,i){var s=e[n],c=S(s);if("object"!==c)return new l("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));var p=a({},e[n],t);for(var f in p){var d=t[f];if(!d)return new l("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=d(s,f,r,o,i+"."+f,u);if(h)return h}return null}return p(e)}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!x(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!x(a[1]))return!1}return!0;default:return!1}}function E(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function S(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":E(e,t)?"symbol":e}function P(t){if("undefined"==typeof t||null===t)return""+t;var e=S(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function T(t){var e=P(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function O(t){return t.constructor&&t.constructor.name?t.constructor.name:R}var k="function"==typeof Symbol&&Symbol.iterator,M="@@iterator",R="<<anonymous>>",N={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(),arrayOf:h,element:v(),instanceOf:m,node:b(),objectOf:g,oneOf:y,oneOfType:_,shape:w,exact:C};return l.prototype=Error.prototype,N.checkPropTypes=s,N.PropTypes=N,N}},function(t,e){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};t.exports=n},function(t,e,n){"use strict";var r=n(6),o=n(150),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};t.exports=i},function(t,e,n){"use strict";function r(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function o(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function i(t){switch(t){case"topCompositionStart":return P.compositionStart;case"topCompositionEnd":return P.compositionEnd;case"topCompositionUpdate":return P.compositionUpdate}}function a(t,e){return"topKeyDown"===t&&e.keyCode===_}function u(t,e){switch(t){case"topKeyUp":return g.indexOf(e.keyCode)!==-1;case"topKeyDown":return e.keyCode!==_;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function c(t,e,n,r){var o,c;if(b?o=i(t):O?u(t,n)&&(o=P.compositionEnd):a(t,n)&&(o=P.compositionStart),!o)return null;x&&(O||o!==P.compositionStart?o===P.compositionEnd&&O&&(c=O.getData()):O=v.getPooled(r));var l=m.getPooled(o,e,n,r);if(c)l.data=c;else{var p=s(n);null!==p&&(l.data=p)}return d.accumulateTwoPhaseDispatches(l),l}function l(t,e){switch(t){case"topCompositionEnd":return s(e);case"topKeyPress":var n=e.which;return n!==E?null:(T=!0,S);case"topTextInput":var r=e.data;return r===S&&T?null:r;default:return null}}function p(t,e){if(O){if("topCompositionEnd"===t||!b&&u(t,e)){var n=O.getData();return v.release(O),O=null,n}return null}switch(t){case"topPaste":return null;case"topKeyPress":return e.which&&!o(e)?String.fromCharCode(e.which):null;case"topCompositionEnd":return x?null:e.data;default:return null}}function f(t,e,n,r){var o;if(o=C?l(t,n):p(t,n),!o)return null;var i=y.getPooled(P.beforeInput,e,n,r);return i.data=o,d.accumulateTwoPhaseDispatches(i),i}var d=n(47),h=n(8),v=n(335),m=n(372),y=n(375),g=[9,13,27,32],_=229,b=h.canUseDOM&&"CompositionEvent"in window,w=null;h.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var C=h.canUseDOM&&"TextEvent"in window&&!w&&!r(),x=h.canUseDOM&&(!b||w&&w>8&&w<=11),E=32,S=String.fromCharCode(E),P={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},T=!1,O=null,k={eventTypes:P,extractEvents:function(t,e,n,r){return[c(t,e,n,r),f(t,e,n,r)]}};t.exports=k},function(t,e,n){"use strict";var r=n(159),o=n(8),i=(n(13),n(291),n(381)),a=n(298),u=n(301),s=(n(2),u(function(t){return a(t)})),c=!1,l="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(t){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(t,e){var n="";for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--"),a=t[r];null!=a&&(n+=s(r)+":",n+=i(r,a,e,o)+";")}return n||null},setValueForStyles:function(t,e,n){var o=t.style;for(var a in e)if(e.hasOwnProperty(a)){var u=0===a.indexOf("--"),s=i(a,e[a],n,u);if("float"!==a&&"cssFloat"!==a||(a=l),u)o.setProperty(a,s);else if(s)o[a]=s;else{var p=c&&r.shorthandPropertyExpansions[a];if(p)for(var f in p)o[f]="";else o[a]=""}}}};t.exports=f},function(t,e,n){"use strict";function r(t,e,n){var r=P.getPooled(R.change,t,e,n);return r.type="change",C.accumulateTwoPhaseDispatches(r),r}function o(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function i(t){var e=r(A,t,O(t));S.batchedUpdates(a,e)}function a(t){w.enqueueEvents(t),w.processEventQueue(!1)}function u(t,e){N=t,A=e,N.attachEvent("onchange",i)}function s(){N&&(N.detachEvent("onchange",i),N=null,A=null)}function c(t,e){var n=T.updateValueIfChanged(t),r=e.simulated===!0&&j._allowSimulatedPassThrough;if(n||r)return t}function l(t,e){if("topChange"===t)return e}function p(t,e,n){"topFocus"===t?(s(),u(e,n)):"topBlur"===t&&s()}function f(t,e){N=t,A=e,N.attachEvent("onpropertychange",h)}function d(){N&&(N.detachEvent("onpropertychange",h),N=null,A=null)}function h(t){"value"===t.propertyName&&c(A,t)&&i(t)}function v(t,e,n){"topFocus"===t?(d(),f(e,n)):"topBlur"===t&&d()}function m(t,e,n){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return c(A,n)}function y(t){var e=t.nodeName;return e&&"input"===e.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function g(t,e,n){if("topClick"===t)return c(e,n)}function _(t,e,n){if("topInput"===t||"topChange"===t)return c(e,n)}function b(t,e){if(null!=t){var n=t._wrapperState||e._wrapperState;if(n&&n.controlled&&"number"===e.type){var r=""+e.value;e.getAttribute("value")!==r&&e.setAttribute("value",r)}}}var w=n(46),C=n(47),x=n(8),E=n(6),S=n(15),P=n(18),T=n(175),O=n(115),k=n(116),M=n(177),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},N=null,A=null,I=!1;x.canUseDOM&&(I=k("change")&&(!document.documentMode||document.documentMode>8));var L=!1;x.canUseDOM&&(L=k("input")&&(!document.documentMode||document.documentMode>9));var j={eventTypes:R,_allowSimulatedPassThrough:!0,_isInputEventSupported:L,extractEvents:function(t,e,n,i){var a,u,s=e?E.getNodeFromInstance(e):window;if(o(s)?I?a=l:u=p:M(s)?L?a=_:(a=m,u=v):y(s)&&(a=g),a){var c=a(t,e,n);if(c){var f=r(c,n,i);return f}}u&&u(t,s,e),"topBlur"===t&&b(e,s)}};t.exports=j},function(t,e,n){"use strict";var r=n(3),o=n(35),i=n(8),a=n(294),u=n(12),s=(n(1),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM?void 0:r("56"),e?void 0:r("57"),"HTML"===t.nodeName?r("58"):void 0,"string"==typeof e){var n=a(e,u)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=s},function(t,e){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=n},function(t,e,n){"use strict";var r=n(47),o=n(6),i=n(65),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(t,e,n,u){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var s;if(u.window===u)s=u;else{var c=u.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var l,p;if("topMouseOut"===t){l=e;var f=n.relatedTarget||n.toElement;p=f?o.getClosestInstanceFromNode(f):null}else l=null,p=e;if(l===p)return null;var d=null==l?s:o.getNodeFromInstance(l),h=null==p?s:o.getNodeFromInstance(p),v=i.getPooled(a.mouseLeave,l,n,u);v.type="mouseleave",v.target=d,v.relatedTarget=h;var m=i.getPooled(a.mouseEnter,p,n,u);return m.type="mouseenter",m.target=h,m.relatedTarget=d,r.accumulateEnterLeaveDispatches(v,m,l,p),[v,m]}};t.exports=u},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(5),i=n(23),a=n(174);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);var u=e>1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(36),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(t,e){return null==e?t.removeAttribute("value"):void("number"!==t.type||t.hasAttribute("value")===!1?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e))}}};t.exports=c},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){var o=void 0===t[n];null!=e&&o&&(t[n]=i(e,!0))}var o=n(37),i=n(176),a=(n(107),n(117)),u=n(179),s=(n(2),{instantiateChildren:function(t,e,n,o){if(null==t)return null;var i={};return u(t,r,i),i},updateChildren:function(t,e,n,r,u,s,c,l,p){if(e||t){var f,d;for(f in e)if(e.hasOwnProperty(f)){d=t&&t[f];var h=d&&d._currentElement,v=e[f];if(null!=d&&a(h,v))o.receiveComponent(d,v,u,l),e[f]=d;else{d&&(r[f]=o.getHostNode(d),o.unmountComponent(d,!1));var m=i(v,!0);e[f]=m;var y=o.mountComponent(m,u,s,c,l,p);n.push(y)}}for(f in t)!t.hasOwnProperty(f)||e&&e.hasOwnProperty(f)||(d=t[f],r[f]=o.getHostNode(d),o.unmountComponent(d,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];o.unmountComponent(r,e)}}});t.exports=s}).call(e,n(102))},function(t,e,n){"use strict";var r=n(103),o=n(345),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){"use strict";function r(t){}function o(t,e){}function i(t){return!(!t.prototype||!t.prototype.isReactComponent)}function a(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var u=n(3),s=n(5),c=n(38),l=n(109),p=n(19),f=n(110),d=n(48),h=(n(13),n(169)),v=n(37),m=n(62),y=(n(1),n(97)),g=n(117),_=(n(2),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var t=d.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return o(t,e),e};var b=1,w={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,s){this._context=s,this._mountOrder=b++,this._hostParent=e,this._hostContainerInfo=n;var l,p=this._currentElement.props,f=this._processContext(s),h=this._currentElement.type,v=t.getUpdateQueue(),y=i(h),g=this._constructComponent(y,p,f,v);y||null!=g&&null!=g.render?a(h)?this._compositeType=_.PureClass:this._compositeType=_.ImpureClass:(l=g,o(h,l),null===g||g===!1||c.isValidElement(g)?void 0:u("105",h.displayName||h.name||"Component"),g=new r(h),this._compositeType=_.StatelessFunctional);g.props=p,g.context=f,g.refs=m,g.updater=v,this._instance=g,d.set(g,this);var w=g.state;void 0===w&&(g.state=w=null),"object"!=typeof w||Array.isArray(w)?u("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var C;return C=g.unstable_handleError?this.performInitialMountWithErrorHandling(l,e,n,t,s):this.performInitialMount(l,e,n,t,s),g.componentDidMount&&t.getReactMountReady().enqueue(g.componentDidMount,g),C},_constructComponent:function(t,e,n,r){return this._constructComponentWithoutOwner(t,e,n,r)},_constructComponentWithoutOwner:function(t,e,n,r){var o=this._currentElement.type;return t?new o(e,n,r):o(e,n,r); },performInitialMountWithErrorHandling:function(t,e,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(t,e,n,r,o)}catch(u){r.rollback(a),this._instance.unstable_handleError(u),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(t,e,n,r,o)}return i},performInitialMount:function(t,e,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===t&&(t=this._renderValidatedComponent());var u=h.getType(t);this._renderedNodeType=u;var s=this._instantiateReactComponent(t,u!==h.EMPTY);this._renderedComponent=s;var c=v.mountComponent(s,r,e,n,this._processChildContext(o),a);return c},getHostNode:function(){return v.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";f.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(v.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,d.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return m;var r={};for(var o in n)r[o]=t[o];return r},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(e=r.getChildContext()),e){"object"!=typeof n.childContextTypes?u("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in e)o in n.childContextTypes?void 0:u("108",this.getName()||"ReactCompositeComponent",o);return s({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,r,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?v.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,r,o){var i=this._instance;null==i?u("136",this.getName()||"ReactCompositeComponent"):void 0;var a,s=!1;this._context===o?a=i.context:(a=this._processContext(o),s=!0);var c=e.props,l=n.props;e!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,a);var p=this._processPendingState(l,a),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,p,a):this._compositeType===_.PureClass&&(f=!y(c,l)||!y(i.state,p))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,p,a,t,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=p,i.context=a)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=s({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var u=r[a];s(i,"function"==typeof u?u.call(n,i,t,e):u)}return i},_performComponentUpdate:function(t,e,n,r,o,i){var a,u,s,c=this._instance,l=Boolean(c.componentDidUpdate);l&&(a=c.props,u=c.state,s=c.context),c.componentWillUpdate&&c.componentWillUpdate(e,n,r),this._currentElement=t,this._context=i,c.props=e,c.state=n,c.context=r,this._updateRenderedComponent(o,i),l&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,u,s),c)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent(),i=0;if(g(r,o))v.receiveComponent(n,o,t,this._processChildContext(e));else{var a=v.getHostNode(n);v.unmountComponent(n,!1);var u=h.getType(o);this._renderedNodeType=u;var s=this._instantiateReactComponent(o,u!==h.EMPTY);this._renderedComponent=s;var c=v.mountComponent(s,t,this._hostParent,this._hostContainerInfo,this._processChildContext(e),i);this._replaceNodeWithMarkup(a,c,n)}},_replaceNodeWithMarkup:function(t,e,n){l.replaceNodeWithMarkup(t,e,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t,e=this._instance;return t=e.render()},_renderValidatedComponent:function(){var t;if(this._compositeType!==_.StatelessFunctional){p.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{p.current=null}}else t=this._renderValidatedComponentWithoutOwnerOrContext();return null===t||t===!1||c.isValidElement(t)?void 0:u("109",this.getName()||"ReactCompositeComponent"),t},attachRef:function(t,e){var n=this.getPublicInstance();null==n?u("110"):void 0;var r=e.getPublicInstance(),o=n.refs===m?n.refs={}:n.refs;o[t]=r},detachRef:function(t){var e=this.getPublicInstance().refs;delete e[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return this._compositeType===_.StatelessFunctional?null:t},_instantiateReactComponent:null};t.exports=w},function(t,e,n){"use strict";var r=n(6),o=n(353),i=n(168),a=n(37),u=n(15),s=n(366),c=n(382),l=n(173),p=n(389);n(2);o.inject();var f={findDOMNode:c,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:s,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=l(t)),t?r.getNodeFromInstance(t):null}},Mount:i,Reconciler:a});t.exports=f},function(t,e,n){"use strict";function r(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(t,e){e&&($[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?m("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?m("60"):void 0,"object"==typeof e.dangerouslySetInnerHTML&&q in e.dangerouslySetInnerHTML?void 0:m("61")),null!=e.style&&"object"!=typeof e.style?m("62",r(t)):void 0)}function i(t,e,n,r){if(!(r instanceof I)){var o=t._hostContainerInfo,i=o._node&&o._node.nodeType===K,u=i?o._node:o._ownerDocument;W(e,u),r.getReactMountReady().enqueue(a,{inst:t,registrationName:e,listener:n})}}function a(){var t=this;E.putListener(t.inst,t.registrationName,t.listener)}function u(){var t=this;k.postMountWrapper(t)}function s(){var t=this;N.postMountWrapper(t)}function c(){var t=this;M.postMountWrapper(t)}function l(){j.track(this)}function p(){var t=this;t._rootNodeID?void 0:m("63");var e=F(t);switch(e?void 0:m("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in z)z.hasOwnProperty(n)&&t._wrapperState.listeners.push(P.trapBubbledEvent(n,z[n],e));break;case"source":t._wrapperState.listeners=[P.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[P.trapBubbledEvent("topError","error",e),P.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",e),P.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",e)]}}function f(){R.postUpdateWrapper(this)}function d(t){Z.call(J,t)||(Q.test(t)?void 0:m("65",t),J[t]=!0)}function h(t,e){return t.indexOf("-")>=0||null!=e.is}function v(t){var e=t.type;d(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(3),y=n(5),g=n(328),_=n(330),b=n(35),w=n(104),C=n(36),x=n(161),E=n(46),S=n(105),P=n(64),T=n(162),O=n(6),k=n(346),M=n(347),R=n(163),N=n(350),A=(n(13),n(359)),I=n(364),L=(n(12),n(67)),j=(n(1),n(116),n(97),n(175)),D=(n(118),n(2),T),U=E.deleteListener,F=O.getNodeFromInstance,W=P.listenTo,B=S.registrationNameModules,H={string:!0,number:!0},V="style",q="__html",Y={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},K=11,z={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"},G={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},X={listing:!0,pre:!0,textarea:!0},$=y({menuitem:!0},G),Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Z={}.hasOwnProperty,tt=1;v.displayName="ReactDOMComponent",v.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=tt++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(p,this);break;case"input":k.mountWrapper(this,i,e),i=k.getHostProps(this,i),t.getReactMountReady().enqueue(l,this),t.getReactMountReady().enqueue(p,this);break;case"option":M.mountWrapper(this,i,e),i=M.getHostProps(this,i);break;case"select":R.mountWrapper(this,i,e),i=R.getHostProps(this,i),t.getReactMountReady().enqueue(p,this);break;case"textarea":N.mountWrapper(this,i,e),i=N.getHostProps(this,i),t.getReactMountReady().enqueue(l,this),t.getReactMountReady().enqueue(p,this)}o(this,i);var a,f;null!=e?(a=e._namespaceURI,f=e._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===w.svg&&"foreignobject"===f)&&(a=w.html),a===w.html&&("svg"===this._tag?a=w.svg:"math"===this._tag&&(a=w.mathml)),this._namespaceURI=a;var d;if(t.useCreateElement){var h,v=n._ownerDocument;if(a===w.html)if("script"===this._tag){var m=v.createElement("div"),y=this._currentElement.type;m.innerHTML="<"+y+"></"+y+">",h=m.removeChild(m.firstChild)}else h=i.is?v.createElement(this._currentElement.type,i.is):v.createElement(this._currentElement.type);else h=v.createElementNS(a,this._currentElement.type);O.precacheNode(this,h),this._flags|=D.hasCachedChildNodes,this._hostParent||x.setAttributeForRoot(h),this._updateDOMProperties(null,i,t);var _=b(h);this._createInitialChildren(t,i,r,_),d=_}else{var C=this._createOpenTagMarkupAndPutListeners(t,i),E=this._createContentMarkup(t,i,r);d=!E&&G[this._tag]?C+"/>":C+">"+E+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(B.hasOwnProperty(r))o&&i(this,r,o,t);else{r===V&&(o&&(o=this._previousStyleCopy=y({},e.style)),o=_.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,e)?Y.hasOwnProperty(r)||(a=x.createMarkupForCustomAttribute(r,o)):a=x.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+x.createMarkupForRoot()),n+=" "+x.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=H[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=L(i);else if(null!=a){var u=this.mountChildren(a,t,n);r=u.join("")}}return X[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var i=H[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)""!==i&&b.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,t,n),s=0;s<u.length;s++)b.queueChild(r,u[s])}},receiveComponent:function(t,e,n){var r=this._currentElement;this._currentElement=t,this.updateComponent(e,r,t,n)},updateComponent:function(t,e,n,r){var i=e.props,a=this._currentElement.props;switch(this._tag){case"input":i=k.getHostProps(this,i),a=k.getHostProps(this,a);break;case"option":i=M.getHostProps(this,i),a=M.getHostProps(this,a);break;case"select":i=R.getHostProps(this,i),a=R.getHostProps(this,a);break;case"textarea":i=N.getHostProps(this,i),a=N.getHostProps(this,a)}switch(o(this,a),this._updateDOMProperties(i,a,t),this._updateDOMChildren(i,a,t,r),this._tag){case"input":k.updateWrapper(this),j.updateValueIfChanged(this);break;case"textarea":N.updateWrapper(this);break;case"select":t.getReactMountReady().enqueue(f,this)}},_updateDOMProperties:function(t,e,n){var r,o,a;for(r in t)if(!e.hasOwnProperty(r)&&t.hasOwnProperty(r)&&null!=t[r])if(r===V){var u=this._previousStyleCopy;for(o in u)u.hasOwnProperty(o)&&(a=a||{},a[o]="");this._previousStyleCopy=null}else B.hasOwnProperty(r)?t[r]&&U(this,r):h(this._tag,t)?Y.hasOwnProperty(r)||x.deleteValueForAttribute(F(this),r):(C.properties[r]||C.isCustomAttribute(r))&&x.deleteValueForProperty(F(this),r);for(r in e){var s=e[r],c=r===V?this._previousStyleCopy:null!=t?t[r]:void 0;if(e.hasOwnProperty(r)&&s!==c&&(null!=s||null!=c))if(r===V)if(s?s=this._previousStyleCopy=y({},s):this._previousStyleCopy=null,c){for(o in c)!c.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(a=a||{},a[o]="");for(o in s)s.hasOwnProperty(o)&&c[o]!==s[o]&&(a=a||{},a[o]=s[o])}else a=s;else if(B.hasOwnProperty(r))s?i(this,r,s,n):c&&U(this,r);else if(h(this._tag,e))Y.hasOwnProperty(r)||x.setValueForAttribute(F(this),r,s);else if(C.properties[r]||C.isCustomAttribute(r)){var l=F(this);null!=s?x.setValueForProperty(l,r,s):x.deleteValueForProperty(l,r)}}a&&_.setValueForStyles(F(this),a,this)},_updateDOMChildren:function(t,e,n,r){var o=H[typeof t.children]?t.children:null,i=H[typeof e.children]?e.children:null,a=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=null!=o?null:t.children,c=null!=i?null:e.children,l=null!=o||null!=a,p=null!=i||null!=u;null!=s&&null==c?this.updateChildren(null,n,r):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=u?a!==u&&this.updateMarkup(""+u):null!=c&&this.updateChildren(c,n,r)},getHostNode:function(){return F(this)},unmountComponent:function(t){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var e=this._wrapperState.listeners;if(e)for(var n=0;n<e.length;n++)e[n].remove();break;case"input":case"textarea":j.stopTracking(this);break;case"html":case"head":case"body":m("66",this._tag)}this.unmountChildren(t),O.uncacheNode(this),E.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return F(this)}},y(v.prototype,v.Mixin,A.Mixin),t.exports=v},function(t,e,n){"use strict";function r(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var o=(n(118),9);t.exports=r},function(t,e,n){"use strict";var r=n(5),o=n(35),i=n(6),a=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(t,e,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=e,this._hostContainerInfo=n;var u=" react-empty: "+this._domID+" ";if(t.useCreateElement){var s=n._ownerDocument,c=s.createComment(u);return i.precacheNode(this,c),o(c)}return t.renderToStaticMarkup?"":"<!--"+u+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var r=n(103),o=n(6),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(t){var e="checkbox"===t.type||"radio"===t.type;return e?null!=t.checked:null!=t.value}function i(t){var e=this._currentElement.props,n=c.executeOnChange(e,t);p.asap(r,this);var o=e.name;if("radio"===e.type&&null!=o){for(var i=l.getNodeFromInstance(this),u=i;u.parentNode;)u=u.parentNode;for(var s=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),f=0;f<s.length;f++){var d=s[f];if(d!==i&&d.form===i.form){var h=l.getInstanceFromNode(d);h?void 0:a("90"),p.asap(r,h)}}}return n}var a=n(3),u=n(5),s=n(161),c=n(108),l=n(6),p=n(15),f=(n(1),n(2),{getHostProps:function(t,e){var n=c.getValue(e),r=c.getChecked(e),o=u({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=r?r:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange});return o},mountWrapper:function(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,listeners:null,onChange:i.bind(t),controlled:o(e)}},updateWrapper:function(t){var e=t._currentElement.props,n=e.checked;null!=n&&s.setValueForProperty(l.getNodeFromInstance(t),"checked",n||!1);var r=l.getNodeFromInstance(t),o=c.getValue(e);if(null!=o)if(0===o&&""===r.value)r.value="0";else if("number"===e.type){var i=parseFloat(r.value,10)||0;(o!=i||o==i&&r.value!=o)&&(r.value=""+o)}else r.value!==""+o&&(r.value=""+o);else null==e.value&&null!=e.defaultValue&&r.defaultValue!==""+e.defaultValue&&(r.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(r.defaultChecked=!!e.defaultChecked)},postMountWrapper:function(t){var e=t._currentElement.props,n=l.getNodeFromInstance(t);switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}});t.exports=f},function(t,e,n){"use strict";function r(t){var e="";return i.Children.forEach(t,function(t){null!=t&&("string"==typeof t||"number"==typeof t?e+=t:s||(s=!0))}),e}var o=n(5),i=n(38),a=n(6),u=n(163),s=(n(2),!1),c={mountWrapper:function(t,e,n){var o=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=u.getSelectValueContext(i))}var a=null;if(null!=o){var s;if(s=null!=e.value?e.value+"":r(e.children),a=!1,Array.isArray(o)){for(var c=0;c<o.length;c++)if(""+o[c]===s){a=!0;break}}else a=""+o===s}t._wrapperState={selected:a}},postMountWrapper:function(t){var e=t._currentElement.props;if(null!=e.value){var n=a.getNodeFromInstance(t);n.setAttribute("value",e.value)}},getHostProps:function(t,e){var n=o({selected:void 0,children:void 0},e);null!=t._wrapperState.selected&&(n.selected=t._wrapperState.selected);var i=r(e.children);return i&&(n.children=i),n}};t.exports=c},function(t,e,n){"use strict";function r(t,e,n,r){return t===n&&e===r}function o(t){var e=document.selection,n=e.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(t),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=e.getRangeAt(0);try{u.startContainer.nodeType,u.endContainer.nodeType}catch(t){return null}var s=r(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),c=s?0:u.toString().length,l=u.cloneRange();l.selectNodeContents(t),l.setEnd(u.startContainer,u.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),f=p?0:l.toString().length,d=f+c,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var v=h.collapsed;return{start:v?d:f,end:v?f:d}}function a(t,e){var n,r,o=document.selection.createRange().duplicate();void 0===e.end?(n=e.start,r=n):e.start>e.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(t,e){if(window.getSelection){var n=window.getSelection(),r=t[l()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=c(t,o),s=c(t,i);if(u&&s){var p=document.createRange();p.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(s.node,s.offset)):(p.setEnd(s.node,s.offset),n.addRange(p))}}}var s=n(8),c=n(386),l=n(174),p=s.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:u};t.exports=f},function(t,e,n){"use strict";var r=n(3),o=n(5),i=n(103),a=n(35),u=n(6),s=n(67),c=(n(1),n(118),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",c=" /react-text ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var l=n._ownerDocument,p=l.createComment(i),f=l.createComment(c),d=a(l.createDocumentFragment());return a.queueChild(d,a(p)),this._stringText&&a.queueChild(d,a(l.createTextNode(this._stringText))),a.queueChild(d,a(f)),u.precacheNode(this,p),this._closingComment=f,d}var h=s(this._stringText);return t.renderToStaticMarkup?h:"<!--"+i+"-->"+h+"<!--"+c+"-->"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=u.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),t.exports=c},function(t,e,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);return c.asap(r,this),n}var i=n(3),a=n(5),u=n(108),s=n(6),c=n(15),l=(n(1),n(2),{getHostProps:function(t,e){null!=e.dangerouslySetInnerHTML?i("91"):void 0;var n=a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return n},mountWrapper:function(t,e){var n=u.getValue(e),r=n;if(null==n){var a=e.defaultValue,s=e.children;null!=s&&(null!=a?i("92"):void 0,Array.isArray(s)&&(s.length<=1?void 0:i("93"),s=s[0]),a=""+s),null==a&&(a=""),r=a}t._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=s.getNodeFromInstance(t),r=u.getValue(e);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==e.defaultValue&&(n.defaultValue=o)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=s.getNodeFromInstance(t),n=e.textContent;n===t._wrapperState.initialValue&&(e.value=n)}});t.exports=l},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t?void 0:s("33"),"_hostNode"in e?void 0:s("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var o=0,i=e;i;i=i._hostParent)o++;for(;n-o>0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t?void 0:s("35"),"_hostNode"in e?void 0:s("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t?void 0:s("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o<r.length;o++)e(r[o],"bubbled",n)}function u(t,e,n,o,i){for(var a=t&&e?r(t,e):null,u=[];t&&t!==a;)u.push(t),t=t._hostParent;for(var s=[];e&&e!==a;)s.push(e),e=e._hostParent;var c;for(c=0;c<u.length;c++)n(u[c],"bubbled",o);for(c=s.length;c-- >0;)n(s[c],"captured",i)}var s=n(3);n(1);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(5),i=n(15),a=n(66),u=n(12),s={initialize:u,close:function(){f.isBatchingUpdates=!1}},c={initialize:u,close:i.flushBatchedUpdates.bind(i)},l=[c,s];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=f.isBatchingUpdates;return f.isBatchingUpdates=!0,a?t(e,n,r,o,i):p.perform(t,null,e,n,r,o,i)}};t.exports=f},function(t,e,n){"use strict";function r(){x||(x=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(u),g.EventPluginUtils.injectComponentTree(f),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(v),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(b),g.EmptyComponent.injectEmptyComponentFactory(function(t){return new d(t)}),g.Updates.injectReconcileTransaction(_),g.Updates.injectBatchingStrategy(m),g.Component.injectEnvironment(l))}var o=n(327),i=n(329),a=n(331),u=n(333),s=n(334),c=n(336),l=n(338),p=n(341),f=n(6),d=n(343),h=n(351),v=n(349),m=n(352),y=n(356),g=n(357),_=n(362),b=n(367),w=n(368),C=n(369),x=!1;t.exports={inject:r}},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){"use strict";function r(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=n(46),i={handleTopLevel:function(t,e,n,i){var a=o.extractEvents(t,e,n,i);r(a)}};t.exports=i},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=p.getNodeFromInstance(t),n=e.parentNode;return p.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=d(t.nativeEvent),n=p.getClosestInstanceFromNode(e),o=n;do t.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;i<t.ancestors.length;i++)n=t.ancestors[i],v._handleTopLevel(t.topLevelType,n,t.nativeEvent,d(t.nativeEvent))}function a(t){var e=h(window);t(e)}var u=n(5),s=n(149),c=n(8),l=n(23),p=n(6),f=n(15),d=n(115),h=n(296);u(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(t){v._handleTopLevel=t},setEnabled:function(t){v._enabled=!!t},isEnabled:function(){return v._enabled},trapBubbledEvent:function(t,e,n){return n?s.listen(n,e,v.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){return n?s.capture(n,e,v.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=a.bind(null,t);s.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(v._enabled){var n=o.getPooled(t,e);try{f.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=v},function(t,e,n){"use strict";var r=n(36),o=n(46),i=n(106),a=n(109),u=n(164),s=n(64),c=n(166),l=n(15),p={Component:a.injection,DOMProperty:r.injection,EmptyComponent:u.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:s.injection,HostComponent:c.injection,Updates:l.injection};t.exports=p},function(t,e,n){"use strict";var r=n(380),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function o(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:f.getHostNode(t),toIndex:n,afterNode:e}}function i(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t,e){return e&&(t=t||[],t.push(e)),t}function c(t,e){p.processChildrenUpdates(t,e)}var l=n(3),p=n(109),f=(n(48),n(13),n(19),n(37)),d=n(337),h=(n(12),n(383)),v=(n(1),{Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return d.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r,o,i){var a,u=0;return a=h(e,u),d.updateChildren(t,a,n,r,o,this,this._hostContainerInfo,i,u),a},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],s=0,c=f.mountComponent(u,e,this,this._hostContainerInfo,n,s);u._mountIndex=i++,o.push(c)}return o},updateTextContent:function(t){var e=this._renderedChildren;d.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&l("118");var r=[u(t)];c(this,r)},updateMarkup:function(t){var e=this._renderedChildren;d.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&l("118");var r=[a(t)];c(this,r)},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,e,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,t,i,o,e,n);if(a||r){var u,l=null,p=0,d=0,h=0,v=null;for(u in a)if(a.hasOwnProperty(u)){var m=r&&r[u],y=a[u];m===y?(l=s(l,this.moveChild(m,v,p,d)),d=Math.max(m._mountIndex,d),m._mountIndex=p):(m&&(d=Math.max(m._mountIndex,d)),l=s(l,this._mountChildAtIndex(y,i[h],v,p,e,n)),h++),p++,v=f.getHostNode(y)}for(u in o)o.hasOwnProperty(u)&&(l=s(l,this._unmountChild(r[u],o[u])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(t){var e=this._renderedChildren;d.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,r){if(t._mountIndex<r)return o(t,e,n)},createChild:function(t,e,n){return r(n,e,t._mountIndex); },removeChild:function(t,e){return i(t,e)},_mountChildAtIndex:function(t,e,n,r,o,i){return t._mountIndex=r,this.createChild(t,n,e)},_unmountChild:function(t,e){var n=this.removeChild(t,e);return t._mountIndex=null,n}}});t.exports=v},function(t,e,n){"use strict";function r(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var o=n(3),i=(n(1),{addComponentAsRefTo:function(t,e,n){r(n)?void 0:o("119"),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){r(n)?void 0:o("120");var i=n.getPublicInstance();i&&i.refs[e]===t.getPublicInstance()&&n.detachRef(e)}});t.exports=i},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=t}var o=n(5),i=n(160),a=n(23),u=n(64),s=n(167),c=(n(13),n(66)),l=n(111),p={initialize:s.getSelectionInformation,close:s.restoreSelection},f={initialize:function(){var t=u.isEnabled();return u.setEnabled(!1),t},close:function(t){u.setEnabled(t)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[p,f,d],v={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return l},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(t){this.reactMountReady.rollback(t)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,c,v),a.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){"function"==typeof t?t(e.getPublicInstance()):i.addComponentAsRefTo(e,t,n)}function o(t,e,n){"function"==typeof t?t(null):i.removeComponentAsRefFrom(e,t,n)}var i=n(360),a={};a.attachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&r(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null,r=null;null!==t&&"object"==typeof t&&(n=t.ref,r=t._owner);var o=null,i=null;return null!==e&&"object"==typeof e&&(o=e.ref,i=e._owner),n!==o||"string"==typeof o&&i!==r},a.detachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&o(n,t,e._owner)}},t.exports=a},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.useCreateElement=!1,this.updateQueue=new u(this)}var o=n(5),i=n(23),a=n(66),u=(n(13),n(365)),s=[],c={enqueue:function(){}},l={getTransactionWrappers:function(){return s},getReactMountReady:function(){return c},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,a,l),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){}var i=n(111),a=(n(2),function(){function t(e){r(this,t),this.transaction=e}return t.prototype.isMounted=function(t){return!1},t.prototype.enqueueCallback=function(t,e,n){this.transaction.isInTransaction()&&i.enqueueCallback(t,e,n)},t.prototype.enqueueForceUpdate=function(t){this.transaction.isInTransaction()?i.enqueueForceUpdate(t):o(t,"forceUpdate")},t.prototype.enqueueReplaceState=function(t,e){this.transaction.isInTransaction()?i.enqueueReplaceState(t,e):o(t,"replaceState")},t.prototype.enqueueSetState=function(t,e){this.transaction.isInTransaction()?i.enqueueSetState(t,e):o(t,"setState")},t}());t.exports=a},function(t,e){"use strict";t.exports="15.6.2"},function(t,e){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(t){o.Properties[t]=0,r[t]&&(o.DOMAttributeNames[t]=r[t])}),t.exports=o},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&s.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(g||null==v||v!==l())return null;var n=r(v);if(!y||!f(y,n)){y=n;var o=c.getPooled(h.select,m,t,e);return o.type="select",o.target=v,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(47),a=n(8),u=n(6),s=n(167),c=n(18),l=n(151),p=n(177),f=n(97),d=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},v=null,m=null,y=null,g=!1,_=!1,b={eventTypes:h,extractEvents:function(t,e,n,r){if(!_)return null;var i=e?u.getNodeFromInstance(e):window;switch(t){case"topFocus":(p(i)||"true"===i.contentEditable)&&(v=i,m=e,y=null);break;case"topBlur":v=null,m=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(d)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(_=!0)}};t.exports=b},function(t,e,n){"use strict";function r(t){return"."+t._rootNodeID}function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var i=n(3),a=n(149),u=n(47),s=n(6),c=n(370),l=n(371),p=n(18),f=n(374),d=n(376),h=n(65),v=n(373),m=n(377),y=n(378),g=n(49),_=n(379),b=n(12),w=n(113),C=(n(1),{}),x={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","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","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,r="top"+e,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};C[t]=o,x[r]=o});var E={},S={eventTypes:C,extractEvents:function(t,e,n,r){var o=x[t];if(!o)return null;var a;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=p;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":a=d;break;case"topBlur":case"topFocus":a=f;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=h;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=v;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=m;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=c;break;case"topTransitionEnd":a=y;break;case"topScroll":a=g;break;case"topWheel":a=_;break;case"topCopy":case"topCut":case"topPaste":a=l}a?void 0:i("86",t);var s=a.getPooled(o,e,n,r);return u.accumulateTwoPhaseDispatches(s),s},didPutListener:function(t,e,n){if("onClick"===e&&!o(t._tag)){var i=r(t),u=s.getNodeFromInstance(t);E[i]||(E[i]=a.listen(u,"click",b))}},willDeleteListener:function(t,e){if("onClick"===e&&!o(t._tag)){var n=r(t);E[n].remove(),delete E[n]}}};t.exports=S},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(65),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(49),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(49),i=n(113),a=n(384),u=n(114),s={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,s),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(49),i=n(114),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(65),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e){"use strict";function n(t){for(var e=1,n=0,o=0,i=t.length,a=i&-4;o<a;){for(var u=Math.min(o+4096,a);o<u;o+=4)n+=(e+=t.charCodeAt(o))+(e+=t.charCodeAt(o+1))+(e+=t.charCodeAt(o+2))+(e+=t.charCodeAt(o+3));e%=r,n%=r}for(;o<i;o++)n+=e+=t.charCodeAt(o);return e%=r,n%=r,e|n<<16}var r=65521;t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){var o=null==e||"boolean"==typeof e||""===e;if(o)return"";var a=isNaN(e);if(r||a||0===e||i.hasOwnProperty(t)&&i[t])return""+e;if("string"==typeof e){e=e.trim()}return e+"px"}var o=n(159),i=(n(2),o.isUnitlessNumber);t.exports=r},function(t,e,n){"use strict";function r(t){if(null==t)return null;if(1===t.nodeType)return t;var e=a.get(t);return e?(e=u(e),e?i.getNodeFromInstance(e):null):void("function"==typeof t.render?o("44"):o("45",Object.keys(t)))}var o=n(3),i=(n(19),n(6)),a=n(48),u=n(173);n(1),n(2);t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){if(t&&"object"==typeof t){var o=t,i=void 0===o[n];i&&null!=e&&(o[n]=e)}}function o(t,e){if(null==t)return t;var n={};return i(t,r,n),n}var i=(n(107),n(179));n(2);t.exports=o}).call(e,n(102))},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var o=n(113),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={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"};t.exports=r},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function o(t,e){for(var o=n(t),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=e&&a>=e)return{node:o,offset:e-i};i=a}o=n(r(o))}}t.exports=o},function(t,e,n){"use strict";function r(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function o(t){if(u[t])return u[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in s)return u[t]=e[n];return""}var i=n(8),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},u={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},function(t,e,n){"use strict";function r(t){return'"'+o(t)+'"'}var o=n(67);t.exports=r},function(t,e,n){"use strict";var r=n(168);t.exports=r.renderSubtreeIntoContainer},,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(10),s=r(u),c=n(4),l=r(c),p=n(7),f=r(p),d=n(98),h=r(d),v=n(119),m=r(v),y=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.history=(0,h.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.componentWillMount=function(){(0,s.default)(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return l.default.createElement(m.default,{history:this.history,children:this.props.children})},e}(l.default.Component);y.propTypes={basename:f.default.string,forceRefresh:f.default.bool,getUserConfirmation:f.default.func,keyLength:f.default.number,children:f.default.node},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(10),s=r(u),c=n(4),l=r(c),p=n(7),f=r(p),d=n(153),h=r(d),v=n(119),m=r(v),y=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.history=(0,h.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.componentWillMount=function(){(0,s.default)(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return l.default.createElement(m.default,{history:this.history,children:this.props.children})},e}(l.default.Component);y.propTypes={basename:f.default.string,getUserConfirmation:f.default.func,hashType:f.default.oneOf(["hashbang","noslash","slash"]),children:f.default.node},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(402),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a="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},u=n(4),s=r(u),c=n(7),l=r(c),p=n(182),f=r(p),d=n(181),h=r(d),v=function(t){var e=t.to,n=t.exact,r=t.strict,u=t.location,c=t.activeClassName,l=t.className,p=t.activeStyle,d=t.style,v=t.isActive,m=t.ariaCurrent,y=o(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return s.default.createElement(f.default,{path:"object"===("undefined"==typeof e?"undefined":a(e))?e.pathname:e,exact:n,strict:r,location:u,children:function(t){var n=t.location,r=t.match,o=!!(v?v(r,n):r);return s.default.createElement(h.default,i({to:e,className:o?[l,c].filter(function(t){return t}).join(" "):l,style:o?i({},d,p):d,"aria-current":o&&m},y))}})};v.propTypes={to:h.default.propTypes.to,exact:l.default.bool,strict:l.default.bool,location:l.default.object,activeClassName:l.default.string,className:l.default.string,activeStyle:l.default.object,style:l.default.object,isActive:l.default.func,ariaCurrent:l.default.oneOf(["page","step","location","true"])},v.defaultProps={activeClassName:"active",ariaCurrent:"true"},e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(403),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(404),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(405),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(406),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(121),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(408),i=r(o);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(10),s=r(u),c=n(4),l=r(c),p=n(7),f=r(p),d=n(154),h=r(d),v=n(120),m=r(v),y=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.history=(0,h.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.componentWillMount=function(){(0,s.default)(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return l.default.createElement(m.default,{history:this.history,children:this.props.children})},e}(l.default.Component);y.propTypes={initialEntries:f.default.array,initialIndex:f.default.number,getUserConfirmation:f.default.func,keyLength:f.default.number,children:f.default.node},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(4),s=r(u),c=n(7),l=r(c),p=n(14),f=r(p),d=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){(0,f.default)(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(s.default.Component);d.propTypes={when:l.default.bool,message:l.default.oneOfType([l.default.func,l.default.string]).isRequired},d.defaultProps={when:!0},d.contextTypes={router:l.default.shape({history:l.default.shape({block:l.default.func.isRequired}).isRequired}).isRequired},e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(4),s=r(u),c=n(7),l=r(c),p=n(10),f=r(p),d=n(14),h=r(d),v=n(100),m=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){(0,h.default)(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=(0,v.createLocation)(t.to),n=(0,v.createLocation)(this.props.to);return(0,v.locationsAreEqual)(e,n)?void(0,f.default)(!1,"You tried to redirect to the same route you're currently on: "+('"'+n.pathname+n.search+'"')):void this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(s.default.Component);m.propTypes={push:l.default.bool,from:l.default.string,to:l.default.oneOfType([l.default.string,l.default.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:l.default.shape({history:l.default.shape({push:l.default.func.isRequired,replace:l.default.func.isRequired}).isRequired,staticContext:l.default.object}).isRequired},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(10),l=r(c),p=n(14),f=r(p),d=n(4),h=r(d),v=n(7),m=r(v),y=n(34),g=n(120),_=r(g),b=function(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===o?"":o,hash:"#"===a?"":a}},w=function(t,e){return t?s({},e,{pathname:(0,y.addLeadingSlash)(t)+e.pathname}):e},C=function(t,e){if(!t)return e;var n=(0,y.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})},x=function(t){return"string"==typeof t?(0,y.parsePath)(t):b(t)},E=function(t){return"string"==typeof t?t:(0,y.createPath)(t)},S=function(t){return function(){(0,f.default)(!1,"You cannot %s with <StaticRouter>",t)}},P=function(){},T=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=a(this,t.call.apply(t,[this].concat(s))),r.createHref=function(t){return(0,y.addLeadingSlash)(r.props.basename+E(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=w(n,x(t)), o.url=E(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=w(n,x(t)),o.url=E(o.location)},r.handleListen=function(){return P},r.handleBlock=function(){return P},o=n,a(r,o)}return u(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){(0,l.default)(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=o(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:C(e,x(n)),push:this.handlePush,replace:this.handleReplace,go:S("go"),goBack:S("goBack"),goForward:S("goForward"),listen:this.handleListen,block:this.handleBlock};return h.default.createElement(_.default,s({},r,{history:i}))},e}(h.default.Component);T.propTypes={basename:m.default.string,context:m.default.object.isRequired,location:m.default.oneOfType([m.default.string,m.default.object])},T.defaultProps={basename:"",location:"/"},T.childContextTypes={router:m.default.object.isRequired},e.default=T},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(4),s=r(u),c=n(7),l=r(c),p=n(10),f=r(p),d=n(14),h=r(d),v=n(121),m=r(v),y=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){(0,h.default)(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){(0,f.default)(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,f.default)(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,o=void 0;return s.default.Children.forEach(e,function(e){if(s.default.isValidElement(e)){var i=e.props,a=i.path,u=i.exact,c=i.strict,l=i.sensitive,p=i.from,f=a||p;null==r&&(o=e,r=f?(0,m.default)(n.pathname,{path:f,exact:u,strict:c,sensitive:l}):t.match)}}),r?s.default.cloneElement(o,{location:n,computedMatch:r}):null},e}(s.default.Component);y.contextTypes={router:l.default.shape({route:l.default.object.isRequired}).isRequired},y.propTypes={children:l.default.node,location:l.default.object},e.default=y},function(t,e,n){function r(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=g.exec(t));){var l=n[0],p=n[1],f=n.index;if(a+=t.slice(i,f),i=f+l.length,p)a+=p[1];else{var d=t[i],h=n[2],v=n[3],m=n[4],y=n[5],_=n[6],b=n[7];a&&(r.push(a),a="");var w=null!=h&&null!=d&&d!==h,C="+"===_||"*"===_,x="?"===_||"*"===_,E=n[2]||u,S=m||y;r.push({name:v||o++,prefix:h||"",delimiter:E,optional:x,repeat:C,partial:w,asterisk:!!b,pattern:S?c(S):b?".*":"[^"+s(E)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function o(t,e){return u(r(t,e))}function i(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function a(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",u=n||{},s=r||{},c=s.pretty?i:encodeURIComponent,l=0;l<t.length;l++){var p=t[l];if("string"!=typeof p){var f,d=u[p.name];if(null==d){if(p.optional){p.partial&&(o+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(y(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]),!e[l].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?a(d):c(d),!e[l].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 s(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function p(t){return t.sensitive?"":"i"}function f(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,e)}function d(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(m(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",p(n));return l(i,e)}function h(t,e,n){return v(r(t,n),e,n)}function v(t,e,n){y(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=s(u);else{var c=s(u.prefix),f="(?:"+u.pattern+")";e.push(u),u.repeat&&(f+="(?:"+c+f+")*"),f=u.optional?u.partial?c+"("+f+")?":"(?:"+c+"("+f+"))?":c+"("+f+")",i+=f}}var d=s(n.delimiter||"/"),h=i.slice(-d.length)===d;return r||(i=(h?i.slice(0,-d.length):i)+"(?:"+d+"(?=$))?"),i+=o?"$":r&&h?"":"(?="+d+"|$)",l(new RegExp("^"+i,p(n)),e)}function m(t,e,n){return y(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?f(t,e):y(t)?d(t,e,n):h(t,e,n)}var y=n(316);t.exports=m,t.exports.parse=r,t.exports.compile=o,t.exports.tokensToFunction=u,t.exports.tokensToRegExp=v;var g=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(4),u=r(a),s=n(7),c=r(s),l=n(155),p=r(l),f=n(183),d=r(f),h=function(t){var e=function(e){var n=e.wrappedComponentRef,r=o(e,["wrappedComponentRef"]);return u.default.createElement(d.default,{render:function(e){return u.default.createElement(t,i({},r,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:c.default.func},(0,p.default)(e,t)};e.default=h},,function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r}function r(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}var o={escape:n,unescape:r};t.exports=o},function(t,e,n){"use strict";var r=n(50),o=(n(1),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t){var e=this;t instanceof e?void 0:r("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,l=o,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||l,n.poolSize||(n.poolSize=c),n.release=s,n},f={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u};t.exports=f},function(t,e,n){"use strict";function r(t){return(""+t).replace(b,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);y(t,i,r),o.release(r)}function u(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function s(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,o,n,m.thatReturnsArgument):null!=s&&(v.isValidElement(s)&&(s=v.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":r(s.key)+"/")+n)),o.push(s))}function c(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=u.getPooled(e,a,o,i);y(t,s,c),u.release(c)}function l(t,e,n){if(null==t)return t;var r=[];return c(t,r,null,e,n),r}function p(t,e,n){return null}function f(t,e){return y(t,p,null)}function d(t){var e=[];return c(t,e,null,m.thatReturnsArgument),e}var h=n(411),v=n(39),m=n(12),y=n(421),g=h.twoArgumentPooler,_=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,_);var w={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=w},function(t,e,n){"use strict";var r=n(39),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},function(t,e,n){"use strict";var r=n(39),o=r.isValidElement,i=n(156);t.exports=i(o)},function(t,e){"use strict";t.exports="15.6.2"},function(t,e,n){"use strict";var r=n(184),o=r.Component,i=n(39),a=i.isValidElement,u=n(187),s=n(278);t.exports=s(o,a,u)},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},function(t,e){"use strict";function n(){return r++}var r=1;t.exports=n},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o("143"),t}var o=n(50),i=n(39);n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,n,i){var f=typeof t;if("undefined"!==f&&"boolean"!==f||(t=null),null===t||"string"===f||"number"===f||"object"===f&&t.$$typeof===u)return n(i,t,""===e?l+r(t,0):e),1;var d,h,v=0,m=""===e?l:e+p;if(Array.isArray(t))for(var y=0;y<t.length;y++)d=t[y],h=m+r(d,y),v+=o(d,h,n,i);else{var g=s(t);if(g){var _,b=g.call(t);if(g!==t.entries)for(var w=0;!(_=b.next()).done;)d=_.value,h=m+r(d,w++),v+=o(d,h,n,i);else for(;!(_=b.next()).done;){var C=_.value;C&&(d=C[1],h=m+c.escape(C[0])+p+r(d,0),v+=o(d,h,n,i))}}else if("object"===f){var x="",E=String(t);a("31","[object Object]"===E?"object with keys {"+Object.keys(t).join(", ")+"}":E,x)}}return v}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=n(50),u=(n(19),n(186)),s=n(417),c=(n(1),n(410)),l=(n(2),"."),p=":";t.exports=i},function(t,e){"use strict";function n(t){return"/"===t.charAt(0)}function r(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),s=a||u;if(t&&n(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,f=i.length;f>=0;f--){var d=i[f];"."===d?r(i,f):".."===d?(r(i,f),p++):p&&(r(i,f),p--)}if(!s)for(;p--;p)i.unshift("..");!s||""===i[0]||i[0]&&n(i[0])||i.unshift("");var h=i.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}e.__esModule=!0,e.default=o,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(282),a=r(i),u=n(283),s=r(u),c=n(284),l=r(c),p=n(285),f=r(p),d=n(286),h=r(d),v=n(14),m=r(v),y=n(424),g=2,_=function(){function t(e){var n=this,r=e.addTransitionHook,i=e.stateStorage,a=e.getCurrentLocation,u=e.shouldUpdateScroll;if(o(this,t),this._onWindowScroll=function(){if(n._saveWindowPositionHandle||(n._saveWindowPositionHandle=(0,h.default)(n._saveWindowPosition)),n._windowScrollTarget){var t=n._windowScrollTarget,e=t[0],r=t[1],o=(0,l.default)(window),i=(0,f.default)(window);o===e&&i===r&&(n._windowScrollTarget=null,n._cancelCheckWindowScroll())}},this._saveWindowPosition=function(){n._saveWindowPositionHandle=null,n._savePosition(null,window)},this._checkWindowScrollPosition=function(){if(n._checkWindowScrollHandle=null,n._windowScrollTarget)return n.scrollToTarget(window,n._windowScrollTarget),++n._numWindowScrollAttempts,n._numWindowScrollAttempts>=g?void(n._windowScrollTarget=null):void(n._checkWindowScrollHandle=(0,h.default)(n._checkWindowScrollPosition))},this._stateStorage=i,this._getCurrentLocation=a,this._shouldUpdateScroll=u,"scrollRestoration"in window.history&&!(0,y.isMobileSafari)()){this._oldScrollRestoration=window.history.scrollRestoration;try{window.history.scrollRestoration="manual"}catch(t){this._oldScrollRestoration=null}}else this._oldScrollRestoration=null;this._saveWindowPositionHandle=null,this._checkWindowScrollHandle=null,this._windowScrollTarget=null,this._numWindowScrollAttempts=0,this._scrollElements={},(0,s.default)(window,"scroll",this._onWindowScroll),this._removeTransitionHook=r(function(){h.default.cancel(n._saveWindowPositionHandle),n._saveWindowPositionHandle=null,Object.keys(n._scrollElements).forEach(function(t){var e=n._scrollElements[t];h.default.cancel(e.savePositionHandle),e.savePositionHandle=null,n._saveElementPosition(t)})})}return t.prototype.registerElement=function(t,e,n,r){var o=this;this._scrollElements[t]?(0,m.default)(!1):void 0;var i=function(){o._saveElementPosition(t)},a={element:e,shouldUpdateScroll:n,savePositionHandle:null,onScroll:function(){a.savePositionHandle||(a.savePositionHandle=(0,h.default)(i))}};this._scrollElements[t]=a,(0,s.default)(e,"scroll",a.onScroll),this._updateElementScroll(t,null,r)},t.prototype.unregisterElement=function(t){this._scrollElements[t]?void 0:(0,m.default)(!1);var e=this._scrollElements[t],n=e.element,r=e.onScroll,o=e.savePositionHandle;(0,a.default)(n,"scroll",r),h.default.cancel(o),delete this._scrollElements[t]},t.prototype.updateScroll=function(t,e){var n=this;this._updateWindowScroll(t,e),Object.keys(this._scrollElements).forEach(function(r){n._updateElementScroll(r,t,e)})},t.prototype.stop=function(){if(this._oldScrollRestoration)try{window.history.scrollRestoration=this._oldScrollRestoration}catch(t){}(0,a.default)(window,"scroll",this._onWindowScroll),this._cancelCheckWindowScroll(),this._removeTransitionHook()},t.prototype._cancelCheckWindowScroll=function(){h.default.cancel(this._checkWindowScrollHandle),this._checkWindowScrollHandle=null},t.prototype._saveElementPosition=function(t){var e=this._scrollElements[t];e.savePositionHandle=null,this._savePosition(t,e.element)},t.prototype._savePosition=function(t,e){this._stateStorage.save(this._getCurrentLocation(),t,[(0,l.default)(e),(0,f.default)(e)])},t.prototype._updateWindowScroll=function(t,e){this._cancelCheckWindowScroll(),this._windowScrollTarget=this._getScrollTarget(null,this._shouldUpdateScroll,t,e),this._numWindowScrollAttempts=0,this._checkWindowScrollPosition()},t.prototype._updateElementScroll=function(t,e,n){var r=this._scrollElements[t],o=r.element,i=r.shouldUpdateScroll,a=this._getScrollTarget(t,i,e,n);a&&this.scrollToTarget(o,a)},t.prototype._getDefaultScrollTarget=function(t){var e=t.hash;return e&&"#"!==e?"#"===e.charAt(0)?e.slice(1):e:[0,0]},t.prototype._getScrollTarget=function(t,e,n,r){var o=!e||e.call(this,n,r);if(!o||Array.isArray(o)||"string"==typeof o)return o;var i=this._getCurrentLocation();return this._getSavedScrollTarget(t,i)||this._getDefaultScrollTarget(i)},t.prototype._getSavedScrollTarget=function(t,e){return"PUSH"===e.action?null:this._stateStorage.read(e,t)},t.prototype.scrollToTarget=function(t,e){if("string"==typeof e){var n=document.getElementById(e)||document.getElementsByName(e)[0];if(n)return void n.scrollIntoView();e=[0,0]}var r=e,o=r[0],i=r[1];(0,l.default)(t,o),(0,f.default)(t,i)},t}();e.default=_,t.exports=e.default},function(t,e){"use strict";function n(){return/iPad|iPhone|iPod/.test(window.navigator.platform)&&/^((?!CriOS).)*Safari/.test(window.navigator.userAgent)}e.__esModule=!0,e.isMobileSafari=n},,,function(t,e){"use strict";function n(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,r){return n(t,e[r])});var o="undefined"==typeof t?"undefined":r(t),i="undefined"==typeof e?"undefined":r(e);if(o!==i)return!1;if("object"===o){var a=t.valueOf(),u=e.valueOf();if(a!==t||u!==e)return n(a,u);var s=Object.keys(t),c=Object.keys(e);return s.length===c.length&&s.every(function(r){return n(t[r],e[r])})}return!1}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=n,t.exports=e.default}]); //# sourceMappingURL=commons-afb5782224ac01f1fa03.js.map
const fetch = require('node-fetch') const api_url = 'https://api.linksb.me' async function get(username) { let res = await fetch(`${api_url}/user/${username}`) let data = await res.json() return data } async function get_qrcode(username) { let res = await fetch(`${api_url}/qrcode/${username}`) let data = await res.json() return data } module.exports = { 'get': get, 'get_qrcode': get_qrcode }
import { dfs_d, dfs_s } from './algorithms/dfs.js'; import { bfs_d, bfs_s } from './algorithms/bfs.js'; import { dijkstra_d, dijkstra_s } from './algorithms/dijkstra.js'; import { a_star_d, a_star_s } from './algorithms/a_star.js'; window.ANIMATION_SPEED = 50; window.animation_speed = function animation_speed(speed) { ANIMATION_SPEED = 200/speed; } window.search = async function search(grid, algorithm, diagonal) { switch (algorithm) { case "dijkstra": if (diagonal) { await dijkstra_d(grid); } else { await dijkstra_s(grid); } break; case "bfs": if (diagonal) { await bfs_d(grid); } else { await bfs_s(grid); } break; case "dfs": if (diagonal) { await dfs_d(grid); } else { await dfs_s(grid); } break; case "a_star": if (diagonal) { await a_star_d(grid); } else { await a_star_s(grid); } break; } } async function draw_path(grid, path) { var start_coord = grid.getStart(); var end_coord = grid.getEnd(); grid.setCurrentMode(PATH_TILE); function direction(node, next) { if (node.getX() == next.getX() && node.getY() > next.getY()) { return NORTH; } else if (node.getX() < next.getX() && node.getY() > next.getY()) { return NORTH_EAST; } else if (node.getX() > next.getX() && node.getY() > next.getY()) { return NORTH_WEST; } else if (node.getX() == next.getX() && node.getY() < next.getY()) { return SOUTH; } else if (node.getX() < next.getX() && node.getY() < next.getY()) { return SOUTH_EAST; } else if (node.getX() > next.getX() && node.getY() < next.getY()) { return SOUTH_WEST; } else if (node.getX() < next.getX() && node.getY() == next.getY()) { return EAST; } else if (node.getX() > next.getX() && node.getY() == next.getY()) { return WEST; } } // path[0] contains the start_coord // path[len-1] contains the end_coord for (var i=0; i<path.length-1; i++) { if (!path[i].equals(start_coord) && !path[i].equals(end_coord)) { grid.draw(path[i]); } grid.setDirection(path[i], direction(path[i], path[i+1])) await new Promise(r => setTimeout(r, ANIMATION_SPEED)); } grid.setCurrentMode(undefined); } function adjacent_nodes_s(grid, coord) { var near = []; if (coord.getX() + 1 < grid.getColumns()) { if (grid.getMatrix()[coord.getX() + 1][coord.getY()].type != WALL_TILE) { near.push(new Coord(coord.getX() + 1, coord.getY())); } } if (coord.getX() - 1 >= 0) { if (grid.getMatrix()[coord.getX() - 1][coord.getY()].type != WALL_TILE) { near.push(new Coord(coord.getX() - 1, coord.getY())); } } if (coord.getY() + 1 < grid.getRows()) { if (grid.getMatrix()[coord.getX()][coord.getY() + 1].type != WALL_TILE) { near.push(new Coord(coord.getX(), coord.getY() + 1)); } } if (coord.getY() - 1 >= 0) { if (grid.getMatrix()[coord.getX()][coord.getY() - 1].type != WALL_TILE) { near.push(new Coord(coord.getX(), coord.getY() - 1)); } } return near; } function adjacent_nodes_d(grid, coord) { var near = adjacent_nodes_s(grid, coord); if (coord.getX() + 1 < grid.getColumns() && coord.getY() + 1 < grid.getRows()) { if (grid.getMatrix()[coord.getX() + 1][coord.getY() + 1].type != WALL_TILE) { near.push(new Coord(coord.getX()+1, coord.getY()+1)); } } if (coord.getX() - 1 >= 0 && coord.getY() - 1 >= 0) { if (grid.getMatrix()[coord.getX()-1][coord.getY()-1].type != WALL_TILE) { near.push(new Coord(coord.getX()-1, coord.getY()-1)); } } if (coord.getX() - 1 >= 0 && coord.getY() + 1 < grid.getRows()) { if (grid.getMatrix()[coord.getX() - 1][coord.getY() + 1].type != WALL_TILE) { near.push(new Coord(coord.getX()-1, coord.getY()+1)); } } if (coord.getX() + 1 < grid.getColumns() && coord.getY() - 1 >= 0) { if (grid.getMatrix()[coord.getX() + 1][coord.getY() - 1].type != WALL_TILE) { near.push(new Coord(coord.getX()+1, coord.getY()-1)); } } return near; } export { draw_path, adjacent_nodes_s, adjacent_nodes_d };
angular.module('app').controller('mvConfigCtrl', function($scope, $http, $interval, mvIdentity) { var update = function () { if(!mvIdentity.isAuthenticated()) { return; } $http.get("/api/config") .success(function(response) { $scope.response = response; }); }; $interval(update, 1000); update(); });
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b9e42aa"],{"002c":function(t,e,s){"use strict";var n=s("17f3"),o=s.n(n);o.a},"17f3":function(t,e,s){},6315:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("scroll",{staticClass:"search-list",attrs:{pullup:!0},on:{scrollToEnd:t.scrollToEnd}},[s("tip",{ref:"tip"}),s("ul",t._l(t.searches,function(e){return s("li",{key:e.id,staticClass:"search-item",on:{click:function(s){t.selectItem(e)}}},[s("img",{staticClass:"avatar",attrs:{src:""+t.baseURL+e.userAvatar,width:"50",height:"50"}}),s("div",{staticClass:"main"},[s("span",{staticClass:"name"},[t._v(t._s(e.userNickname))]),s("span",{staticClass:"desc"},[t._v(t._s(e.userDesc))])]),s("div",{staticClass:"btn",class:["follow","both"].includes(e.myRelation)?"btn-inactive":"btn-active",domProps:{innerHTML:t._s(t.getBtnHtml(e.myRelation))},on:{click:function(s){s.stopPropagation(),t.triggerFollow(s.target,e)}}})])}))],1)},o=[],a=(s("6762"),s("2fdb"),s("be94")),i=s("41ea"),c=s("e9fc"),r=s("2f62"),l={props:{searches:{type:Array,default:function(){return[]}}},data:function(){return{baseURL:i["a"],timer:null}},computed:Object(a["a"])({},Object(r["c"])(["loginInfo"])),methods:{selectItem:function(t){this.$emit("select",t)},scrollToEnd:function(){0!==this.searches.length&&this.$emit("scrollToEnd")},triggerFollow:function(t,e){var s=this;this.timer||(this.timer=setTimeout(function(){s.$axios.get("/api/user/".concat(s.loginInfo.userId,"/triggerFollow/").concat(e.userId)).then(function(t){if(t.data.data.includes("取消"))switch(s.$refs.tip.show("取关成功"),e.myRelation){case"follow":e.myRelation="none";break;case"both":e.myRelation="fan";break}else switch(s.$refs.tip.show("关注成功"),e.myRelation){case"fan":e.myRelation="both";break;case"none":e.myRelation="follow";break}s.$socket.emit("sendTriggerFollow",{fromUserId:s.loginInfo.userId,toUserId:e.userId}),s.timer=null}).catch(function(t){s.$refs.tip.show("网络错误"),s.timer=null})},300))},getBtnHtml:function(t){switch(t){case"fan":case"none":return"关注";case"follow":return"已关注";case"both":return"互相关注"}}},components:{Scroll:c["a"]}},u=l,f=(s("002c"),s("2877")),h=Object(f["a"])(u,n,o,!1,null,"7776be2b",null);h.options.__file="searchUserList.vue";e["default"]=h.exports}}]);
/*! * DevExtreme (Charts) * Version: 15.2.10 * Build date: May 27, 2016 * * Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict";if(!window.DevExpress||!DevExpress.MOD_VIZ_CHARTS){if(!window.DevExpress||!DevExpress.MOD_VIZ_CORE)throw Error("Required module is not referenced: viz-core");(function(n,t,i){function h(n,t,i,r){var u=0;return t==="right"?u=n.width-n.right+i:t==="left"&&(u=n.left-i-r),u}function c(n,t,i,r){var u=0;return t==="top"?u=n.top-i:t==="bottom"&&(u=n.height-n.bottom+r+i),u}var e=2,l=t.require("/utils/utils.common"),r=t.require("/ui/events/pointer/ui.events.pointer"),o=l.isDefined,u=i.min,f=i.max,s;s=t.viz.charts.ScrollBar=function(n,i){this._translator=t.viz.CoreFactory.createTranslator2D({},{},{}),this._scroll=n.rect().append(i),this._addEvents()},s.prototype={_addEvents:function(){var u=this,f=n(u._scroll.element),t=0,i=0,e=function(r){var e=(t-r.pageX)*u._scale,o=(i-r.pageY)*u._scale;f.trigger(new n.Event("dxc-scroll-move",n.extend(r,{type:"dxc-scroll-move",pointers:[{pageX:t+e,pageY:i+o}]})))};f.on(r.down,function(u){t=u.pageX,i=u.pageY,f.trigger(new n.Event("dxc-scroll-start",{pointers:[{pageX:t,pageY:i}]}));n(document).on(r.move,e)});n(document).on(r.up,function(){n(document).off(r.move,e)})},update:function(n){var i=this,t=n.position,r=n.rotated,u=r?"right":"top",f=r?"left":"bottom";return t!==u&&t!==f&&(t=u),i._scroll.attr({rotate:n.rotated?0:-90,rotateX:0,rotateY:0,fill:n.color,width:n.width,opacity:n.opacity}),i._layoutOptions={width:n.width,offset:n.offset,vertical:r,position:t},i},init:function(t,i){var r=this;return r._translateWithOffset=t.axisType==="discrete"&&!t.stick&&1||0,r._translator.update(n.extend({},t,{minVisible:null,maxVisible:null,visibleCategories:null}),n.extend({},i),{isHorizontal:!r._layoutOptions.vertical}),r},getOptions:function(){return this._layoutOptions},shift:function(n,t){this._scroll.attr({translateX:n,translateY:t})},setPane:function(n){var i=this._layoutOptions.position,t;return t=i==="left"||i==="top"?n[0]:n[n.length-1],this.pane=t.name,this._canvas=t.canvas,this},getMultipleAxesSpacing:function(){return 0},getBoundingRect:function(){var t=this._layoutOptions,e=t.vertical,i=t.offset,r=t.width,u=t.position,f=r+i,n=this._canvas;return e?{x:h(n,u,i,r),y:n.top,width:f,height:n.height-n.top-n.bottom}:{x:n.left,y:c(n,u,i,r),width:n.width-n.left-n.right,height:f}},applyLayout:function(){var t=this._canvas,n=this._layoutOptions,i=n.position,r=n.offset,u=n.width;this.shift(h(t,i,r,u),c(t,i,r,u))},setPosition:function(n,t){var i=this,r=i._translator,e=o(n)?r.translate(n,-i._translateWithOffset):r.translate("canvas_position_start"),s=o(t)?r.translate(t,i._translateWithOffset):r.translate("canvas_position_end");i._offset=u(e,s),i._scale=r.getScale(n,t),i._applyPosition(u(e,s),f(e,s))},transform:function(n,t){var i=this._translator,r=i.getCanvasVisibleArea().min,f=r-(r*t-n),u=this._offset+f/(this._scale*t);this._applyPosition(u,u+i.canvasLength/(this._scale*t))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(n,t){var s=this,r=s._translator.getCanvasVisibleArea(),o;n=f(n,r.min),n=u(n,r.max),t=u(t,r.max),t=f(t,r.min),o=i.abs(t-n),s._scroll.attr({y:n,height:o<e?e:o})}}})(jQuery,DevExpress,Math),function(n,t,i){function rt(n,t,i){for(var u=0,o=t.end-t.start,f,e,r=0;r<n.length;r++)f=n[r].getLabel(),f.isVisible()?(e=f.getBoundingRect(),u+=i?e.width:e.height):n[r]=null;if(o>0)while(u>o)u-=ut(n,i)}function ut(n,t){var e={originalValue:Infinity},u,f,i;return(r(n,function(n,t){t&&e.originalValue>=t.originalValue&&(e=t,i=n)}),i!==null)?(u=n[i].getLabel(),f=u.getBoundingRect(),u.hide(),n[i]=null,t?f.width:f.height):0}function ft(n,t,i,r){var u,f={start:i?t.left:t.top,end:i?t.width-t.right:t.height-t.bottom};(rt(n,f,i),u=k(n,function(n){return n?new nt(n,i,r):null}),u.sort(function(n,t){return n.getPointPosition()-t.getPointPosition()}),ot(u))&&(u.reverse(),st(u,f))}function et(n,t){if(n&&t)return n.getBoundingRect().end>t.getBoundingRect().start}function ot(n){for(var t,r,u,f,i=0;i<n.length;i++)for(r=n[i],t=i+1;t<n.length;t++)u=n[t],et(r,u)&&(r.toChain(u),f=!0,n[t]=null);return f}function st(n,t){for(var u,i,f,e,o,r=0;r<n.length;r++){if(i=n[r],ht(i,t))for(e=i.getBoundingRect(),u=r+1;u<n.length;u++)if((f=n[u],f)&&(o=f.getBoundingRect(),o.end>e.start-(e.end-t.end))){f.toChain(i),n[r]=i=null;break}i&&i.setRollingStockInCanvas(t)}}function ht(n,t){return n&&n.getBoundingRect().end>t.end}function nt(n,t,i){var u=n.getLabel(),r=u.getBoundingRect();return this.labels=[u],this.points=[n],this.shiftFunction=i,this._bbox={start:t?r.x:r.y,width:t?r.width:r.height,end:t?r.x+r.width:r.y+r.height},this._pointPositionInitialize=t?n.getBoundaryCoords().x:n.getBoundaryCoords().y,this}function ct(n){return{nameField:n+"Name",colorField:n+"Color",indexField:n+"Index"}}function lt(n){var t=ct(n);return{getFormatObject:function(n){var i={};return i[t.indexField]=n.id,i[t.colorField]=n.states.normal.fill,i[t.nameField]=n.text,i},textField:t.nameField}}function at(n,t,i){r(n,function(n,u){r(i.getTeamplatedFields(),function(n,t){u[t.teamplateField]=u[t.originalField]}),t.push(u)}),i.updateTeamplateFieldNames()}function vt(n,t){return(n.x<=t.x&&t.x<=n.x+n.width||n.x>=t.x&&n.x<=t.x+t.width)&&(n.y<=t.y&&t.y<=n.y+n.height||n.y>=t.y&&n.y<=t.y+t.height)}var u=t.viz,e=u.charts,a=t.require("/utils/utils.common"),v=t.require("/ui/events/ui.events.utils"),f="_reinit",y="_updateDataSource",o="_dataInit",s="_forceRender",p="_resize",w=[f,y,o,s,p],b=u.utils,h=n.noop,k=b.map,r=n.each,d=n.extend,tt=a.isArray,c=a.isDefined,g=t.viz.utils.setCanvasValues,l=.3,it=["adaptiveLayout","crosshair","equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","negativesAsZeroes","negativesAsZeros","resolveLabelOverlapping","seriesSelectionMode","pointSelectionMode","adjustOnZoom","synchronizeMultiAxes","zoomingMode","scrollingMode","useAggregation"];nt.prototype={toChain:function(n){var t=n.getBoundingRect();n.shift(t.start-this._bbox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(n.labels),this.points=this.points.concat(n.points)},getBoundingRect:function(){return this._bbox},shift:function(n){var t=this.shiftFunction;r(this.labels,function(i,r){var f=r.getBoundingRect(),u=t(f,n,r);r.shift(u.x,u.y)}),this._bbox.end-=n,this._bbox.start-=n},setRollingStockInCanvas:function(n){this._bbox.end>n.end&&this.shift(this._bbox.end-n.end)},getPointPosition:function(){return this._pointPositionInitialize},_changeBoxWidth:function(n){this._bbox.end+=n,this._bbox.width+=n}},e.overlapping={resolveLabelOverlappingInOneDirection:ft},e.BaseChart=u.BaseWidget.inherit({_eventsMap:n.extend({},u.BaseWidget.prototype._eventsMap,{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onTooltipShown:{name:"tooltipShown"},onTooltipHidden:{name:"tooltipHidden"},onDone:{name:"done"}}),_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_init:function(){var n=this;n.callBase.apply(n,arguments),n._savedBusinessRange={},n._reinit(!0)},_createThemeManager:function(){var n=this.option(),t=e.factory.createThemeManager(n,this._chartType);return t.setTheme(n.theme,n.rtlEnabled),t},_initCore:function(){var n=this;n._canvasClipRect=n._renderer.clipRect(),n._createHtmlStructure(),n._createLegend(),n._createTracker(),n._needHandleRenderComplete=!0,n.layoutManager=new e.LayoutManager,n._createScrollBar();n._$element.on("contextmenu",function(n){(v.isTouchEvent(n)||v.isPointerEvent(n))&&n.preventDefault()}).on("MSHoldVisual",function(n){n.preventDefault()})},_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(n){var t=this;g(t._canvas),t._reinitAxes(),n||(t._skipRender=!0),t._updateDataSource(),t.series||t._dataSpecificInit(!1),n||(t._skipRender=!1),t._correctAxes(),n||t._forceRender()},_correctAxes:h,_createHtmlStructure:function(){var n=this,t=n._renderer,i=t.root;n._backgroundRect=t.rect().attr({fill:"gray",opacity:.0001}).append(i),n._panesBackgroundGroup=t.g().attr({"class":"dxc-background"}).append(i),n._stripsGroup=t.g().attr({"class":"dxc-strips-group"}).linkOn(i,"strips"),n._gridGroup=t.g().attr({"class":"dxc-grids-group"}).linkOn(i,"grids"),n._axesGroup=t.g().attr({"class":"dxc-axes-group"}).linkOn(i,"axes"),n._constantLinesGroup=t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(i,"constant-lines"),n._labelAxesGroup=t.g().attr({"class":"dxc-strips-labels-group"}).linkOn(i,"strips-labels"),n._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(i,"border"),n._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(i,"series"),n._labelsGroup=t.g().attr({"class":"dxc-labels-group"}).linkOn(i,"labels"),n._crosshairCursorGroup=t.g().attr({"class":"dxc-crosshair-cursor"}).linkOn(i,"crosshair"),n._legendGroup=t.g().attr({"class":"dxc-legend",clipId:n._getCanvasClipRectID()}).linkOn(i,"legend"),n._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(i,"scroll-bar")},_disposeObjectsInArray:function(n,t){r(this[n]||[],function(n,i){t&&i?r(t,function(n,t){i[t]&&i[t].dispose()}):i&&i.dispose()}),this[n]=null},_disposeCore:function(){var t=this,n=function(n){t[n]&&(t[n].dispose(),t[n]=null)},i=function(n){t[n].linkOff()},r=this._disposeObjectsInArray;clearTimeout(t._delayedRedraw),t._renderer.stopAllAnimations(),r.call(t,"businessRanges",["arg","val"]),t.translators=null,r.call(t,"series"),n("_tracker"),n("_crosshair"),t.layoutManager=null,t.paneAxis=null,t._userOptions=null,t._canvas=null,i("_stripsGroup"),i("_gridGroup"),i("_axesGroup"),i("_constantLinesGroup"),i("_labelAxesGroup"),i("_panesBorderGroup"),i("_seriesGroup"),i("_labelsGroup"),i("_crosshairCursorGroup"),i("_legendGroup"),i("_scrollBarGroup"),n("_canvasClipRect"),n("_panesBackgroundGroup"),n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(n){return this._themeManager.getOptions(n)},_applySize:function(){this._initialized&&this._resize()},_resize:function(){this._updateLockCount?this._processRefreshData(p):this._render(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var n=this;n._tracker=new e[n._trackerType]({seriesGroup:n._seriesGroup,renderer:n._renderer,tooltip:n._tooltip,legend:n._legend,eventTrigger:n._eventTrigger})},_getTrackerSettings:function(){return{seriesSelectionMode:this._themeManager.getOptions("seriesSelectionMode"),pointSelectionMode:this._themeManager.getOptions("pointSelectionMode")}},_updateTracker:function(n){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},n)},_render:function(t){var i=this,r,u;i._initialized&&!i._skipRender&&(i._canvas.width!==0||i._canvas.height!==0)&&(i._resetIsReady(),r=i._prepareDrawOptions(t),u=r.recreateCanvas,clearTimeout(i._delayedRedraw),i.__originalCanvas=i._canvas,i._canvas=n.extend({},i._canvas),u?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,u&&i._updateCanvasClipRect(i._canvas),i._renderer.stopAllAnimations(!0),g(i._canvas),i._cleanGroups(r),i._renderElements(r))},_saveBusinessRange:h,_renderElements:function(t){var u=this,l=u._prepareToRender(t),e=u._isRotated(),o=u._isLegendInside(),a=[],s=u._getLayoutTargets(),p=n.extend({},u._canvas),f,h,v=[],y=t.drawTitle&&t.drawLegend&&t.adjustAxes,c;t.isResize||u._scheduleLoadingIndicatorHiding(),y&&(v=u._getDrawElements(t,o)),u._renderer.lock(),u._saveBusinessRange(),u.layoutManager.setOptions(u._layoutManagerOptions()),u.layoutManager.layoutElements(v,u._canvas,u._getAxisDrawingMethods(t,l,e),s,e,u._getAxesForTransform(e)),y&&u._updateCanvasClipRect(p),u._applyClipRects(l),u._appendSeriesGroups(),u._createCrosshairCursor(),r(s,function(){var n=this.canvas;a.push({left:n.left,right:n.width-n.right,top:n.top,bottom:n.height-n.bottom})}),u._scrollBar&&(f=u.businessRanges[0].arg,f.axisType==="discrete"&&f.categories&&f.categories.length<=1?h=c=i:(h=f.minVisible,c=f.maxVisible),u._scrollBar.init(f,s[0].canvas).setPosition(h,c)),u._updateTracker(a),u._updateLegendPosition(t,o),u._renderSeries(t,e,o),u._renderer.unlock()},_createCrosshairCursor:h,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(n,t,i){var r=this,u=r._themeManager,f=u.getOptions("resolveLabelOverlapping");n.hideLayoutLabels=r.layoutManager.needMoreSpaceForPanesCanvas(r._getLayoutTargets(),t)&&!u.getOptions("adaptiveLayout").keepLabels,r._drawSeries(n,t),f!=="none"&&r._resolveLabelOverlapping(f),r._adjustSeries(),r._renderTrackers(i),r._tracker.repairTooltip(),r._dataIsReady()&&r._fulfillLoadingIndicatorHiding(),r._canvas=r.__originalCanvas,r._drawn(),r._renderCompleteHandler()},_drawSeries:function(n,t){var i=this,u,f=i.series,r,e=f.length;for(i._updateSeriesDimensions(n),u=0;u<e;u++)r=f[u],i._applyExtraSettings(r,n),r.draw(i._prepareTranslators(r,u,t),n.animate&&r.getPoints().length<=n.animationPointsLimit&&i._renderer.animationEnabled(),n.hideLayoutLabels,i._getLegendCallBack(r))},_resolveLabelOverlapping:function(t){var i;switch(t){case"stack":i=this._resolveLabelOverlappingStack;break;case"hide":i=this._resolveLabelOverlappingHide;break;case"shift":i=this._resolveLabelOverlappingShift}n.isFunction(i)&&i.call(this)},_getVisibleSeries:function(){return n.grep(this.getAllSeries(),function(n){return n.isVisible()})},_resolveLabelOverlappingHide:function(){for(var i=[],r,u,e,o,t,f,s=this._getVisibleSeries(),n=0;n<s.length;n++)for(f=s[n].getVisiblePoints(),t=0;t<f.length;t++)i.push(f[t].getLabel());for(i=[].concat.apply([],i),n=0;n<i.length;n++)if(r=i[n],e=r.getBoundingRect(),r.isVisible())for(t=n+1;t<i.length;t++)u=i[t],o=u.getBoundingRect(),vt(e,o)&&u.hide()},_cleanGroups:function(){var t=this;t._stripsGroup.linkRemove().clear(),t._gridGroup.linkRemove().clear(),t._axesGroup.linkRemove().clear(),t._constantLinesGroup.linkRemove().clear(),t._labelAxesGroup.linkRemove().clear(),t._labelsGroup.linkRemove().clear(),t._crosshairCursorGroup.linkRemove().clear()},_createLegend:function(){var n=this,t=lt(n._legendDataField);n._legend=new u.Legend({renderer:n._renderer,group:n._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",textField:t.textField,getFormatObject:t.getFormatObject})},_updateLegend:function(){var n=this,i=n._themeManager,t=i.getOptions("legend"),r=n._getLegendData();t.containerBackgroundColor=i.getOptions("containerBackgroundColor"),t._incidentOccured=n._incidentOccured,n._legend.update(r,t)},_prepareDrawOptions:function(t){var r=this._getAnimationOptions(),i;return i=n.extend({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:r.enabled,animationPointsLimit:r.maxPointCountSupported},t,this.__renderOptions),c(i.recreateCanvas)||(i.recreateCanvas=i.adjustAxes&&i.drawLegend&&i.drawTitle),i},_processRefreshData:function(t){var i=n.inArray(this._currentRefreshData,w),r=n.inArray(t,w);(!this._currentRefreshData||i>=0&&r<i)&&(this._currentRefreshData=t,this._invalidate())},_getLegendData:function(){return k(this._getLegendTargets(),function(n){var r=n.legendData,t=n.getLegendStyles,i=t.normal.opacity;return n.visible||((!c(i)||i>l)&&(i=l),r.textOpacity=l),r.states={hover:t.hover,selection:t.selection,normal:d({},t.normal,{opacity:i})},r})},_getLegendOptions:function(n){return{legendData:{text:n[this._legendItemTextField],argument:n.argument,id:n.index},getLegendStyles:n.getLegendStyles(),visible:n.isVisible()}},_disposeSeries:function(){var n=this;r(n.series||[],function(n,t){t.dispose()}),n.series=null,r(n.seriesFamilies||[],function(n,t){t.dispose()}),n.seriesFamilies=null,n._needHandleRenderComplete=!0},_handleChangedOptions:function(n){var t=this,i=t._themeManager;r(n,function(n){i.resetOptions(n)}),i.update(t._options),t.callBase.apply(t,arguments),"animation"in n&&t._renderer.updateAnimationOptions(t._getAnimationOptions()),"dataSource"in n&&(t._needHandleRenderComplete=!0,t._processRefreshData(y)),"palette"in n&&(i.updatePalette(n.palette),t._refreshSeries(o)),n._has(["series","commonSeriesSettings","containerBackgroundColor","dataPrepareSettings"])&&t._refreshSeries(o),("legend"in n||"seriesTemplate"in n)&&t._processRefreshData(o),"title"in n&&t._processRefreshData(s),n._has(["valueAxis","argumentAxis","commonAxisSettings","panes","defaultPane"])&&(t._refreshSeries(f),t.paneAxis={}),"rotated"in n&&(t._createScrollBar(),t._refreshSeries(f)),("customizePoint"in n||"customizeLabel"in n)&&t._refreshSeries(f),"scrollBar"in n&&(t._createScrollBar(),t._processRefreshData(s)),"tooltip"in n&&t._organizeStackPoints(),n._has(it)&&t._processRefreshData(f),("size"in n||"margin"in n||t._currentRefreshData)&&t._invalidate()},_handleThemeOptionsCore:function(){var n=this;n._initialized&&(n._scheduleLoadingIndicatorHiding(),n.beginUpdate(),n._refreshSeries(f),n.endUpdate())},_refreshSeries:function(n){this._disposeSeries(),this._processRefreshData(n)},_refresh:function(){var n=this._currentRefreshData||s;this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[n]()},_updateCanvasClipRect:function(n){var r=this,t,i;t=Math.max(n.width-n.left-n.right,0),i=Math.max(n.height-n.top-n.bottom,0),r._canvasClipRect.attr({x:n.left,y:n.top,width:t,height:i}),r._backgroundRect.attr({x:n.left,y:n.top,width:t,height:i})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._scheduleLoadingIndicatorHiding(),this._resetZoom(),this._dataInit()},_dataInit:function(){clearTimeout(this._delayedRedraw),this._dataSpecificInit(!0)},_dataSpecificInit:function(n){var t=this;t.series=t.series||t._populateSeries(),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._collectPointsByArg(),t._tracker.updateSeries(t._getStoredSeries()),t._updateLegend(),n&&t._forceRender()},_forceRender:function(){this._render({force:!0})},_repopulateSeries:function(){var n=this,f,i=n._themeManager,t=n._dataSource.items(),o=i.getOptions("dataPrepareSettings"),e=i.getOptions("seriesTemplate");e&&(n._templatedSeries=b.processSeriesTemplate(e,t),n._populateSeries(),delete n._templatedSeries,t=n.teamplateData||t),n._groupSeries(),f=u.validateData(t,n._groupedSeries,n._incidentOccured,o),i.resetPalette(),r(n.series,function(t,i){i.updateData(f),n._processSingleSeries(i)}),n._organizeStackPoints()},_organizeStackPoints:function(){var n=this,t=n._themeManager,i=t.getOptions("tooltip").shared,u={};r(n.series||[],function(t,r){n._resetStackPoints(r),i&&n._prepareStackPoints(r,u)})},_renderCompleteHandler:function(){var n=this,t=!0;n._needHandleRenderComplete&&(r(n.series,function(n,i){t=t&&i.canRenderCompleteHandle()}),t&&(n._needHandleRenderComplete=!1,n._eventTrigger("done",{target:n})))},_getDrawElements:function(n,t){var i=this,r=[];return n.drawTitle&&r.push(i._title),n.drawLegend&&i._legend&&(i._legendGroup.linkAppend(),t||r.push(i._legend)),r},_resetZoom:h,_dataIsReady:function(){return c(this.option("dataSource"))&&this._dataSource.isLoaded()},_populateSeries:function(){var n=this,r=n._themeManager,s=!!r.getOptions("seriesTemplate"),e=s?n._templatedSeries:n.option("series"),h=tt(e)?e:e?[e]:[],l=n._getExtraOptions(),t,i,o,c,f,a=function(){n._specialProcessSeries(),n._populateBusinessRange(),n._renderer.stopAllAnimations(!0),n._updateLegend(),n._render({force:!0})};for(n._disposeSeries(),n.series=[],n.teamplateData=[],r.resetPalette(),f=0;f<h.length;f++)(t=d(!0,{},h[f],l),t.name||(t.name="Series "+(f+1).toString()),c=t.data,t.data=null,t.rotated=n._isRotated(),t.customizePoint=r.getOptions("customizePoint"),t.customizeLabel=r.getOptions("customizeLabel"),t.visibilityChanged=a,t.incidentOccured=n._incidentOccured,o=r.getOptions("series",t),n._checkPaneName(o))&&(i=u.CoreFactory.createSeries({renderer:n._renderer,seriesGroup:n._seriesGroup,labelsGroup:n._labelsGroup},o),i.isUpdated?(i.index=n.series.length,n._processSingleSeries(i),n.series.push(i),s&&at(c,n.teamplateData,i)):n._incidentOccured("E2101",[o.type]));return n.series},getAllSeries:function(){return this.series.slice()},getSeriesByName:function(n){var t=null;return r(this.series,function(i,r){if(r.name===n)return t=r,!1}),t},getSeriesByPos:function(n){return this.series[n]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},render:function(n){var t=this;return t.__renderOptions=n,t.__forceRender=n&&n.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},getSize:function(){var n=this._canvas||{};return{width:n.width,height:n.height}}})}(jQuery,DevExpress),function(n,t,i){function p(n){return v(n)?n.length===0?[{}]:n:[n]}function b(n,t,r,u){n.minVal=t.min,n.maxVal=t.max,r&&(n.minArg=n.minArg===i?u.arg.min:n.minArg,n.maxArg=n.maxArg===i?u.arg.max:n.maxArg)}var e=t.viz,a=e.charts,c=t.require("/utils/utils.common"),o=t.require("/utils/utils.date"),w="defaultAxisName",v=c.isArray,h=c.isDefined,r=n.each,l=n.noop,s=n.extend,y=e.utils.map,u="min",f="max";a.AdvancedChart=a.BaseChart.inherit({_dispose:function(){var n=this,t=this._disposeObjectsInArray;n.callBase(),n.panes=null,n._legend&&(n._legend.dispose(),n._legend=null),t.call(n,"panesBackground"),t.call(n,"seriesFamilies"),n._disposeAxes()},_reinitAxes:function(){this.translators={},this.panes=this._createPanes(),this._populateAxes()},_populateAxes:function(){function it(){return w+tt++}var t=this,c=[],l,u=t.panes,f=t._isRotated(),d=t.option("valueAxis")||{},g=t.option("argumentAxis")||{},o=p(g)[0],nt=p(d),a=[],tt=0,s,h=t._getCrosshairOptions()||{},v=h.enabled,b=v&&h.horizontalLine.visible,k=v&&h.verticalLine.visible;t._disposeAxes(),s=f?o.position==="right"?u[u.length-1].name:u[0].name:o.position==="top"?u[0].name:u[u.length-1].name,l=y(u,function(n,i){return t._createAxis("argumentAxis",o,{pane:n.name,crosshairEnabled:f?b:k},f,n.name!==s,i)}),r(nt,function(u,o){var s=[],h=o.name;if(h&&n.inArray(h,a)!==-1){t._incidentOccured("E2102");return}h&&a.push(h),o.pane&&s.push(o.pane),o.panes&&o.panes.length&&(s=s.concat(o.panes.slice(0))),s=e.utils.unique(s),s.length||s.push(i),r(s,function(n,i){c.push(t._createAxis("valueAxis",o,{name:h||it(),pane:i,priority:u,crosshairEnabled:f?k:b},f))})}),t._valueAxes=c,t._argumentAxes=l},_prepareStackPoints:function(n,t){var u=n.getPoints(),i=n.getStackName();r(u,function(n,u){var f=u.argument;t[f]||(t[f]={},t[f][null]=[]),i&&!v(t[f][i])&&(t[f][i]=[],r(t[f][null],function(n,r){r.stackName||t[f][i].push(r)})),i?(t[f][i].push(u),t[f][null].push(u)):r(t[f],function(n,t){t.push(u)}),u.stackPoints=t[f][i],u.stackName=i})},_resetStackPoints:function(n){r(n.getPoints(),function(n,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var n=this,t=n._disposeObjectsInArray;t.call(n,"_argumentAxes"),t.call(n,"_valueAxes")},_drawAxes:function(n,t,i){var u=this,f=function(n){r(n,function(n,t){t.draw(i)})},e=function(t){r(t,function(t,i){i.drawGrids(n[i.pane])})};u._restoreOriginalBusinessRange(),u._reinitTranslators(),u._prepareAxesAndDraw(f,e,t)},_restoreOriginalBusinessRange:l,_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var n=this;return y(n.series,function(t){return t.getOptions().showInLegend?n._getLegendOptions(t):null})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){for(var t=this,n=0;n<t.series.length;++n)t.series[n].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var t=this,f=[],o=[],s,i=t._themeManager,c=i.getOptions("negativesAsZeroes"),l=i.getOptions("negativesAsZeros"),u={equalBarWidth:i.getOptions("equalBarWidth"),minBubbleSize:i.getOptions("minBubbleSize"),maxBubbleSize:i.getOptions("maxBubbleSize"),barWidth:i.getOptions("barWidth"),negativesAsZeroes:h(c)?c:l};if(t.seriesFamilies&&t.seriesFamilies.length){r(t.seriesFamilies,function(n,t){t.updateOptions(u),t.adjustSeriesValues()});return}r(t.series,function(t,i){n.inArray(i.type,f)===-1&&f.push(i.type)}),r(t._getLayoutTargets(),function(n,i){s=t._getSeriesForPane(i.name),r(f,function(n,r){var f=e.CoreFactory.createSeriesFamily({type:r,pane:i.name,equalBarWidth:u.equalBarWidth,minBubbleSize:u.minBubbleSize,maxBubbleSize:u.maxBubbleSize,barWidth:u.barWidth,negativesAsZeroes:u.negativesAsZeroes,rotated:t._isRotated()});f.add(s),f.adjustSeriesValues(),o.push(f)})}),t.seriesFamilies=o},_updateSeriesDimensions:function(){for(var r=this,u=r.seriesFamilies||[],t,i,n=0;n<u.length;n++)t=u[n],i=r._getTranslator(t.pane)||{},t.updateSeriesValues(i),t.adjustSeriesDimensions(i)},_getLegendCallBack:function(n){return this._legend&&this._legend.getActionCallback(n)},_appendAxesGroups:function(){var n=this;n._stripsGroup.linkAppend(),n._gridGroup.linkAppend(),n._axesGroup.linkAppend(),n._constantLinesGroup.linkAppend(),n._labelAxesGroup.linkAppend()},_populateBusinessRange:function(n){var u=this,s=[],l=u._themeManager,h=u._isRotated(),a=l.getOptions("useAggregation"),f=u._argumentAxes,c=f[f.length-1],v=c.calcInterval,t=new e.Range({rotated:!!h}),o;u._disposeObjectsInArray("businessRanges",["arg","val"]),r(f,function(n,i){t.addRange(i.getRangeData())}),r(u._groupedSeries,function(u,f){var o=new e.Range({rotated:!!h,isValueRange:!0,pane:f.valueAxis.pane,axis:f.valueAxis.name}),c=f.valueAxis.getRangeData();o.addRange(c),r(f,function(i,r){n&&b(n,c,a,r.getRangeData());var u=r.getRangeData(n,v);o.addRange(u.val),t.addRange(u.arg)}),o.isDefined()||o.setStubData(f.valueAxis.getOptions().valueType==="datetime"?"datetime":i),f.valueAxis.getOptions().showZero&&o.correctValueZeroLevel(),o.checkZeroStick(),s.push({val:o,arg:t})}),t.isDefined()||t.setStubData(f[0].getOptions().argumentType),n&&n.notApplyMargins&&t.axisType!=="discrete"&&(o=f[0].getTranslator().getBusinessRange(),t.addRange({min:o.min,max:o.max,stick:!0})),u._correctBusinessRange(t,c),u.businessRanges=s},_correctBusinessRange:function(t,i){var l=i.getOptions().setTicksAtUnitBeginning,e={},r=i.getOptions().tickInterval,s=r;r=n.isNumeric(r)?r:o.dateToMilliseconds(r),r&&h(t[u])&&h(t[f])&&r>=Math.abs(t[f]-t[u])&&(c.isDate(t[u])?(n.isNumeric(s)?(e[u]=new Date(t[u].valueOf()-r),e[f]=new Date(t[f].valueOf()+r)):(e[u]=o.addInterval(t[u],s,!0),e[f]=o.addInterval(t[f],s,!1)),l&&(o.correctDateWithUnitBeginning(e[f],s),o.correctDateWithUnitBeginning(e[u],s))):(e[u]=t[u]-r,e[f]=t[f]+r),t.addRange(e))},_getArgumentAxes:function(){return this._argumentAxes},_getValueAxes:function(){return this._valueAxes},_processValueAxisFormat:function(){var i=this,u=i._valueAxes,t=[];r(i.series,function(){this.isFullStackedSeries()&&n.inArray(this.axis,t)===-1&&t.push(this.axis)}),r(u,function(){n.inArray(this.name,t)!==-1?this.setPercentLabelFormat():this.resetAutoLabelFormat()})},_createAxis:function(n,t,i,r,u,f){var o=this,v=s({renderer:o._renderer,incidentOccured:o._incidentOccured,axisClass:n==="argumentAxis"?"arg":"val",widgetClass:"dxc",stripsGroup:o._stripsGroup,labelAxesGroup:o._labelAxesGroup,constantLinesGroup:o._constantLinesGroup,axesContainerGroup:o._axesGroup,gridGroup:o._gridGroup},o._getAxisRenderingOptions(n)),l,a=o._prepareStripsAndConstantLines(n,t,r),c=s(!0,{},a,i,o._prepareAxisOptions(n,a,r));return u&&(c.visible=c.tick.visible=c.minorTick.visible=c.label.visible=!1,c.title={}),l=new e.axes.Axis(v),l.updateOptions(c),!u&&h(f)&&(o._displayedArgumentAxisIndex=f),l},_getTrackerSettings:function(){return s(this.callBase(),{argumentAxis:this._argumentAxes[this._displayedArgumentAxisIndex]})},_prepareStripsAndConstantLines:function(n,t,i){return t=this._themeManager.getOptions(n,t,i),t.strips&&r(t.strips,function(n){t.strips[n]=s(!0,{},t.stripStyle,t.strips[n])}),t.constantLines&&r(t.constantLines,function(n,i){t.constantLines[n]=s(!0,{},t.constantLineStyle,i)}),t},_legendDataField:"series",_getStoredSeries:function(){return this.series},_adjustSeries:l,_collectPointsByArg:l})}(jQuery,DevExpress),function(n,t,i){function g(n,t){for(var r,i=0;i<n.length;i++)if(n[i].pane===t){r=n[i].name;break}return r||(r=n[0].name),r}function nt(n,t,i){var f=[],u;r(n,function(n,i){i.pane===t&&f.push(i)}),f.length>1&&i&&r(f,function(n,t){var i=t.getOptions().grid,r=t.getOptions().minorGrid;u&&i&&i.visible?(i.visible=!1,r&&(r.visible=!1)):u=u?u:i&&i.visible})}function tt(n,t){var i;return r(n,function(n,u){r(u,function(r){if(t===r)return i=n,!1})}),i}function it(n,t,i){for(var u,r=0;r<t.length;r++)if(t[r].name===i){u=t[r],u.priority=r;break}if(!u)for(r=0;r<n.length;r++)if(n[r].name===i){u=n[r].getOptions(),u.priority=n[r].priority;break}return u}function y(n,t,i){for(var r,u=0;u<i.length;u++)if(r=i[u],r.name===t&&r.pane===n)return r}function rt(n,t,i,u,f){var y=~~((i<u?i:u)/2),p=f.width||0,s=p<y?p:y;n=n+s/2,t=t+s/2,i=i-s,u=u-s;var h=n+i,c=t+u,o=[],e=[],l,a=0,v=0,w={top:[[n,t],[h,t]],right:[[h,t],[h,c]],bottom:[[h,c],[n,c]],left:[[n,c],[n,t]]};r(w,function(n){var t=!!f[n];a=a*2+~~t});switch(a){case 13:case 9:l=["left","top","right","bottom"];break;case 11:l=["bottom","left","top","right"];break;default:l=["top","right","bottom","left"]}return r(l,function(n,t){var i=!!f[t];!v&&e.length&&(o.push(e),e=[]),i&&r(w[t].slice(v),function(n,t){e=e.concat(t)}),v=~~i}),e.length&&o.push(e),o.length===1&&(o=o[0]),{points:o,pathType:a===15?"area":"line"}}function h(n,t){r(n||[],function(n,i){i&&i.attr(t)})}function p(n){r(n,function(n,t){r(t,function(n,t){t.arg.reinit(),t.val.reinit()})})}function ut(n,t){return n.priority-t.priority}function w(n,t){var i=!1;return r(n,function(n,r){if(r.name===t)return i=!0,!1}),i}var u=t.viz,f=u.charts,l=t.require("/utils/utils.common"),b=t.require("/componentRegistrator"),a=t.viz.utils,k=5,s="default",d=[{name:s,border:{}}],v=u.utils.map,r=n.each,o=n.extend,c=l.isArray,e=l.isDefined;b("dxChart",u.charts,f.AdvancedChart.inherit({_chartType:"chart",_initCore:function(){this.paneAxis={},this._panesClipRects={},this.callBase()},_disposeCore:function(){var n=this,t=this._disposeObjectsInArray,i=n._panesClipRects;n.callBase(),t.call(i,"fixed"),t.call(i,"base"),t.call(i,"wide"),n._panesClipRects=null},_correctAxes:function(){this._correctValueAxes()},_getExtraOptions:n.noop,_processSingleSeries:n.noop,_groupSeries:function(){var t=this,o=t.panes,u=t._valueAxes,s=v(o,function(n){return n.name}),e=t.series,i=t.paneAxis,h=t._themeManager.getOptions("synchronizeMultiAxes"),f=t._groupedSeries=[];r(e,function(n,t){t.axis=t.axis||g(u,t.pane),t.axis&&(i[t.pane]=i[t.pane]||{},i[t.pane][t.axis]=!0)}),r(u,function(t,r){r.name&&r.pane&&n.inArray(r.pane,s)!==-1&&(i[r.pane]=i[r.pane]||{},i[r.pane][r.name]=!0)}),t._correctValueAxes(),r(i,function(n,t){nt(u,n,h),r(t,function(t){var i=[];r(e,function(r,u){u.pane===n&&u.axis===t&&i.push(u)}),f.push(i),i.valueAxis=y(n,t,u),i.valueOptions=i.valueAxis.getOptions()})}),f.argumentAxes=t._argumentAxes,f.argumentOptions=f.argumentAxes[0].getOptions()},_cleanPanesClipRects:function(n){var t=this,i=t._panesClipRects[n];r(i||[],function(n,t){t&&t.dispose()}),t._panesClipRects[n]=[]},_createPanes:function(){var t=this,n=t.option("panes"),u=0,i;return n&&(!c(n)||n.length)||(n=d),t._cleanPanesClipRects("fixed"),t._cleanPanesClipRects("base"),t._cleanPanesClipRects("wide"),i=t.option("defaultPane"),n=o(!0,[],c(n)?n:[n]),r(n,function(n,t){t.name=e(t.name)?t.name:s+u++}),e(i)?w(n,i)||(t._incidentOccured("W2101",[i]),i=n[n.length-1].name):i=w(n,s)?s:n[n.length-1].name,t.defaultPane=i,n=t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(n,t,i){return{isHorizontal:n==="argumentAxis"!==i}},_checkPaneName:function(t){var i=v(this.panes,function(n){return n.name});return t.pane=t.pane||this.defaultPane,n.inArray(t.pane,i)!==-1},_correctValueAxes:function(){var t=this,o=t._isRotated(),f=t.option("valueAxis")||{},s=c(f)?f:[f],i=t._valueAxes||[],h=i[0].name,u=t.paneAxis,e={};r(i,function(n,i){var r;i.pane||(r=tt(u,i.name),r||(r=t.defaultPane,(u[r]=u[r]||{})[i.name]=!0),i.setPane(r))}),r(t.panes,function(n,t){var i=t.name;u[i]||(u[i]={},u[i][h]=!0)}),r(u,function(n,u){r(u,function(r){var u;e[r+"-"+n]=!0,y(n,r,i)||(u=it(i,s,r),u||(t._incidentOccured("W2102",[r]),u={name:r,priority:i.length}),i.push(t._createAxis("valueAxis",u,{pane:n,name:r},o)))})}),t._valueAxes=n.grep(i,function(n){return!!e[n.name+"-"+n.pane]}).sort(ut)},_getSeriesForPane:function(n){var t=[];return r(this.series,function(i,r){r.pane===n&&t.push(r)}),t},_createTranslator:function(n,t,i){return u.CoreFactory.createTranslator2D(n,t,i)},_createPanesBorderOptions:function(){var t=this._themeManager.getOptions("commonPaneSettings").border,n={};return r(this.panes,function(i,r){n[r.name]=o(!0,{},t,r.border)}),n},_createScrollBar:function(){var n=this,t=n._themeManager.getOptions("scrollBar")||{},i=n._scrollBarGroup;t.visible?(t.rotated=n._isRotated(),n._scrollBar=(n._scrollBar||f.factory.createScrollBar(n._renderer,i)).update(t)):(i.linkRemove(),n._scrollBar&&n._scrollBar.dispose(),n._scrollBar=null)},_prepareToRender:function(n){var t=this,i=t._createPanesBorderOptions();return t._createPanesBackground(),t._appendAxesGroups(),t._transformed&&t._resetTransform(),t._createTranslators(n),t._options.useAggregation&&r(t.series,function(n,i){i.resamplePoints(t._getTranslator(i.pane,i.axis).arg,t._zoomMinArg,t._zoomMaxArg)}),(t._options.useAggregation||e(t._zoomMinArg)||e(t._zoomMaxArg))&&(t._populateBusinessRange({adjustOnZoom:t._themeManager.getOptions("adjustOnZoom"),minArg:t._zoomMinArg,maxArg:t._zoomMaxArg,notApplyMargins:t._notApplyMargins}),t._updateTranslators()),i},_isLegendInside:function(){return this._legend&&this._legend.getPosition()==="inside"},_renderAxes:function(n,t,i,r){n&&n.recreateCanvas&&a.updatePanesCanvases(this.panes,this._canvas,i),this._drawAxes(t,n,r)},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(n){var t=this,r=t._getCanvasClipRectID(),i;for(t._drawPanesBorders(n),t._createClipRectsForPanes(),i=0;i<t._argumentAxes.length;i++)t._argumentAxes[i].applyClipRects(t._getElementsClipRectID(t._argumentAxes[i].pane),r);for(i=0;i<t._valueAxes.length;i++)t._valueAxes[i].applyClipRects(t._getElementsClipRectID(t._valueAxes[i].pane),r);t._fillPanesBackground()},_updateLegendPosition:function(t,r){var s=this;if(t.drawLegend&&s._legend&&r){var u=s.panes,e=o({},u[0].canvas),h=new f.LayoutManager;e.right=u[u.length-1].canvas.right,e.bottom=u[u.length-1].canvas.bottom,h.setOptions({width:0,height:0}),h.layoutElements([s._legend],e,n.noop,[{canvas:e}],i,{horizontalAxes:[],verticalAxes:[]})}},_prepareTranslators:function(n,t,i){var u=this._getTranslator(n.pane,n.axis),r={};return r[i?"x":"y"]=u.val,r[i?"y":"x"]=u.arg,r},_applyExtraSettings:function(n){var i=this,r=i._getPaneIndex(n.pane),u=i._panesClipRects,f=u.wide[r];n.setClippingParams(u.base[r].id,f&&f.id,i._getPaneBorderVisibility(r))},_createTranslators:function(n){var t=this,f=t._isRotated(),i;n.recreateCanvas&&(t.translators=i={},a.updatePanesCanvases(t.panes,t._canvas,f),r(t.paneAxis,function(n,e){i[n]=i[n]||{},r(e,function(r){var e=t._createTranslator(new u.Range(t._getBusinessRange(n,r).val),t._getCanvasForPane(n),{isHorizontal:!!f});e.pane=n,e.axis=r,i[n][r]={val:e}})}),r(t._argumentAxes,function(n,e){var o=t._createTranslator(new u.Range(t._getBusinessRange(e.pane).arg),t._getCanvasForPane(e.pane),{isHorizontal:!f});r(i[e.pane],function(n,t){t.arg=o})}))},_updateTranslators:function(){var n=this;r(n.translators,function(t,i){r(i,function(i,r){r.arg.updateBusinessRange(new u.Range(n._getBusinessRange(t).arg)),delete r.arg._originalBusinessRange,r.val.updateBusinessRange(new u.Range(n._getBusinessRange(t,i).val)),delete r.val._originalBusinessRange})})},_getAxesForTransform:function(n){return{verticalAxes:n?this._getArgumentAxes():this._getValueAxes(),horizontalAxes:n?this._getValueAxes():this._getArgumentAxes()}},_getAxisDrawingMethods:function(n,t,i){var r=this;return function(u){r._renderAxes(n,t,i,u)}},_reinitTranslators:function(){var n=this;r(n._argumentAxes,function(t,i){var r=n._getTranslator(i.pane);r&&(r.arg.reinit(),i.setTranslator(r.arg,r.val))}),r(n._valueAxes,function(t,i){var r=n._getTranslator(i.pane,i.name);r&&(r.val.reinit(),i.setTranslator(r.val,r.arg))})},_saveBusinessRange:function(){var t=this._savedBusinessRange;n.each(this.translators,function(i,r){t[i]={},n.each(r,function(r,u){t[i][r]={},t[i][r].arg=n.extend(!0,{},u.arg.getBusinessRange()),t[i][r].val=n.extend(!0,{},u.val.getBusinessRange())})})},_restoreOriginalBusinessRange:function(){var t=this._savedBusinessRange;n.each(this.translators,function(i,r){n.each(r,function(r,u){u.arg.updateBusinessRange(n.extend(!0,{},t[i][r].arg)),u.val.updateBusinessRange(n.extend(!0,{},t[i][r].val))})})},_prepareAxesAndDraw:function(n,t,i){var r=this,u=0,e=r.layoutManager,o=r._isRotated(),s=0,y=r._themeManager.getOptions("synchronizeMultiAxes"),h=r._getLayoutTargets(),c=o?r._argumentAxes:r._valueAxes,l=o?r._valueAxes:r._argumentAxes,a=l,v=c;r._scrollBar&&(r._scrollBar.setPane(h),o?v=[r._scrollBar].concat(v):a=a.concat([r._scrollBar]));do{for(u=0;u<r._argumentAxes.length;u++)r._argumentAxes[u].resetTicks();for(u=0;u<r._valueAxes.length;u++)r._valueAxes[u].resetTicks();y&&f.multiAxesSynchronizer.synchronize(r._valueAxes),n(l),e.requireAxesRedraw=!1,i.adjustAxes&&(e.applyHorizontalAxesLayout(a,h,o),e.stopDrawAxes||p(r.translators)),n(c),i.adjustAxes&&!e.stopDrawAxes&&(e.applyVerticalAxesLayout(v,h,o),e.stopDrawAxes||p(r.translators)),s=s+1}while(!e.stopDrawAxes&&e.requireAxesRedraw&&s<k);t(c),t(l),r._scrollBar&&r._scrollBar.applyLayout()},_getPanesParameters:function(){for(var t=this,i=t.panes,r=[],n=0;n<i.length;n++)t._getPaneBorderVisibility(n)&&r.push({coords:i[n].borderCoords,clipRect:t._panesClipRects.fixed[n]});return r},_createCrosshairCursor:function(){var n=this,t=n._themeManager.getOptions("crosshair")||{},i=n._displayedArgumentAxisIndex,u=n._isRotated()?[n._valueAxes,[n._argumentAxes[i]]]:[[n._argumentAxes[i]],n._valueAxes],r={canvas:n._getCommonCanvas(),panes:n._getPanesParameters(),axes:u};t&&t.enabled&&(n._crosshair?n._crosshair.update(t,r):n._crosshair=f.factory.createCrosshair(n._renderer,t,r,n._crosshairCursorGroup),n._crosshair.render())},_getCommonCanvas:function(){for(var t,n,r=this.panes,i=0;i<r.length;i++)t=r[i].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=o({},t);return n},_createPanesBackground:function(){var n=this,f=n._themeManager.getOptions("commonPaneSettings").backgroundColor,t,e=n._renderer,u,i,r=[];for(n._panesBackgroundGroup.clear(),i=0;i<n.panes.length;i++){if(t=n.panes[i].backgroundColor||f,!t||t==="none"){r.push(null);continue}u=e.rect(0,0,0,0).attr({fill:t,"stroke-width":0}).append(n._panesBackgroundGroup),r.push(u)}n.panesBackground=r},_fillPanesBackground:function(){var t=this,n;r(t.panes,function(i,r){n=r.borderCoords,t.panesBackground[i]!==null&&t.panesBackground[i].attr({x:n.left,y:n.top,width:n.width,height:n.height})})},_calcPaneBorderCoords:function(n){var i=n.canvas,t=n.borderCoords=n.borderCoords||{};t.left=i.left,t.top=i.top,t.right=i.width-i.right,t.bottom=i.height-i.bottom,t.width=Math.max(t.right-t.left,0),t.height=Math.max(t.bottom-t.top,0)},_drawPanesBorders:function(n){var t=this,i=t._isRotated();t._panesBorderGroup.linkRemove().clear(),r(t.panes,function(r,u){var e,f=n[u.name],o,s={fill:"none",stroke:f.color,"stroke-opacity":f.opacity,"stroke-width":f.width,dashStyle:f.dashStyle,"stroke-linecap":"square"};(t._calcPaneBorderCoords(u,i),f.visible)&&(e=u.borderCoords,o=rt(e.left,e.top,e.width,e.height,f),t._renderer.path(o.points,o.pathType).attr(s).append(t._panesBorderGroup))}),t._panesBorderGroup.linkAppend()},_createClipRect:function(n,t,i,r,u,f){var o=this,e=n[t];e?e.attr({x:i,y:r,width:u,height:f}):(e=o._renderer.clipRect(i,r,u,f),n[t]=e)},_createClipRectsForPanes:function(){var n=this,t=n._canvas;r(n.panes,function(i,u){var l=!1,f=u.borderCoords,e=f.left,o=f.top,s=f.width,h=f.height,c=n._panesClipRects;n._createClipRect(c.fixed,i,e,o,s,h),n._createClipRect(c.base,i,e,o,s,h),r(n.series,function(n,t){t.pane===u.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(l=!0)}),l?(n._isRotated()?(o=0,h=t.height):(e=0,s=t.width),n._createClipRect(c.wide,i,e,o,s,h)):c.wide.push(null)})},_getPaneIndex:function(n){var t;return r(this.panes,function(i,r){if(r.name===n)return t=i,!1}),t},_getPaneBorderVisibility:function(n){var i=this._themeManager.getOptions("commonPaneSettings").border.visible,r=this.panes[n]||{},t=r.border||{};return"visible"in t?t.visible:i},_getElementsClipRectID:function(n){return this._panesClipRects.fixed[this._getPaneIndex(n)].id},_getTranslator:function(n,t){var u=this.translators[n],i=null;return u?(i=u[t],i||r(u,function(n,t){return i=t,!1}),i):i},_getCanvasForPane:function(n){for(var i=this.panes,r=i.length,t=0;t<r;t++)if(i[t].name===n)return i[t].canvas},_getBusinessRange:function(n,t){for(var r=this.businessRanges||[],f=r.length,u,i=0;i<f;i++)if(r[i].val.pane===n&&r[i].val.axis===t){u=r[i];break}if(!u)for(i=0;i<f;i++)if(r[i].val.pane===n){u=r[i];break}return u},_transformArgument:function(n,t){var i=this,o=i._isRotated(),f,u,e=i._panesClipRects;i._transformed||(i._transformed=!0,i._labelsGroup.remove(),i._resetIsReady(),r(i.series||[],function(n,t){t.applyClip()})),o?(f={translateY:n,scaleY:t},u={translateY:-n/t,scaleY:1/t}):(f={translateX:n,scaleX:t},u={translateX:-n/t,scaleX:1/t}),h(e.base,u),h(e.wide,u),i._seriesGroup.attr(f),i._scrollBar&&i._scrollBar.transform(-n,t)},_resetTransform:function(){var n=this,t={translateX:0,translateY:0,scaleX:null,scaleY:null},i=n._panesClipRects;h(i.base,t),h(i.wide,t),n._seriesGroup.attr(t),r(n.series||[],function(n,t){t.resetClip()}),n._transformed=!1},_getTrackerSettings:function(){var n=this,t=n._themeManager;return o(this.callBase(),{chart:n,zoomingMode:t.getOptions("zoomingMode"),scrollingMode:t.getOptions("scrollingMode"),rotated:n._isRotated(),crosshair:n._getCrosshairOptions().enabled?n._crosshair:null})},_resolveLabelOverlappingStack:function(){var n=this,t=n._isRotated(),i=t?function(n,t){return{x:n.x-t,y:n.y}}:function(n,t){return{x:n.x,y:n.y-t}};r(n.seriesFamilies,function(u,e){r(e.getStackPoints(),function(u,e){r(e,function(r,u){f.overlapping.resolveLabelOverlappingInOneDirection(u,n._getCommonCanvas(),t,i)})})})},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(n,t,i){var r=this,u;(e(n)||e(t))&&(u=r._argumentAxes[0].zoom(n,t,i),r._zoomMinArg=u.min,r._zoomMaxArg=u.max,r._notApplyMargins=i,r._render({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:!1,animate:!1}))},_resetZoom:function(){var n=this;n._zoomMinArg=n._zoomMaxArg=i,n._argumentAxes[0]&&n._argumentAxes[0].resetZoom()},getVisibleArgumentBounds:function(){var n=this._argumentAxes[0].getTranslator().getBusinessRange(),i=n.axisType==="discrete",t=n.categories;return{minVisible:i?n.minVisible||t[0]:n.minVisible,maxVisible:i?n.maxVisible||t[t.length-1]:n.maxVisible}}}))}(jQuery,DevExpress),function(n,t,i){function w(n,t){var i=this;return i.index=n,i.fullState=0,i._points=t,i._selectedPointsCount=0,i}var e=t.viz,s=e.charts,b=t.require("/utils/utils.math"),k=t.require("/utils/utils.common"),d=t.require("/componentRegistrator"),v=e.series.helpers.consts.pieSeriesSpacing,g="_reinit",nt="_dataInit",tt=["startAngle","innerRadius","segmentsDirection","type"],y=n.extend,u=n.each,r=n.noop,it=e.utils.getVerticallyShiftedAngularCoords,f=e.series.helpers.consts.states,p=f.selectedMark,o=f.hoverMark,h=f.hover,c=f.normal,rt=f.selection,l=f.applyHover,a=f.resetItem;w.prototype={isHovered:function(){return!!(this.fullState&1)},setHoverState:function(n,t,i){var r=this;n&&!r.isHovered()?(r._changeStyle(i,l,h),r.fullState|=o):!n&&r.isHovered()&&(r._changeStyle(i,a,c),r.fullState&=~o)},_changeStyle:function(n,t,i){var r=this;r._selectedPointsCount||n(t),u(r._points||[],function(n,t){t.isSelected()||t.applyStyle(i)})},setPointHoverState:function(n){var t=n.point;t.fullState|=o,t.isSelected()||(t.applyStyle(h),this._selectedPointsCount||n.legendCallback(l))},releasePointHoverState:function(n){var t=n.point;t.fullState&=~o,t.isSelected()||(t.applyStyle(c),this._selectedPointsCount||n.legendCallback(a))},setPointSelectedState:function(n){var t=this,i=n.point;i.fullState|=p,i.applyStyle(rt),t._selectedPointsCount||n.legendCallback(f.applySelected),t._selectedPointsCount++},releasePointSelectedState:function(n){var i=this,t=n.point,r;t.fullState&=~p,t.isHovered()||i.isHovered()?(t.applyStyle(h),r=l):(t.applyStyle(c),r=a),i._selectedPointsCount--,i._selectedPointsCount||n.legendCallback(r)}},d("dxPieChart",e.charts,s.BaseChart.inherit({_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),y(this._deprecatedOptions,{"series.innerRadius":{since:"15.2",message:"Use the 'innerRadius' option instead"},"series.startAngle":{since:"15.2",message:"Use the 'startAngle' option instead"},"series.segmentsDirection":{since:"15.2",message:"Use the 'segmentsDirection' option instead"},"series.type":{since:"15.2",message:"Use the 'type' option instead"}})},_chartType:"pie",_layoutManagerOptions:function(){var n=this._themeManager.getOptions("diameter");return k.isNumber(n)?n>1?n=1:n<0&&(n=0):n=i,y(!0,{},this.callBase(),{piePercentage:n})},_handleChangedOptions:function(n){this.callBase.apply(this,arguments),"diameter"in n&&this._processRefreshData(g),n._has(tt)&&this._refreshSeries(nt)},_groupSeries:function(){this.series.valueOptions={valueType:"numeric"},this._groupedSeries=[this.series],this._groupedSeries.argumentOptions=this.series[0]&&this.series[0].getOptions()},_populateBusinessRange:function(){var n=[],i=this.series,t;this._disposeObjectsInArray("businessRanges"),u(i,function(i,r){var u=new e.Range;t=r.getRangeData(),u.addRange(t.val),u.isDefined()||u.setStubData(),n.push(u)}),this.businessRanges=n},_specialProcessSeries:function(){u(this.series,function(n,t){t.arrangePoints()})},_createTranslator:function(n){return e.CoreFactory.createTranslator1D(n.min,n.max,360,0)},_checkPaneName:function(){return!0},_processSingleSeries:function(n){n.arrangePoints()},_collectPointsByArg:function(){var f=this,t={},e={},n,r=0;u(f.series,function(f,o){var s={},h;u(o.getPoints(),function(u,f){var o=f.argument;s[o]=++s[o]||0,h=s[o],n=e[o+h],n===i?(f.index=e[o+h]=r,t[r]=[f],r++):(f.index=n,t[n].push(f))})}),f._collectionPointsArg=t},_getLegendTargets:function(){var t=this,n=[];return u(t._collectionPointsArg,function(i,r){u(r,function(i,r){i===0?n.push(t._getLegendOptions(r)):n[n.length-1].visible||(n[n.length-1].visible=r.isVisible())})}),n},_getAxisDrawingMethods:r,_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getAxesForTransform:function(){return{verticalAxes:[],horizontalAxes:[]}},_getLayoutSeries:function(n,t){var i=this,r,e=i._canvas,f=!1;return r=i.layoutManager.applyPieChartSeriesLayout(e,n,!0),u(n,function(n,t){t.correctPosition(r),f=t.drawLabelsWOPoints(i._createTranslator(i.businessRanges[n]))||f}),f&&(r=i.layoutManager.applyPieChartSeriesLayout(e,n,t.hideLayoutLabels)),r},_updateSeriesDimensions:function(n){var r=this,f=r._getVisibleSeries(),e=f.length,i,o,t;e&&(t=r._getLayoutSeries(f,n),o=(t.radiusOuter-t.radiusInner-v*(e-1))/e,i=t.radiusInner,r._setCenter({x:t.centerX,y:t.centerY}),u(f,function(n,t){t.correctRadius({radiusInner:i,radiusOuter:i+o}),i+=o+v}))},_prepareTranslators:function(n,t){return this._createTranslator(this.businessRanges[t])},_getLegendCallBack:function(){var n=this._legend;return function(t){return n.getActionCallback(t)}},_adjustSeries:function(){u(this.series,function(n,t){t.adjustLabels()})},_prepareStackPoints:r,_resetStackPoints:r,_applyExtraSettings:r,_resolveLabelOverlappingShift:function(){function i(n,t){return it(n,-t,f)}var t=this,r=t.series,f=t._center;u(r,function(r,u){if(u.getOptions().label.position!=="inside"){var o=u.getVisiblePoints(),f=[],e=[];n.each(o,function(n,t){var i=b.normalizeAngle(t.middleAngle);(i<=90||i>=270?e:f).push(t)}),s.overlapping.resolveLabelOverlappingInOneDirection(f,t._canvas,!1,i),s.overlapping.resolveLabelOverlappingInOneDirection(e,t._canvas,!1,i)}})},_setCenter:function(n){this._center=n},_getStoredSeries:function(){return n.map(this._collectionPointsArg,function(n,t){return new w(t,n)})},getSeries:function(){return t.require("/errors").log("W0002","dxPieChart","getSeries","15.2","Use the 'getAllSeries' method instead"),this.series[0]},_legendDataField:"point",_legendItemTextField:"argument",_updateLegendPosition:r,_renderTrackers:r,_trackerType:"PieTracker",_createScrollBar:r,_updateAxesLayout:r,_applyClipRects:r,_appendAdditionalSeriesGroups:r,_prepareToRender:r,_isLegendInside:r,_renderAxes:r,_isRotated:r,_seriesPopulatedHandlerCore:r,_reinitAxes:r,_correctAxes:r,_getExtraOptions:function(){var n=this;return{startAngle:n.option("startAngle"),innerRadius:n.option("innerRadius"),segmentsDirection:n.option("segmentsDirection"),type:n.option("type")}}}))}(jQuery,DevExpress),function(n,t){var f=t.viz.charts,e=t.require("/componentRegistrator"),o=t.require("/utils/utils.math"),u=t.viz,r=n.noop,s="default",h="_reinit",c=f.AdvancedChart.inherit({_chartType:"polar",_createPanes:function(){return[{name:s}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(n){var i=n==="argumentAxis",t=i?"circular":"linear",r=this.option("useSpiderWeb");return r&&(t+="Spider"),{axisType:"polarAxes",drawingType:t}},_prepareAxisOptions:function(n,t){var i=n==="argumentAxis";return{type:this.option("useSpiderWeb")&&i?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:i}},_handleChangedOptions:function(n){this.callBase.apply(this,arguments),"useSpiderWeb"in n&&this._processRefreshData(h)},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_groupSeries:function(){this._groupedSeries=[this.series],this._groupedSeries[0].valueAxis=this._valueAxes[0],this._groupedSeries[0].valueOptions=this._valueAxes[0].getOptions(),this._groupedSeries.argumentAxes=this._argumentAxes,this._groupedSeries.argumentOptions=this._argumentAxes[0].getOptions()},_prepareToRender:function(){return this._appendAxesGroups(),{}},_renderAxes:function(n,t,i,r){this._drawAxes({},n,r)},_getAxisDrawingMethods:function(n,t,i,r){var u=this;return function(){u._renderAxes(n,t,i,r)}},_reinitTranslators:function(){var n=this,r=n._valueAxes,o=n._argumentAxes,i=n._createTranslator({arg:new u.Range(n.businessRanges[0].arg),val:new u.Range(n.businessRanges[0].val)}),f=i.getComponent("arg"),e=i.getComponent("val"),t=0;for(n.translator=i,o[0].setTranslator(f,e),t;t<r.length;t++)r[t].setTranslator(e,f)},_prepareAxesAndDraw:function(t,i){var r=this,u=r._valueAxes,f=r._argumentAxes,e=f[0];r._calcCanvas(e.measureLabels(!0)),r.translator.reinit(),t(f),n.each(u,function(n,t){t.setSpiderTicks(e.getSpiderTicks())}),t(u),i(f),i(u)},_calcCanvas:function(n){var t=this.translator.canvas;t.left+=n.width,t.right+=n.width,t.top+=n.height,t.bottom+=n.height},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getAxesForTransform:function(){var n=this._getArgumentAxes();return{verticalAxes:n,horizontalAxes:n}},_getTranslator:function(){var n=this.translator;return{val:n,arg:n}},_prepareTranslators:function(){return this.translator},_createTranslator:function(t){var f=this._themeManager,e=this.option("argumentAxis"),i=f.getOptions("argumentAxis",e)||{},r=isFinite(i.startAngle)?o.normalizeAngle(i.startAngle):0;return new u.PolarTranslator(t,n.extend(!0,{},this._canvas),{startAngle:r,endAngle:r+360})},_getSeriesForPane:function(){return this.series},_applyExtraSettings:r,_updateLegendPosition:r,_createScrollBar:r,_applyClipRects:r,_isRotated:r,_getCrosshairOptions:r,_isLegendInside:r,_processSingleSeries:r});e("dxPolarChart",f,c)}(jQuery,DevExpress),function(n,t,i){function l(n,t,i){n&&i[t]>0&&(r(n,function(n,r){var u=r.getBoundingRect();r.updateSize(),i[t]-=u[t]-r.getBoundingRect()[t]}),i[t]>0&&r(n,function(n,t){t.updateSize(!0)}))}function a(n,t,i){var r;return r=i<n?n:t<i?t:i}function v(n){if(n._label.isVisible()&&n._label.getLayoutOptions().position!=="inside")return n._label.getBoundingRect()}function k(n,t,i,e,o){var s=!1;return r(n,function(n,h){if(s)return!1;r(h.getVisiblePoints(),function(n,r){var h=v(r),c,l;h&&(c=a(h.x,h.x+h.width,t),l=a(h.y,h.y+h.height,i),e=f(u(nt(c,l,t,i)-w,o),e),s=!0)})}),e}function d(n){var t=[],i=0;return r(n,function(n,f){var e=0;r(f.getVisiblePoints(),function(n,t){var i=v(t);i&&(e=u(i.width+b,e))}),t.push(e),i+=e}),{sizes:t,common:i}}function g(n,t,i,r,u){for(var o,s=(r.width-r.left-r.right)/2,f=0;f<i.length;f++){if(n[f]===0){o&&(o+=n[f-1]);continue}o=e(o?o+n[f-1]:t),i[f].correctLabelRadius(o),u&&f!==i.length-1&&(n[f]=u,i[f].setVisibleArea({left:s-t-u*(f+1),right:r.width-(s+t+u*(f+1)),top:r.top,bottom:r.bottom,width:r.width,height:r.height}))}}function nt(n,t,i,r){return p((n-i)*(n-i)+(t-r)*(t-r))}function tt(n){var t;return n.type==="pie"?t=0:(t=o(n.innerRadius)?Number(n.innerRadius):.5,t=t<.2?.2:t,t=t>.8?.8:t),t}function it(n){return!!(n.x||n.y||n.width||n.height)}function rt(n,t){var i,f,e=!1;return r(n,function(n,o){i=o.canvas,r(t,function(n,t){f="delta"+t,i[f]=u(i[f]-(i[t.toLowerCase()]-i["original"+t]),0),i[f]>0&&(e=!0)})}),e}function ut(n,t){var i=t[0];return r(t,function(t,r){n===r.name&&(i=r)}),i}function ft(n,t){var i=!1,f=0,e=0,o=0,s=0;return r(n,function(n,t){f=u(f,t.canvas.deltaLeft),e=u(e,t.canvas.deltaRight),o=u(o,t.canvas.deltaTop),s=u(s,t.canvas.deltaBottom)}),t?r(n,function(n,t){t.canvas.top+=o,t.canvas.bottom+=s,t.canvas.right+=t.canvas.deltaRight,t.canvas.left+=t.canvas.deltaLeft}):r(n,function(n,t){t.canvas.top+=t.canvas.deltaTop,t.canvas.bottom+=t.canvas.deltaBottom,t.canvas.right+=e,t.canvas.left+=f}),r(n,function(n,t){t.canvas.top+t.canvas.bottom>t.canvas.height&&(i=!0),t.canvas.left+t.canvas.right>t.canvas.width&&(i=!0)}),i}function ot(n,t){n[t.cutLayoutSide]+=t.cutSide==="horizontal"?t.width:t.height}function st(n,t){var i=n.cutLayoutSide,r={horizontal:0,vertical:0};switch(i){case"top":case"left":r[n.cutSide]=-t[i];break;case"bottom":case"right":r[n.cutSide]=t[i]}return r}function s(){}function ht(n){return new t.viz.WrapperLayoutElement(null,{x:n.left,y:n.top,width:n.width-n.left-n.right,height:n.height-n.top-n.bottom})}var y=t.require("/utils/utils.common"),o=y.isNumber,f=Math.min,u=Math.max,e=Math.floor,p=Math.sqrt,r=n.each,h=n.extend,c=t.viz.series.helpers.consts,w=c.pieLabelIndent,b=c.pieLabelSpacing,et={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"};s.prototype={constructor:s,setOptions:function(n){this._options=n},applyVerticalAxesLayout:function(n,t,i){this._applyAxesLayout(n,t,i)},applyHorizontalAxesLayout:function(n,t,i){n.reverse(),this._applyAxesLayout(n,t,i),n.reverse()},_applyAxesLayout:function(n,t,i){var c=this,u,s,e,o,f,y,l,a,p=[],w,v;for(r(t,function(n,t){h(t.canvas,{deltaLeft:0,deltaRight:0,deltaTop:0,deltaBottom:0})}),v=0;v<n.length;v++)if(f=n[v],s=f.getOptions().position||"left",f.delta={},e=f.getBoundingRect(),w=ut(f.pane,t),u=w.canvas,it(e)){l="delta"+s.slice(0,1).toUpperCase()+s.slice(1);switch(s){case"right":a=1,u.deltaLeft+=f.padding?f.padding.left:0;break;case"left":a=-1,u.deltaRight+=f.padding?f.padding.right:0;break;case"top":a=-1,u.deltaBottom+=f.padding?f.padding.bottom:0;break;case"bottom":a=1,u.deltaTop+=f.padding?f.padding.top:0}switch(s){case"right":case"left":e.isEmpty||(o=e.y+e.height-(u.height-u.originalBottom),o>0&&(c.requireAxesRedraw=!0,u.deltaBottom+=o),o=u.originalTop-e.y,o>0&&(c.requireAxesRedraw=!0,u.deltaTop+=o)),y=e.width,p=["Left","Right"];break;case"top":case"bottom":e.isEmpty||(o=e.x+e.width-(u.width-u.originalRight),o>0&&(c.requireAxesRedraw=!0,u.deltaRight+=o),o=u.originalLeft-e.x,o>0&&(c.requireAxesRedraw=!0,u.deltaLeft+=o)),p=["Bottom","Top"],y=e.height}!f.delta[s]&&u[l]>0&&(u[l]+=f.getMultipleAxesSpacing()),f.delta[s]=f.delta[s]||0,f.delta[s]+=u[l]*a,u[l]+=y}c.requireAxesRedraw=rt(t,p)||c.requireAxesRedraw,c.stopDrawAxes=ft(t,i)},applyPieChartSeriesLayout:function(n,t,i){var v=n.height-n.top-n.bottom,y=n.width-n.left-n.right,s=y/2+n.left,p=v/2+n.top,c=this._options.piePercentage,u=o(c)?c*f(n.height,n.width)/2:f(y,v)/2,l=.7*u,h,w,a,b=0,nt=tt(t[0]);return i||o(c)||(h=d(t),a=s-h.common+n.left,a<l?(u=l,r(h.sizes,function(n,t){t!==0&&b++}),w=(s-u-n.left)/b):u=f(k(t,s,p,u,l),a),g(h.sizes,u,t,n,w)),{centerX:e(s),centerY:e(p),radiusInner:e(u*nt),radiusOuter:e(u),canvas:n}},needMoreSpaceForPanesCanvas:function(n,t){var h=this._options,a=h.width,v=h.height,l=h.piePercentage,c=o(l),e=0,s=0;return r(n,function(n,r){var o=r.canvas,p=c?f(o.width,o.height)*l:i,h=(c?p:a)-(o.width-o.left-o.right),y=(c?p:v)-(o.height-o.top-o.bottom);t?(e+=h>0?h:0,s=u(y>0?y:0,s)):(e=u(h>0?h:0,e),s+=y>0?y:0)}),e>0||s>0?{width:e,height:s}:!1},layoutElements:function(n,t,i,r,u,f){this._elements=n,this._probeDrawing(t),this._drawElements(t),i&&i(),this._processAdaptiveLayout(r,u,t,f,i),this._positionElements(t)},_processAdaptiveLayout:function(t,i,r,u,f){function o(n,t,i){n.getLayoutOptions()[i]||(r[t.cutLayoutSide]-=t[i],e[i]=Math.max(e[i]-t[i],0))}var s=this,e=s.needMoreSpaceForPanesCanvas(t,i),c=this._elements;e&&(n.each(c.slice().reverse(),function(t,i){var r=h({},i.getLayoutOptions()),u;r&&(u=n.extend({},r),r.cutSide==="vertical"&&e.height&&(i.draw(u.width,u.height-e.height),o(i,r,"height")),r.cutSide==="horizontal"&&e.width&&(i.draw(u.width-e.width,u.height),o(i,r,"width")))}),l(u.verticalAxes,"width",e),l(u.horizontalAxes,"height",e),f&&f(!0))},_probeDrawing:function(t){var i=this;n.each(this._elements,function(n,r){var f=r.getLayoutOptions(),u;f&&(u={width:t.width-t.left-t.right,height:t.height-t.top-t.bottom},f.cutSide==="vertical"?u.height-=i._options.height:u.width-=i._options.width,r.probeDraw(u.width,u.height),ot(t,r.getLayoutOptions()))})},_drawElements:function(t){n.each(this._elements.slice().reverse(),function(n,i){var u=i.getLayoutOptions(),r,e,f;u&&(r={width:t.width-t.left-t.right,height:t.height-t.top-t.bottom},e=u.cutSide,f=e==="horizontal"?"width":"height",r[f]=u[f],i.draw(r.width,r.height))})},_positionElements:function(t){var i={left:0,right:0,top:0,bottom:0};n.each(this._elements.slice().reverse(),function(n,r){var u=r.getLayoutOptions(),f,o,e;u&&(f=u.position,o=u.cutSide,e={horizontal:f.horizontal,vertical:f.vertical},e[o]=et[e[o]],r.position({of:ht(t),my:e,at:f,offset:st(u,i)}),i[u.cutLayoutSide]+=u[u.cutSide==="horizontal"?"width":"height"])})}},t.viz.charts.LayoutManager=s}(jQuery,DevExpress),function(n,t){var v=t.viz,y=v.Range,l=t.require("/utils/utils.common"),h=t.require("/utils/utils.math"),s=h.adjustValue,a=h.applyPrecisionByMinDelta,u=l.isDefined,ct=t.require("/utils/utils.console").debug,e=Math,o=e.floor,c=e.max,p=e.abs,r=n.each,k=.1,d=function(n){var t={};return r(n,function(n,i){var r=i.pane;t[r]||(t[r]=[]),t[r].push(i)}),t},g=function(n){var i,t=n.getTranslator();t._originalBusinessRange?(i=new y(t._originalBusinessRange),t.updateBusinessRange(i)):t._originalBusinessRange=new y(t.getBusinessRange())},nt={transform:function(n,t){return h.getLog(n,t)},addInterval:function(n,t){return n+t},getInterval:function(n,t){return t},adjustValue:o},tt={transform:function(n,t){return h.raiseTo(n,t)},addInterval:function(n,t){return n*t},getInterval:function(n,t){return e.pow(n,t)},adjustValue:s},w=function(n,t){if(n.isLogarithmic){var i=n.logarithmicBase,o=n.tickValues,r,u=[],s,f;for(n.minValue=t.transform(n.minValue,i),n.oldMinValue=t.transform(n.oldMinValue,i),n.maxValue=t.transform(n.maxValue,i),n.oldMaxValue=t.transform(n.oldMaxValue,i),n.tickInterval=e.round(n.tickInterval),n.tickInterval<1&&(n.tickInterval=1),s=t.getInterval(i,n.tickInterval),r=t.transform(o[0],i),f=0;f<o.length;f++)u.push(t.adjustValue(r)),r=t.addInterval(r,s);u.tickInterval=n.tickInterval,n.tickValues=u}},it=function(n){return v.utils.map(n,function(n){g(n);var c=n.getTicksValues(),t=c.majorTicksValues,s=n.getOptions(),f,e,i=null,r,o,h;return t&&t.length>0&&l.isNumber(t[0])&&s.type!=="discrete"&&(r=n.getTranslator().getBusinessRange(),o=n._tickManager.getTickInterval(),f=r.minVisible,e=r.maxVisible,h=s.synchronizedValue,f===e&&u(h)&&(o=p(t[0]-h)||1,f=t[0]-o,e=t[0]+o),i={axis:n,isLogarithmic:s.type==="logarithmic",logarithmicBase:r.base,tickValues:t,minorValues:c.minorTicksValues,minValue:f,oldMinValue:f,maxValue:e,oldMaxValue:e,inverted:r.invert,tickInterval:o,synchronizedValue:h},r.stubData&&(i.stubData=!0,i.tickInterval=i.tickInterval||s.tickInterval,i.isLogarithmic=!1),w(i,nt)),i})},rt=function(n){var t=0;r(n,function(n,i){t=c(t,i.tickValues.length)}),r(n,function(n,i){var e,s,h=0,c=i.synchronizedValue,r=i.tickValues,f=i.tickInterval;if(u(c))i.baseTickValue=i.invertedBaseTickValue=c,i.tickValues=[i.baseTickValue];else{if(r.length>1&&f){for(e=o((t+1)/r.length),s=e>1?o((t+1)/e):t,h=o((s-r.length)/2);h>0&&r[0]!==0;)r.unshift(a(r[0],f,r[0]-f)),h--;while(r.length<s)r.push(a(r[0],f,r[r.length-1]+f));i.tickInterval=f/e}i.baseTickValue=r[0],i.invertedBaseTickValue=r[r.length-1]}})},f=function(n){return n.maxValue-n.minValue||1},b=function(n){for(var t=0;t<n.length;t++)if(!n[t].stubData)return n[t];return null},ut=function(n){var t=b(n),i=t.tickInterval;r(n,function(n,r){var h,e,o,s;r!==t&&(i&&r.tickInterval&&(r.stubData&&u(r.synchronizedValue)&&(r.oldMinValue=r.minValue=r.baseTickValue-(t.baseTickValue-t.minValue)/i*r.tickInterval,r.oldMaxValue=r.maxValue=r.baseTickValue-(t.baseTickValue-t.maxValue)/i*r.tickInterval),h=i/f(t)/r.tickInterval*f(r),r.maxValue=r.minValue+f(r)/h),o=t.inverted&&!r.inverted||!t.inverted&&r.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,s=f(r),e=(o/f(t)-(r.baseTickValue-r.minValue)/s)*s,r.minValue-=e,r.maxValue-=e)})},ft=function(n){var t,i,u=0,e=0;return r(n,function(n,r){var o=r.inverted;t=r.minValue>r.oldMinValue?(r.minValue-r.oldMinValue)/f(r):0,i=r.maxValue<r.oldMaxValue?(r.oldMaxValue-r.maxValue)/f(r):0,u=c(u,o?i:t),e=c(e,o?t:i)}),{start:u,end:e}},et=function(n,t){r(n,function(n,i){var r=f(i),u=i.inverted;i.minValue-=t[u?"end":"start"]*r,i.maxValue+=t[u?"start":"end"]*r,r>k&&(i.minValue=e.min(i.minValue,s(i.minValue)),i.maxValue=c(i.maxValue,s(i.maxValue)))})},ot=function(n){var t=!1;r(n,function(n,i){t=t||u(i.synchronizedValue)}),r(n,function(n,i){var u,f=i.tickInterval,r=i.tickValues,o=i.maxValue,e=i.minValue;if(t&&f){while(r[0]-f>=e)r.unshift(s(r[0]-f));for(u=r[r.length-1];(u=u+f)<=o;)r.push(l.isExponential(u)?s(u):a(e,f,u))}while(r[0]<e)r.shift();while(r[r.length-1]>o)r.pop()})},st=function(n){r(n,function(n,t){var r=t.axis,i=r.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=t.minValue),i.max===i.maxVisible&&(i.max=t.maxValue),i.minVisible=t.minValue,i.maxVisible=t.maxValue,u(t.stubData)&&(i.stubData=t.stubData),i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),i.isSynchronized=!0,r.getTranslator().updateBusinessRange(i),r.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})})},ht=function(n){var f=[],t,i;(r(n,function(n,r){r.oldMaxValue-r.oldMinValue==0?f.push(r):u(t)||u(r.synchronizedValue)||(t=p((r.maxValue-r.minValue)/(r.tickValues[o(r.tickValues.length/2)]||r.maxValue)),i=r)}),u(t))&&r(f,function(n,r){var u=r.tickValues[0],f=u*t,e=i.tickValues,s=e[o(e.length/2)];u>0?(r.maxValue=f,r.minValue=0):u<0?(r.minValue=f,r.maxValue=0):u===0&&(r.maxValue=i.maxValue-s,r.minValue=i.minValue-s)})};t.viz.charts.multiAxesSynchronizer={synchronize:function(n){r(d(n),function(n,t){var i,u;if(t.length>1){if(i=it(t),i.length===0||!b(i))return;rt(i),ut(i),u=ft(i),et(i,u),ht(i),ot(i),r(i,function(){w(this,tt)}),st(i)}})}}}(jQuery,DevExpress),function(n,t,i,r){function o(n,t){var i=n.target;return(i.tagName==="tspan"?i.parentNode:i)[t]}function pt(n,t){return n.cancel||!t.getOptions()}function wt(n,t,i){return t>=n.left&&t<=n.right&&i>=n.top&&i<=n.bottom}function ut(n,t,i,r,u){e(n,function(n,f){var e=f.series;f===t?(e[i]({point:f,setState:!0}),r&&u(r,{target:f})):e[i]({point:f})})}function ni(n,t,i){var r=[];return e(n,function(n,u){e(u.getPointsByArg(t),function(n,t){i===t.index&&r.push(t)})}),r}var v=t.viz.charts,s=t.viz.series.helpers.consts.events,bt=t.require("/utils/utils.math"),kt=t.require("/utils/utils.common"),l=t.require("/ui/events/pointer/ui.events.pointer"),ft=t.require("/ui/events/ui.events.wheel"),dt=t.require("/devices"),y=kt.isDefined,u=t.viz.utils.normalizeEnum,h=i.floor,e=n.each,p=n.inArray,c=n.noop,et="multiple",d="allargumentpoints",ot="allseriespoints",g="none",w=[l.down,l.move].join(" "),b="pointSelectionChanged",st="legendClick",nt="seriesClick",tt="pointClick",ht="releasePointSelectedState",ct="setPointSelectedState",lt="setPointHoverState",at="seriesHoverChanged",a="pointHoverChanged",it="releasePointHoverState",k="seriesSelectionChanged",vt="chart-data-point",rt="chart-data-series",yt="chart-data-argument",gt=100,f={ctor:function(n){var t=this,i={tracker:t};t._renderer=n.renderer,t._legend=n.legend,t._tooltip=n.tooltip,t._eventTrigger=n.eventTrigger;n.seriesGroup.off().on(s.selectSeries,i,t._selectSeries).on(s.deselectSeries,i,t._deselectSeries).on(s.selectPoint,i,t._selectPoint).on(s.deselectPoint,i,t._deselectPoint).on(s.showPointTooltip,i,t._showPointTooltip).on(s.hidePointTooltip,i,t._hidePointTooltip);t._renderer.root.off(w).off("dxclick dxhold").on(w,i,t._pointerHandler).on("dxclick",i,t._clickHandler).on("dxhold",{timeout:300},c)},update:function(n){var t=this;u(n.pointSelectionMode)===et?(t._setSelectedPoint=t._selectPointMultipleMode,t._releaseSelectedPoint=t._releaseSelectedPointMultipleMode):(t._setSelectedPoint=t._selectPointSingleMode,t._releaseSelectedPoint=t._releaseSelectedPointSingleMode),u(n.seriesSelectionMode)===et?(t._releaseSelectedSeries=t._releaseSelectedSeriesMultipleMode,t._setSelectedSeries=t._setSelectedSeriesMultipleMode):(t._releaseSelectedSeries=t._releaseSelectedSeriesSingleMode,t._setSelectedSeries=t._setSelectedSeriesSingleMode),t._prepare()},updateSeries:function(n){var t=this;t._storedSeries!==n?(t._storedSeries=n||[],t._clean()):(t._hideTooltip(t.pointAtShownTooltip),t._clearHover(),t.clearSelection())},setCanvases:function(n,t){this._mainCanvas=n,this._canvases=t},repairTooltip:function(){var n=this.pointAtShownTooltip;n&&!n.isVisible()?this._hideTooltip(n,!0):this._showTooltip(n)},_prepare:function(){this._toggleParentsScrollSubscription(!0)},_toggleParentsScrollSubscription:function(t){var i=this,r=n(i._renderer.root.element).parents(),u="scroll.dxChartTracker";if(dt.real().platform==="generic"&&(r=r.add(window)),n().add(i._$prevRootParents).off(u),t){r.on(u,function(){i._pointerOut()});i._$prevRootParents=r}},_selectPointMultipleMode:function(n){var t=this;t._selectedPoint=t._selectedPoint||[],p(n,t._selectedPoint)<0&&(t._selectedPoint.push(n),t._setPointState(n,ct,u(n.getOptions().selectionMode),b,t._legend.getActionCallback(n)))},_releaseSelectedPointMultipleMode:function(n){var t=this,i=t._selectedPoint||[],r=p(n,i);r>=0?(t._setPointState(n,ht,u(n.getOptions().selectionMode),b,t._legend.getActionCallback(n)),i.splice(r,1)):n||e(i,function(n,i){t._releaseSelectedPoint(i)})},_selectPointSingleMode:function(n){var t=this;t._selectedPoint!==n&&(t._releaseSelectedPoint(),t._selectedPoint=n,t._setPointState(n,ct,u(n.getOptions().selectionMode),b,t._legend.getActionCallback(n)))},_releaseSelectedPointSingleMode:function(){var n=this,t=n._selectedPoint;t&&(n._setPointState(t,ht,u(t.getOptions().selectionMode),b,n._legend.getActionCallback(t)),n._selectedPoint=null)},_setHoveredPoint:function(n,t){var i=this;i.hoveredPoint!==n&&n.series&&(i._releaseHoveredPoint(),n&&n.getOptions()&&t!==g&&(i.hoveredPoint=n,i._setPointState(n,lt,t||u(n.getOptions().hoverMode),a,i._legend.getActionCallback(n))))},_releaseHoveredPoint:function(){var n=this,t=n.hoveredPoint,i=n._eventTrigger;t&&t.getOptions()&&(n._releasePoint(t,i),n._tooltip.isEnabled()&&n._hideTooltip(t),n.hoveredPoint=null)},_setSelectedSeriesMultipleMode:function(n,t){var i=this;i._selectedSeries=i._selectedSeries||[],p(n,i._selectedSeries)<0&&(i._selectedSeries.push(n),n.setSelectedState(!0,t,i._legend.getActionCallback(n)),i._eventTrigger(k,{target:n}))},_setSelectedSeriesSingleMode:function(n,t){var i=this;(n!==i._selectedSeries||n.lastSelectionMode!==t)&&(i._releaseSelectedSeries(),i._selectedSeries=n,n.setSelectedState(!0,t,i._legend.getActionCallback(n)),i._eventTrigger(k,{target:n}))},_releaseSelectedSeriesMultipleMode:function(n){var t=this,i=t._selectedSeries||[],u=p(n,i);u>=0?(n.setSelectedState(!1,r,t._legend.getActionCallback(n)),t._eventTrigger(k,{target:n}),i.splice(u,1)):n||e(i,function(n,i){t._releaseSelectedSeries(i)})},_releaseSelectedSeriesSingleMode:function(n){var i=this,t=i._selectedSeries;t&&(!n||n===t)&&(t.setSelectedState(!1,r,i._legend.getActionCallback(t)),i._eventTrigger(k,{target:t}),i._selectedSeries=null)},_setHoveredSeries:function(n,t){var i=this;(t!==g&&i.hoveredSeries!==n||i._isModeChanged(n,t))&&(i._clearHover(),n.setHoverState(!0,t,i._legend.getActionCallback(n)),i._eventTrigger(at,{target:n}),i.hoveredSeries=n)},_releaseHoveredSeries:function(n,t){var i=this,u=i.hoveredSeries,f=i._seriesWithHoverView;u?(u.setHoverState(!1,r,i._legend.getActionCallback(u)),n&&t&&t.series===u&&(i._seriesWithHoverView=u.setHoverView()),i._eventTrigger(at,{target:u}),i.hoveredSeries=null):f&&!n&&(f.releaseHoverView(),i._seriesWithHoverView=null)},_selectSeries:function(n,t){n.data.tracker._setSelectedSeries(n.target,t)},_deselectSeries:function(n,t){n.data.tracker._releaseSelectedSeries(n.target,t)},_selectPoint:function(n,t){n.data.tracker._setSelectedPoint(t)},_deselectPoint:function(n,t){n.data.tracker._releaseSelectedPoint(t)},clearSelection:function(){this._releaseSelectedPoint(),this._releaseSelectedSeries()},_clean:function(){var n=this;n._selectedPoint=n._selectedSeries=n.hoveredPoint=n.hoveredSeries=n._hoveredArgumentPoints=n._seriesWithHoverView=null,n._hideTooltip(n.pointAtShownTooltip)},_clearHover:function(){this._releaseHoveredSeries(!1),this._releaseHoveredPoint()},_hideTooltip:function(n,t){var i=this;i._tooltip&&(!n||i.pointAtShownTooltip===n)&&(!t&&i.pointAtShownTooltip&&(i.pointAtShownTooltip=null),i._tooltip.hide())},_showTooltip:function(n){var t=this,i,f,r,u;if(n&&n.getOptions()){if(i=n.getTooltipFormatObject(t._tooltip),!y(i.valueText)&&!i.points||!n.isVisible())return;if(t.pointAtShownTooltip&&t.pointAtShownTooltip===n||(f={target:n}),r=n.getTooltipParams(t._tooltip.getLocation()),u=t._renderer.getRootOffset(),r.x+=u.left,r.y+=u.top,!t._tooltip.show(i,r,f))return;t.pointAtShownTooltip=n}},_showPointTooltip:function(n,t){var i=n.data.tracker,r=i.pointAtShownTooltip;r&&r!==t&&i._hideTooltip(r),i._showTooltip(t)},_hidePointTooltip:function(n,t){n.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var t=this,i=function(n){var i=t._renderer.getRootOffset(),r=h(n.pageX-i.left),u=h(n.pageY-i.top);wt(t._mainCanvas,r,u)||(t._pointerOut(),t._disableOutHandler())};n(document).on(w,i);this._outHandler=i}},_disableOutHandler:function(){this._outHandler&&n(document).off(w,this._outHandler),this._outHandler=null},_pointerOut:function(){this._clearHover(),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)},_trigerLegendClick:function(n,t){var i=this._eventTrigger;i(st,n,function(){pt(n.jQueryEvent,n.target)||i(t,n)})},_hoverLegendItem:function(n,t){var i=this,r=i._legend.getItemByCoord(n,t),u;r?(u=i._storedSeries[r.id],i._setHoveredSeries(u,i._legend._options.hoverMode),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i._clearHover()},_pointerHandler:function(n){var t=n.data.tracker,e=t._renderer.getRootOffset(),r=h(n.pageX-e.left),u=h(n.pageY-e.top),s=t._getCanvas(r,u),f=o(n,rt),i=o(n,vt)||f&&f.getPointByCoord(r,u);if(t._enableOutHandler(),!t._checkGestureEvents(n,s,e)){if(t._legend.coordsIn(r,u)){t._hoverLegendItem(r,u);return}if((t.hoveredSeries&&t.hoveredSeries!==t._stickedSeries&&t._releaseHoveredSeries(),!t._hoverArgumentAxis(r,u,n))&&(t._isPointerOut(s,i)&&t._pointerOut(),s||i)){if(f&&!i){if(i=f.getNeighborPoint(r,u),f!==t.hoveredSeries){t._setTimeout(function(){t._setHoveredSeries(f,f.getOptions().hoverMode),t._stickedSeries=f,t._pointerComplete(i,r,u)},f);return}}else{if(i){t.hoveredSeries?t._setTimeout(function(){t._pointerOnPoint(i,r,u)},i):(t._pointerOnPoint(i,r,u),t._setSeriesWithHoverView(i));return}t._setStickedSeries(r,u)&&(f=t._stickedSeries,i=f.getNeighborPoint(r,u),t._releaseHoveredSeries(),i&&t._setHoveredPoint(i))}t._pointerComplete(i,r,u)}}},_pointerOnPoint:function(n,t,i){this._setHoveredPoint(n),this._pointerComplete(n,t,i)},_pointerComplete:function(n){this.pointAtShownTooltip!==n&&this._tooltip.isEnabled()&&this._showTooltip(n)},_clickHandler:function(n){var t=n.data.tracker,c=t._renderer.getRootOffset(),r=h(n.pageX-c.left),u=h(n.pageY-c.top),i=o(n,vt),f=t._stickedSeries||o(n,rt)||i&&i.series,l=t._argumentAxis,e,s;t._legend.coordsIn(r,u)?(e=t._legend.getItemByCoord(r,u),e&&t._legendClick(e,n)):l&&l.coordsIn(r,u)?(s=o(n,yt),y(s)&&t._eventTrigger("argumentAxisClick",{argument:s,jQueryEvent:n})):f&&(i=i||f.getPointByCoord(r,u),i?t._pointClick(i,n):o(n,rt)&&t._eventTrigger(nt,{target:f,jQueryEvent:n}))},dispose:function(){var n=this;n._disableOutHandler(),n._toggleParentsScrollSubscription(),e(n,function(t){n[t]=null})}};v.ChartTracker=function(n){this.ctor(n)},n.extend(v.ChartTracker.prototype,f,{_pointClick:function(n,t){var u=this,i=u._eventTrigger,r=n.series;i(tt,{target:n,jQueryEvent:t},function(){pt(t,r)||i(nt,{target:r,jQueryEvent:t})})},update:function(n){var t=this;t._zoomingMode=u(n.zoomingMode),t._scrollingMode=u(n.scrollingMode),f.update.call(this,n),t._argumentAxis=n.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&u(t._argumentAxis.getOptions().hoverMode)===d,t._chart=n.chart,t._rotated=n.rotated,t._crosshair=n.crosshair},_getCanvas:function(n,t){for(var f=this,u=f._canvases||[],r,i=0;i<u.length;i++)if(r=u[i],wt(r,n,t))return r;return null},_getPointSeries:function(n){return n.series},_isModeChanged:function(n,t){return n.lastHoverMode!==t},_isPointerOut:function(n){return!n&&this._stickedSeries},_resetHoveredArgument:function(){y(this.hoveredArgument)&&(this._toAllArgumentPoints(this.hoveredArgument,it),this.hoveredArgument=null)},_toAllArgumentPoints:function(n,t,i,r){var u=this;e(u._storedSeries,function(f,e){ut(e.getPointsByArg(n),r,t,i,u._eventTrigger)})},_hideCrosshair:function(){this._crosshair&&this._crosshair.hide()},_moveCrosshair:function(n,t,i){n&&this._crosshair&&n.isVisible()&&this._crosshair.show({point:n,x:t,y:i})},_releasePoint:function(n,t){var i=this,r=u(n.getOptions().hoverMode);r===ot?ut(n.series.getPoints(),n,it,a,t):r===d?i._toAllArgumentPoints(n.argument,it,a,n):r!=="none"&&(i._getPointSeries(n).releasePointHoverState({point:n,setState:!0,legendCallback:i._legend.getActionCallback(n)}),t(a,{target:n}))},_setPointState:function(n,t,i,r,u){var f=this,e,o=f._eventTrigger;switch(i){case d:f._toAllArgumentPoints(n.argument,t,r,n);break;case ot:ut(n.series.getPoints(),n,t,r,o);break;case g:break;default:e=f._getPointSeries(n),e[t]({point:n,legendCallback:u,setState:!0}),o(r,{target:n})}},_prepare:function(){var t=this,i=t._renderer.root,u=t._scrollingMode==="all"||t._scrollingMode==="touch",e=t._zoomingMode==="all"||t._zoomingMode==="touch",r=(u?"":"pan-x pan-y ")+(e?"":"pinch-zoom")||"none",o={"touch-action":r,"-ms-touch-action":r},s=t._zoomingMode==="all"||t._zoomingMode==="mouse";if(i.off(ft.name+" dxc-scroll-start dxc-scroll-move"),f._prepare.call(t),!t._gestureEndHandler){t._gestureEndHandler=function(){t._gestureEnd&&t._gestureEnd()};n(document).on(l.up,t._gestureEndHandler)}s&&i.on(ft.name,function(n){var i=t._renderer.getRootOffset(),r=t._rotated?n.pageY-i.top:n.pageX-i.left,u=t._argumentAxis.getTranslator().getMinScale(n.delta>0),e=r-r*u,f=t._argumentAxis.getTranslator().zoom(-e,u);t._pointerOut(),t._chart.zoomArgument(f.min,f.max,!0),n.preventDefault(),n.stopPropagation()});i.on("dxc-scroll-start",function(n){t._gestureStart(t._getGestureParams(n,{left:0,top:0}))}).on("dxc-scroll-move",function(n){t._gestureChange(t._getGestureParams(n,{left:0,top:0}))&&n.preventDefault()});i.css(o)},_getGestureParams:function(n,t){var h=this,r,u,e=n.pointers.length,f,o,s=h._rotated?"pageY":"pageX";return t=h._rotated?t.top:t.left,e===2?(r=n.pointers[0][s]-t,u=n.pointers[1][s]-t):e===1&&(r=u=n.pointers[0][s]-t),f=i.min(r,u),o=i.max(r,u),{center:f+(o-f)/2,distance:o-f,touches:e,scale:1,pointerType:n.pointerType}},_gestureStart:function(n){var t=this;t._startGesture=t._startGesture||n,t._startGesture.touches!==n.touches&&(t._startGesture=n)},_gestureChange:function(n){var r=this,t=r._startGesture,u=!1,f=r._scrollingMode==="all"||r._scrollingMode!=="none"&&r._scrollingMode===n.pointerType,e=r._zoomingMode==="all"||r._zoomingMode==="touch";return t?t.touches===1&&i.abs(t.center-n.center)<3?(r._gestureStart(n),u):(t.touches===2&&e?(u=!0,t.scale=n.distance/t.distance,t.scroll=n.center-t.center+(t.center-t.center*t.scale)):t.touches===1&&f&&(u=!0,t.scroll=n.center-t.center),u&&(t.changed=u,r._chart._transformArgument(t.scroll,t.scale)),u):u},_gestureEnd:function(){function u(){i._chart.zoomArgument(t.min,t.max,!0)}var i=this,n=i._startGesture,t,r=i._renderer,f,e;i._startGesture=null,n&&n.changed&&(t=i._argumentAxis._translator.zoom(-n.scroll,n.scale),r.animationEnabled()&&(-n.scroll!==t.translate||n.scale!==t.scale)?(f=-(n.scroll+t.translate),e=n.scale-t.scale,r.root.animate({_:0},{step:function(t){var r=-n.scroll-f*t,u=n.scale-e*t;i._chart._transformArgument(-r,u)},complete:u,duration:250})):u())},_clean:function(){var n=this;f._clean.call(n),n._resetTimer(),n._stickedSeries=null},_getSeriesForShared:function(n,t){var i=this,u=[],r=null,f=Infinity;return i._tooltip.isShared()&&!i.hoveredSeries&&(e(i._storedSeries,function(i,r){var f=r.getNeighborPoint(n,t);f&&u.push(f)}),e(u,function(i,u){var e=u.getCrosshairData(n,t),o=bt.getDistance(n,t,e.x,e.y);o<f&&(r=u,f=o)})),r&&r.series},_setTimeout:function(n,t){var i=this;i._timeoutKeeper!==t&&(i._resetTimer(),i._hoverTimeout=setTimeout(function(){n(),i._timeoutKeeper=null},gt),i._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_checkGestureEvents:function(n,t,i){var r=this;if(n.type===l.down)t&&r._gestureStart(r._getGestureParams(n,i));else if(r._startGesture&&t&&r._gestureChange(r._getGestureParams(n,i)))return r._pointerOut(),n.preventDefault(),!0},_setStickedSeries:function(n,t){return this._stickedSeries=this._stickedSeries||this._getSeriesForShared(n,t),!!this._stickedSeries},_setSeriesWithHoverView:function(n){this._seriesWithHoverView=n.series.setHoverView()},_pointerOut:function(){var n=this;n._stickedSeries=null,n._hideCrosshair(),n._resetHoveredArgument(),n._resetTimer(),f._pointerOut.call(n)},_hoverArgumentAxis:function(n,t,i){var r=this,u;return r._resetHoveredArgument(),r._axisHoverEnabled&&r._argumentAxis.coordsIn(n,t)?(u=o(i,yt),y(u)&&r.hoveredArgument!==u&&(r._clearHover(),r._toAllArgumentPoints(u,lt),r.hoveredArgument=u),!0):void 0},_pointerComplete:function(n,t,i){var r=this;r.hoveredSeries&&r.hoveredSeries.updateHover(t,i),r._resetTimer(),r._moveCrosshair(n,t,i),f._pointerComplete.call(r,n)},_legendClick:function(n,t){var i=this._storedSeries[n.id];this._trigerLegendClick({target:i,jQueryEvent:t},nt)},_hoverLegendItem:function(n,t){this._stickedSeries=null,this._hideCrosshair(),f._hoverLegendItem.call(this,n,t)},_pointerOnPoint:function(n,t,i){var r=this,u=r._seriesWithHoverView,e=n.series;r._stickedSeries=e,r._releaseHoveredSeries(!u||u===e,n),f._pointerOnPoint.call(r,n,t,i)},dispose:function(){this._gestureEndHandler&&n(document).off(l.up,this._gestureEndHandler),this._resetTimer(),f.dispose.call(this)}}),v.PieTracker=function(n){this.ctor(n)},n.extend(v.PieTracker.prototype,f,{_getPointSeries:function(n){return this._storedSeries[n.index]},_isModeChanged:function(){return!1},_isPointerOut:function(n,t){return!t},_legendClick:function(n,t){var i=this,r=n.argument,u;i._storedSeries.length===1?(u=ni(i._storedSeries,r,n.id),i._trigerLegendClick({target:u[0],jQueryEvent:t},tt)):i._eventTrigger(st,{target:r,jQueryEvent:t})},_pointClick:function(n,t){this._eventTrigger(tt,{target:n,jQueryEvent:t})},_releasePoint:function(n,t){var i=this,r=u(n.getOptions().hoverMode);r!=="none"&&(i._getPointSeries(n).releasePointHoverState({point:n,setState:!0,legendCallback:i._legend.getActionCallback(n)}),t(a,{target:n}))},_setPointState:function(n,t,i,r,u){var f=this,e,o=f._eventTrigger;i!=="none"&&(e=f._getPointSeries(n),e[t]({point:n,legendCallback:u,setState:!0}),o(r,{target:n}))},_hoverArgumentAxis:c,_setStickedSeries:c,_setSeriesWithHoverView:c,_getCanvas:c,_checkGestureEvents:c})}(jQuery,DevExpress,Math),function(n,t){function u(n,t,i,r){var u=this;u._renderer=n,u._crosshairGroup=r,u._options={},u.update(t,i)}var r=Math,f=r.abs,e=r.min,o=r.max,s=r.floor,y="horizontal",p="vertical",h=8,c=4,w="center",l="right",a="left",b="top",v="bottom";t.viz.charts.Crosshair=u,u.prototype={constructor:u,update:function(n,t){var r=this,i=t.canvas;r._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},r._axes=t.axes,r._panes=t.panes,r._prepareOptions(n,y),r._prepareOptions(n,p)},dispose:function(){var n=this;n._renderer=n._crosshairGroup=n._options=n._axes=n._canvas=n._horizontalGroup=n._verticalGroup=n._horizontal=n._vertical=n._circle=n._panes=null},_prepareOptions:function(t,i){var r=t[i+"Line"];this._options[i]={visible:r.visible,line:{stroke:r.color||t.color,"stroke-width":r.width||t.width,dashStyle:r.dashStyle||t.dashStyle,opacity:r.opacity||t.opacity,"stroke-linecap":"butt"},label:n.extend(!0,{},t.label,r.label)}},_createLines:function(n,t,i){for(var f=[],r=this._canvas,e=[r.left,r.top,r.left,r.top],u=0;u<2;u++)f.push(this._renderer.path(e,"line").attr(n).sharp(t).append(i));return f},render:function(){var n=this,u=n._renderer,f=n._options,i=f.vertical,t=f.horizontal,r=t.visible?t.line:i.line,o={stroke:r.stroke,"stroke-width":r["stroke-width"],dashStyle:r.dashStyle,opacity:r.opacity},e=n._canvas;n._horizontal={},n._vertical={},n._circle=u.circle(e.left,e.top,0).attr(o).append(n._crosshairGroup),n._horizontalGroup=u.g().append(n._crosshairGroup),n._verticalGroup=u.g().append(n._crosshairGroup),i.visible&&(n._vertical.lines=n._createLines(i.line,"h",n._verticalGroup),n._vertical.labels=n._createLabels(n._axes[0],i,!1,n._verticalGroup)),t.visible&&(n._horizontal.lines=n._createLines(t.line,"v",n._horizontalGroup),n._horizontal.labels=n._createLabels(n._axes[1],t,!0,n._horizontalGroup)),n.hide()},_createLabels:function(i,r,u,f){var p=this,k=p._canvas,d=p._renderer,y,e,s,g=[],nt,h,c=r.label,o;if(c&&c.visible)return n.each(i,function(n,i){var p=i.getOptions().position,tt;i.getTranslator().getBusinessRange().stubData||(h=i.getLabelsParams().pos,u?(e=k.top,y=h):(y=k.left,e=h),tt=p===b||p===v?w:p===l?a:l,nt=d.rect(0,0,0,0).attr({fill:c.backgroundColor||r.line.stroke}).append(f),s=d.text("0",y,e).css(t.viz.utils.patchFontOptions(r.label.font)).attr({align:tt}).append(f),o=s.getBBox(),s.attr({y:u?2*e-o.y-o.height/2:p===v?2*e-o.y:2*e-(o.y+o.height)}),g.push({text:s,background:nt,axis:i,options:c,pos:{coord:h,side:p,align:tt}}))}),g},_updateText:function(t,i,r,u,f){var p=this,o,l,e,y,s,v;i&&n.each(i,function(n,i){var w=i.axis;(l="",e=i.text,y=i.background,e)&&(w.name&&w.name!==r||(l=w.getFormattedValue(t,i.options,u)),l?(e.attr({text:l}),o=e.getBBox(),s=w.getLabelsParams(),v=i.pos.side,f&&(s.width<o.width?e.attr({align:v,x:s.pos+(v===a?-1:1)*s.width}):e.attr({align:i.pos.align,x:s.pos}),o=e.getBBox()),p._updateLinesCanvas(v,i.pos.coord),y.attr({x:o.x-h,y:o.y-c,width:o.width+h*2,height:o.height+c*2})):(e.attr({text:""}),y.attr({x:0,y:0,width:0,height:0})))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(n,t){var i=this._linesCanvas,r=this._canvas;i[n]=i[n]!==r[n]&&f(i[n]-r[n])<f(t-r[n])?i[n]:t},_updateLines:function(n,t,i,r,u){for(var h=this._linesCanvas,f=this._canvas,c=u?[[e(t-r,h.left),f.top,t-r,f.top],[t+r,f.top,o(h.right,t+r),f.top]]:[[f.left,e(h.top,i-r),f.left,i-r],[f.left,i+r,f.left,o(h.bottom,i+r)]],s=0;s<2;s++)n[s].attr({points:c[s]})},_resetLinesCanvas:function(){var n=this._canvas;this._linesCanvas={left:n.left,right:n.right,top:n.top,bottom:n.bottom}},_getClipRectForPane:function(n,t){for(var u=this._panes,i,r=0;r<u.length;r++)if(i=u[r].coords,i.left<=n&&i.right>=n&&i.top<=t&&i.bottom>=t)return u[r].clipRect;return{id:null}},show:function(n){var t=this,e=n.point,u=e.getCrosshairData(n.x,n.y),l=e.getPointRadius(),o=t._horizontal,h=t._vertical,a,c=l?l+3:0,f=t._canvas,i=s(u.x),r=s(u.y);i>=f.left&&i<=f.right&&r>=f.top&&r<=f.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),a=t._getClipRectForPane(i,r),t._circle.attr({cx:i,cy:r,r:c,clipId:a.id}),o.lines&&(t._updateText(u.yValue,o.labels,u.axis,e,!0),t._updateLines(o.lines,i,r,c,!0),t._horizontalGroup.attr({translateY:r-f.top})),h.lines&&(t._updateText(u.xValue,h.labels,u.axis,e,!1),t._updateLines(h.lines,i,r,c,!1),t._verticalGroup.attr({translateX:i-f.left}))):t.hide()}}}(jQuery,DevExpress),DevExpress.MOD_VIZ_CHARTS=!0}
var __extends = (this && this.__extends) || (function() { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function(d, b) { d.__proto__ = b; }) || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : ((__.prototype = b.prototype), new __()); }; })(); var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; var __awaiter = (this && this.__awaiter) || function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator['throw'](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [], }, f, y, t, g; return ( (g = { next: verb(0), throw: verb(1), return: verb(2) }), typeof Symbol === 'function' && (g[Symbol.iterator] = function() { return this; }), g ); function verb(n) { return function(v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError('Generator is already executing.'); while (_) try { if ( ((f = 1), y && (t = y[op[0] & 2 ? 'return' : op[0] ? 'throw' : 'next']) && !(t = t.call(y, op[1])).done) ) return t; if (((y = 0), t)) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if ( !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) && (op[0] === 6 || op[0] === 2) ) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var _this = this; import { ApolloLink, Observable } from 'apollo-link'; import { hasDirectives, getMainDefinition, getFragmentDefinitions, createFragmentMap, addTypenameToDocument, isField, isInlineFragment, resultKeyNameFromField, } from 'apollo-utilities'; import { graphql } from 'graphql-anywhere/lib/async'; var popOneSetOfArrayBracketsFromTypeName = function(typename) { var noSpace = typename.replace(/\s/g, ''); var sansOneBracketPair = noSpace.replace(/\[(.*)\]/, function( str, matchStr, offset, fullStr, ) { return ( ((matchStr != null && matchStr.length) > 0 ? matchStr : null) || noSpace ); }); return sansOneBracketPair; }; var addTypeNameToResult = function(result, __typename, typePatcher) { if (Array.isArray(result)) { var fixedTypename_1 = popOneSetOfArrayBracketsFromTypeName(__typename); // Recursion needed for multi-dimensional arrays return result.map(function(e) { return addTypeNameToResult(e, fixedTypename_1, typePatcher); }); } return typePatcher(result, __typename, typePatcher); }; var quickFindRestDirective = function(field) { if (field.directives && field.directives.length) { return field.directives.find(function(directive) { return 'rest' === directive.name.value; }); } return null; }; /** * The way graphql works today, it doesn't hand us the AST tree for our query, it hands us the ROOT * This method searches for REST-directive-attached nodes that are named to match this query. * * A little bit of wasted compute, but alternative would be a patch in graphql-anywhere. * * @param resultKey SearchKey for REST directive-attached item matching this sub-query * @param current current node in the REST-JSON-response * @param mainDefinition Parsed Query Definition * @param fragmentMap Map of Named Fragments * @param currentSelectionSet Current selection set we're filtering by */ function findRestDirectivesThenInsertNullsForOmittedFields( resultKey, current, // currentSelectionSet starts at root, so wait until we're inside a Field tagged with an @rest directive to activate! mainDefinition, fragmentMap, currentSelectionSet, ) { if (current == null || currentSelectionSet == null) { return current; } currentSelectionSet.selections.forEach(function(node) { if (isInlineFragment(node)) { findRestDirectivesThenInsertNullsForOmittedFields( resultKey, current, mainDefinition, fragmentMap, node.selectionSet, ); } else if (node.kind === 'FragmentSpread') { var fragment = fragmentMap[node.name.value]; findRestDirectivesThenInsertNullsForOmittedFields( resultKey, current, mainDefinition, fragmentMap, fragment.selectionSet, ); } else if (isField(node)) { var name_1 = resultKeyNameFromField(node); if (name_1 === resultKey && quickFindRestDirective(node) != null) { // Jackpot! We found our selectionSet! insertNullsForAnyOmittedFields( current, mainDefinition, fragmentMap, node.selectionSet, ); } else { findRestDirectivesThenInsertNullsForOmittedFields( resultKey, current, mainDefinition, fragmentMap, node.selectionSet, ); } } else { // This will give a TypeScript build-time error if you did something wrong or the AST changes! return (function(node) { throw new Error('Unhandled Node Type in SelectionSetNode.selections'); })(node); } }); // Return current to have our result pass to next link in async promise chain! return current; } /** * Recursively walks a handed object in parallel with the Query SelectionSet, * and inserts `null` for any field that is missing from the response. * * This is needed because ApolloClient will throw an error automatically if it's * missing -- effectively making all of rest-link's selections implicitly non-optional. * * If you want to implement required fields, you need to use typePatcher to *delete* * fields when they're null and you want the query to fail instead. * * @param current Current object we're patching * @param mainDefinition Parsed Query Definition * @param fragmentMap Map of Named Fragments * @param currentSelectionSet Current selection set we're filtering by */ function insertNullsForAnyOmittedFields( current, // currentSelectionSet starts at root, so wait until we're inside a Field tagged with an @rest directive to activate! mainDefinition, fragmentMap, currentSelectionSet, ) { if (current == null || currentSelectionSet == null) { return; } if (Array.isArray(current)) { // If our current value is an array, process our selection set for each entry. current.forEach(function(c) { return insertNullsForAnyOmittedFields( c, mainDefinition, fragmentMap, currentSelectionSet, ); }); return; } currentSelectionSet.selections.forEach(function(node) { if (isInlineFragment(node)) { insertNullsForAnyOmittedFields( current, mainDefinition, fragmentMap, node.selectionSet, ); } else if (node.kind === 'FragmentSpread') { var fragment = fragmentMap[node.name.value]; insertNullsForAnyOmittedFields( current, mainDefinition, fragmentMap, fragment.selectionSet, ); } else if (isField(node)) { var value = current[node.name.value]; if (node.name.value === '__typename') { // Don't mess with special fields like __typename } else if (typeof value === 'undefined') { // Patch in a null where the field would have been marked as missing current[node.name.value] = null; } else if ( value != null && typeof value === 'object' && node.selectionSet != null ) { insertNullsForAnyOmittedFields( value, mainDefinition, fragmentMap, node.selectionSet, ); } else { // Other types (string, number) do not need recursive patching! } } else { // This will give a TypeScript build-time error if you did something wrong or the AST changes! return (function(node) { throw new Error('Unhandled Node Type in SelectionSetNode.selections'); })(node); } }); } var getURIFromEndpoints = function(endpoints, endpoint) { return ( endpoints[endpoint || DEFAULT_ENDPOINT_KEY] || endpoints[DEFAULT_ENDPOINT_KEY] ); }; var replaceParam = function(endpoint, name, value) { if (value === undefined || name === undefined) { return endpoint; } return endpoint.replace(':' + name, value); }; /** * Some keys should be passed through transparently without normalizing/de-normalizing */ var noMangleKeys = ['__typename']; /** Recursively descends the provided object tree and converts all the keys */ var convertObjectKeys = function(object, __converter, keypath) { if (keypath === void 0) { keypath = []; } var converter = null; if (__converter.length != 2) { converter = function(name, keypath) { return __converter(name); }; } else { converter = __converter; } if (object == null || typeof object !== 'object') { // Object is a scalar or null / undefined => no keys to convert! return object; } if (Array.isArray(object)) { return object.map(function(o, index) { return convertObjectKeys(o, converter, keypath.concat([String(index)])); }); } return Object.keys(object).reduce(function(acc, key) { var value = object[key]; if (noMangleKeys.indexOf(key) !== -1) { acc[key] = value; return acc; } var nestedKeyPath = keypath.concat([key]); acc[converter(key, nestedKeyPath)] = convertObjectKeys( value, converter, nestedKeyPath, ); return acc; }, {}); }; var noOpNameNormalizer = function(name) { return name; }; /** * Helper that makes sure our headers are of the right type to pass to Fetch */ export var normalizeHeaders = function(headers) { // Make sure that our headers object is of the right type if (headers instanceof Headers) { return headers; } else { return new Headers(headers); } }; /** * Returns a new Headers Group that contains all the headers. * - If there are duplicates, they will be in the returned header set multiple times! */ export var concatHeadersMergePolicy = function() { var headerGroups = []; for (var _i = 0; _i < arguments.length; _i++) { headerGroups[_i] = arguments[_i]; } return headerGroups.reduce(function(accumulator, current) { if (!current) { return accumulator; } if (!current.forEach) { current = normalizeHeaders(current); } current.forEach(function(value, key) { accumulator.append(key, value); }); return accumulator; }, new Headers()); }; /** * This merge policy deletes any matching headers from the link's default headers. * - Pass headersToOverride array & a headers arg to context and this policy will automatically be selected. */ export var overrideHeadersMergePolicy = function( linkHeaders, headersToOverride, requestHeaders, ) { var result = new Headers(); linkHeaders.forEach(function(value, key) { if (headersToOverride.indexOf(key) !== -1) { return; } result.append(key, value); }); return concatHeadersMergePolicy(result, requestHeaders || new Headers()); }; export var overrideHeadersMergePolicyHelper = overrideHeadersMergePolicy; // Deprecated name var makeOverrideHeadersMergePolicy = function(headersToOverride) { return function(linkHeaders, requestHeaders) { return overrideHeadersMergePolicy( linkHeaders, headersToOverride, requestHeaders, ); }; }; export var validateRequestMethodForOperationType = function( method, operationType, ) { switch (operationType) { case 'query': if (method.toUpperCase() !== 'GET') { throw new Error( 'A "query" operation can only support "GET" requests but got "' + method + '".', ); } return; case 'mutation': if ( ['POST', 'PUT', 'PATCH', 'DELETE'].indexOf(method.toUpperCase()) !== -1 ) { return; } throw new Error('"mutation" operations do not support that HTTP-verb'); case 'subscription': throw new Error('A "subscription" operation is not supported yet.'); default: var _exhaustiveCheck = operationType; return _exhaustiveCheck; } }; /** * Utility to build & throw a JS Error from a "failed" REST-response * @param response: HTTP Response object for this request * @param result: Promise that will render the body of the response * @param message: Human-facing error message */ var rethrowServerSideError = function(response, result, message) { var error = new Error(message); error.response = response; error.statusCode = response.status; error.result = result; throw error; }; var addTypeToNode = function(node, typename) { if (node === null || node === undefined || typeof node !== 'object') { return node; } if (!Array.isArray(node)) { node['__typename'] = typename; return node; } return node.map(function(item) { return addTypeToNode(item, typename); }); }; var resolver = function(fieldName, root, args, context, info) { return __awaiter(_this, void 0, void 0, function() { var _this = this; var directives, isLeaf, resultKey, exportVariables, aliasedNode, preAliasingNode, isATypeCall, isNotARestCall, credentials, endpoints, headers, customFetch, operationType, typePatcher, mainDefinition, fragmentDefinitions, fieldNameNormalizer, linkLevelNameDenormalizer, fragmentMap, _a, path, endpoint, pathBuilder, uri, argsWithExport, bothPathsProvided, neitherPathsProvided, pathBuilderState, pathWithParams, _b, method, type_1, bodyBuilder, bodyKey, perRequestNameDenormalizer, body, maybeBody_1, error_1; return __generator(this, function(_c) { switch (_c.label) { case 0: (directives = info.directives), (isLeaf = info.isLeaf), (resultKey = info.resultKey); exportVariables = context.exportVariables; aliasedNode = (root || {})[resultKey]; preAliasingNode = (root || {})[fieldName]; if (root && directives && directives.export) { // @export(as:) is only supported with apollo-link-rest at this time // so use the preAliasingNode as we're responsible for implementing aliasing! exportVariables[directives.export.as] = preAliasingNode; } isATypeCall = directives && directives.type; if (!isLeaf && isATypeCall) { // @type(name: ) is only supported inside apollo-link-rest at this time // so use the preAliasingNode as we're responsible for implementing aliasing! // Also: exit early, since @type(name: ) && @rest() can't both exist on the same node. if (directives.rest) { throw new Error( 'Invalid use of @type(name: ...) directive on a call that also has @rest(...)', ); } return [ 2 /*return*/, addTypeToNode(preAliasingNode, directives.type.name), ]; } isNotARestCall = !directives || !directives.rest; if (isLeaf || isNotARestCall) { // This is a leaf API call, it's not tagged with @rest() // This might not belong to us so return the aliasNode version preferentially return [2 /*return*/, aliasedNode || preAliasingNode]; } (credentials = context.credentials), (endpoints = context.endpoints), (headers = context.headers), (customFetch = context.customFetch), (operationType = context.operationType), (typePatcher = context.typePatcher), (mainDefinition = context.mainDefinition), (fragmentDefinitions = context.fragmentDefinitions), (fieldNameNormalizer = context.fieldNameNormalizer), (linkLevelNameDenormalizer = context.fieldNameDenormalizer); fragmentMap = createFragmentMap(fragmentDefinitions); (_a = directives.rest), (path = _a.path), (endpoint = _a.endpoint), (pathBuilder = _a.pathBuilder); uri = getURIFromEndpoints(endpoints, endpoint); _c.label = 1; case 1: _c.trys.push([1, 3, , 4]); argsWithExport = __assign({}, args, exportVariables); bothPathsProvided = path != null && pathBuilder != null; neitherPathsProvided = path == null && pathBuilder == null; if (bothPathsProvided || neitherPathsProvided) { pathBuilderState = bothPathsProvided ? 'both, please remove one!' : 'neither, please add one!'; throw new Error( 'One and only one of ("path" | "pathBuilder") must be set in the @rest() directive. ' + ('This request had ' + pathBuilderState), ); } if (!pathBuilder) { pathBuilder = function(args) { var pathWithParams = Object.keys(args).reduce(function(acc, e) { return replaceParam(acc, e, args[e]); }, path); if (pathWithParams.includes(':')) { throw new Error( 'Missing parameters to run query, specify it in the query params or use ' + 'an export directive. (If you need to use ":" inside a variable string' + ' make sure to encode the variables properly using `encodeURIComponent' + '`. Alternatively see documentation about using pathBuilder.)', ); } return pathWithParams; }; } pathWithParams = pathBuilder(argsWithExport); (_b = directives.rest), (method = _b.method), (type_1 = _b.type), (bodyBuilder = _b.bodyBuilder), (bodyKey = _b.bodyKey), (perRequestNameDenormalizer = _b.fieldNameDenormalizer); if (!method) { method = 'GET'; } body = undefined; if ( -1 === ['GET', 'DELETE'].indexOf(method) && operationType === 'mutation' ) { // Prepare our body! if (!bodyBuilder) { maybeBody_1 = argsWithExport[bodyKey || 'input']; if (!maybeBody_1) { throw new Error( '[GraphQL mutation using a REST call without a body]. No `input` was detected. Pass bodyKey, or bodyBuilder to the @rest() directive to resolve this.', ); } bodyBuilder = function(argsWithExport) { return maybeBody_1; }; } body = convertObjectKeys( bodyBuilder(argsWithExport), perRequestNameDenormalizer || linkLevelNameDenormalizer || noOpNameNormalizer, ); } validateRequestMethodForOperationType( method, operationType || 'query', ); return [ 4 /*yield*/, (customFetch || fetch)('' + uri + pathWithParams, { credentials: credentials, method: method, headers: headers, body: body && JSON.stringify(body), }) .then(function(res) { return __awaiter(_this, void 0, void 0, function() { var parsed, error_2; return __generator(this, function(_a) { switch (_a.label) { case 0: if (!(res.status >= 300)) return [3 /*break*/, 6]; parsed = void 0; _a.label = 1; case 1: _a.trys.push([1, 3, , 5]); return [4 /*yield*/, res.json()]; case 2: parsed = _a.sent(); return [3 /*break*/, 5]; case 3: error_2 = _a.sent(); return [4 /*yield*/, res.text()]; case 4: // its not json parsed = _a.sent(); return [3 /*break*/, 5]; case 5: rethrowServerSideError( res, parsed, 'Response not successful: Received status code ' + res.status, ); _a.label = 6; case 6: return [2 /*return*/, res]; } }); }); }) .then(function(res) { context.responses.push(res); // HTTP-204 means "no-content", similarly Content-Length implies the same // This commonly occurs when you POST/PUT to the server, and it acknowledges // success, but doesn't return your Resource. return res.status === 204 || res.headers.get('Content-Length') === '0' ? Promise.resolve({}) : res.json(); }) .then(function(result) { return fieldNameNormalizer == null ? result : convertObjectKeys(result, fieldNameNormalizer); }) .then(function(result) { return findRestDirectivesThenInsertNullsForOmittedFields( resultKey, result, mainDefinition, fragmentMap, mainDefinition.selectionSet, ); }) .then(function(result) { return addTypeNameToResult(result, type_1, typePatcher); }), ]; case 2: return [2 /*return*/, _c.sent()]; case 3: error_1 = _c.sent(); throw error_1; case 4: return [2 /*return*/]; } }); }); }; /** * Default key to use when the @rest directive omits the "endpoint" parameter. */ var DEFAULT_ENDPOINT_KEY = ''; /** * RestLink is an apollo-link for communicating with REST services using GraphQL on the client-side */ var RestLink = /** @class */ (function(_super) { __extends(RestLink, _super); function RestLink(_a) { var uri = _a.uri, endpoints = _a.endpoints, headers = _a.headers, fieldNameNormalizer = _a.fieldNameNormalizer, fieldNameDenormalizer = _a.fieldNameDenormalizer, typePatcher = _a.typePatcher, customFetch = _a.customFetch, credentials = _a.credentials; var _this = _super.call(this) || this; var fallback = {}; fallback[DEFAULT_ENDPOINT_KEY] = uri || ''; _this.endpoints = Object.assign({}, endpoints || fallback); if (uri == null && endpoints == null) { throw new Error( 'A RestLink must be initialized with either 1 uri, or a map of keyed-endpoints', ); } if (uri != null) { var currentDefaultURI = (endpoints || {})[DEFAULT_ENDPOINT_KEY]; if (currentDefaultURI != null && currentDefaultURI != uri) { throw new Error( "RestLink was configured with a default uri that doesn't match what's passed in to the endpoints map.", ); } _this.endpoints[DEFAULT_ENDPOINT_KEY] = uri; } if (_this.endpoints[DEFAULT_ENDPOINT_KEY] == null) { console.warn( 'RestLink configured without a default URI. All @rest(…) directives must provide an endpoint key!', ); } if (typePatcher == null) { _this.typePatcher = function(result, __typename, _2) { return __assign({ __typename: __typename }, result); }; } else if ( !Array.isArray(typePatcher) && typeof typePatcher === 'object' && Object.keys(typePatcher) .map(function(key) { return typePatcher[key]; }) .reduce( // Make sure all of the values are patcher-functions function(current, patcher) { return current && typeof patcher === 'function'; }, true, ) ) { var table_1 = typePatcher; _this.typePatcher = function(data, outerType, patchDeeper) { var __typename = data.__typename || outerType; if (Array.isArray(data)) { return data.map(function(d) { return patchDeeper(d, __typename, patchDeeper); }); } var subPatcher = table_1[__typename] || function(result) { return result; }; return __assign( { __typename: __typename }, subPatcher(data, __typename, patchDeeper), ); }; } else { throw new Error( 'RestLink was configured with a typePatcher of invalid type!', ); } _this.fieldNameNormalizer = fieldNameNormalizer || null; _this.fieldNameDenormalizer = fieldNameDenormalizer || null; _this.headers = normalizeHeaders(headers); _this.credentials = credentials || null; _this.customFetch = customFetch; return _this; } RestLink.prototype.request = function(operation, forward) { var query = operation.query, variables = operation.variables, getContext = operation.getContext, setContext = operation.setContext; var context = getContext(); var isRestQuery = hasDirectives(['rest'], operation.query); if (!isRestQuery) { return forward(operation); } // 1. Use the user's merge policy if any var headersMergePolicy = context.headersMergePolicy; if ( headersMergePolicy == null && Array.isArray(context.headersToOverride) ) { // 2.a. Override just the passed in headers, if user provided that optional array headersMergePolicy = makeOverrideHeadersMergePolicy( context.headersToOverride, ); } else if (headersMergePolicy == null) { // 2.b Glue the link (default) headers to the request-context headers headersMergePolicy = concatHeadersMergePolicy; } var headers = headersMergePolicy(this.headers, context.headers); var credentials = context.credentials || this.credentials; var queryWithTypename = addTypenameToDocument(query); var mainDefinition = getMainDefinition(query); var fragmentDefinitions = getFragmentDefinitions(query); var operationType = (mainDefinition || {}).operation || 'query'; var requestContext = { headers: headers, endpoints: this.endpoints, // Provide an empty hash for this request's exports to be stuffed into exportVariables: {}, credentials: credentials, customFetch: this.customFetch, operationType: operationType, fieldNameNormalizer: this.fieldNameNormalizer, fieldNameDenormalizer: this.fieldNameDenormalizer, mainDefinition: mainDefinition, fragmentDefinitions: fragmentDefinitions, typePatcher: this.typePatcher, responses: [], }; var resolverOptions = {}; return new Observable(function(observer) { graphql( resolver, queryWithTypename, null, requestContext, variables, resolverOptions, ) .then(function(data) { setContext({ restResponses: (context.restResponses || []).concat( requestContext.responses, ), }); observer.next({ data: data }); observer.complete(); }) .catch(function(err) { if (err.name === 'AbortError') return; if (err.result && err.result.errors) { observer.next(err.result); } observer.error(err); }); }); }; return RestLink; })(ApolloLink); export { RestLink }; //# sourceMappingURL=restLink.js.map
module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, node: true, "cypress/globals": true }, extends: [ 'standard', 'plugin:vue/recommended' ], globals: { __static: true }, plugins: [ 'vue', "cypress" ], 'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'max-len': [2, 120], 'space-before-function-paren': [2, { "anonymous": "never", "named": "never", "asyncArrow": "always" }], // was always 'vue/require-default-prop': 2, // was 1 'vue/order-in-components': 2, // was 1 'vue/max-attributes-per-line': 0, // was 1 'vue/singleline-html-element-content-newline': 0 // was 1 } }
module.exports = { entry: "./src/app.js", output: { path: __dirname + "/public", filename: "bundle.js" }, devServer: { contentBase: __dirname + "/public", port: 3000 }, module: { rules: [ { loader: "babel-loader", test: /\.js/ }, { test: /\.s?css/, use: [ "style-loader", "css-loader", "sass-loader" ] }, { test: /\.(gif|png|jpe?g|svg)/i, use: [ "file-loader", { loader: "image-webpack-loader", options: { gifsicle: { interlanced: false }, optipng: { optimizationlevel: 7 }, pngquant: { quality: "65-90", speed: 4 }, mozjpeg: { progressive: true, quality: 65 } } } ] } ] } };
(function($) { var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;</div>").click(function(){ var html = $(this).parent().html(); html = cleanSource(html); $("#source-modal pre").text(html); $("#source-modal").modal(); }); $('[data-toggle="popover"]').popover(); $('[data-toggle="tooltip"]').tooltip(); $(".demo-component").hover(function(){ $(this).append($button); $button.show(); }, function(){ $button.hide(); }); function cleanSource(html) { var lines = html.split(/\n/); lines.shift(); lines.splice(-1, 1); var indentSize = lines[0].length - lines[0].trim().length, re = new RegExp(" {" + indentSize + "}"); lines = lines.map(function(line){ if (line.match(re)) { line = line.substring(indentSize); } return line; }); lines = lines.join("\n"); return lines; } })(jQuery);
/** * @module search/reducer * @category Search * @subcategory Reducer */ import { combineReducers } from 'redux'; import searchDidYouMeanReducer from './searchDidYouMean'; import searchIntentsReducer from './searchIntents'; import searchSuggestionsReducer from './searchSuggestions'; export default combineReducers({ didYouMean: searchDidYouMeanReducer, intents: searchIntentsReducer, suggestions: searchSuggestionsReducer, });
/** * Created by cassidy on 2/15/18. */ // given and array of arrays of table cells, builds a string that contains a nicely laid out table function rowHeights(rows) { return rows.map(function(row) { return row.reduce(function(max, cell) { return Math.max(max, cell.minHeight()); }, 0); }); } function colWidths(rows) { return rows[0].map(function(_, i) { return rows.reduce(function(max, row) { return Math.max(max, row[i].minWidth()); }, 0); }); } function drawTable(rows) { var heights = rowHeights(rows); var widths = colWidths(rows); function drawLine(blocks, lineNo) { return blocks.map(function(block) { return block[lineNo]; }).join(" "); } function drawRow(row, rowNum) { var blocks = row.map(function(cell, colNum) { return cell.draw(widths[colNum], heights[rowNum]); }); return blocks[0].map(function(_, lineNo) { return drawLine(blocks, lineNo); }).join("\n"); } return rows.map(drawRow).join("\n"); } function repeat(string, times) { var result = ""; for (var i = 0; i < times; i++) result += string; return result; } function TextCell(text) { this.text = text.split("\n"); } TextCell.prototype.minWidth = function() { return this.text.reduce(function(width, line) { return Math.max(width, line.length); }, 0); }; TextCell.prototype.minHeight = function() { return this.text.length; }; TextCell.prototype.draw = function(width, height) { var result = []; for (var i = 0; i < height; i++) { var line = this.text[i] || ""; result.push(line + repeat(" ", width - line.length)); } return result; }; // testing that it arranges properly /* var rows = []; for (var i = 0; i < 5; i++) { var row = []; for (var j = 0; j < 5; j++) { if ((j + i) % 2 == 0) row.push(new TextCell("##")); else row.push(new TextCell(" ")); } rows.push(row); } console.log(drawTable(rows)); */ function UnderlinedCell(inner) { this.inner = inner; } UnderlinedCell.prototype.minWidth = function() { return this.inner.minWidth(); }; UnderlinedCell.prototype.minHeight = function() { return this.inner.minHeight() + 1; }; UnderlinedCell.prototype.draw = function(width, height) { return this.inner.draw(width, height - 1).concat([repeat("-", width)]); }; function dataTable(data) { var keys = Object.keys(data[0]); var headers = keys.map(function(name) { return new UnderlinedCell(new TextCell(name)); }); var body = data.map(function(row) { return keys.map(function(name) { return new TextCell(String(row[name])); }); }); return [headers].concat(body); } var MOUNTAINS = [ {name: "Kilimanjaro", height: 5895, country: "Tanzania"}, {name: "Everest", height: 8848, country: "Nepal"}, {name: "Mount Fuji", height: 3776, country: "Japan"}, {name: "Mont Blanc", height: 4808, country: "Italy/France"}, {name: "Vaalserberg", height: 323, country: "Netherlands"}, {name: "Denali", height: 6168, country: "United States"}, {name: "Popocatepetl", height: 5465, country: "Mexico"} ]; if (typeof module != "undefined" && module.exports) module.exports = MOUNTAINS; console.log(drawTable(dataTable(MOUNTAINS)));
import { FACTION_NAMES, FACTION_COLORS } from '../constants/factions'; import { RARITY_IMAGES } from '../constants/rarities'; import { SUPERTYPE_IMAGES } from '../constants/supertypes'; import { mainFaction } from './card'; import { X_COST } from '../constants/card'; const FACTION_COLORS_MAP = {}; const factionMainColor = (faction, theme) => { if (!FACTION_COLORS_MAP[FACTION_COLORS.blue]) { FACTION_COLORS_MAP[FACTION_COLORS.blue] = theme.blueFactionColor; FACTION_COLORS_MAP[FACTION_COLORS.yellow] = theme.yellowFactionColor; FACTION_COLORS_MAP[FACTION_COLORS.purple] = theme.purpleFactionColor; FACTION_COLORS_MAP[FACTION_COLORS.red] = theme.redFactionColor; FACTION_COLORS_MAP[FACTION_COLORS.green] = theme.greenFactionColor; FACTION_COLORS_MAP[FACTION_COLORS.orange] = theme.orangeFactionColor; } return FACTION_COLORS_MAP[faction]; }; const initializeManaCostsByFaction = theme => { return FACTION_NAMES.reduce((acc, f) => { acc[f] = { name: f, showInLegend: false, color: factionMainColor(f, theme), data: { '0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6+': 0 } }; return acc; }, {}); }; export const getManaCurveHighchartsSeries = (cards, theme) => { const manaCostsByFaction = initializeManaCostsByFaction(theme); try { Object.values(cards).forEach(c => { const { quantity, card } = c; const primaryFaction = mainFaction(card); let manaCost = card.mana; if (manaCost === X_COST) { manaCost = '1'; } else if (manaCost >= 6) { manaCost = '6+'; } else { manaCost = manaCost.toString(); } manaCostsByFaction[primaryFaction].data[manaCost] += quantity; }); } catch (e) { console.error(e); } const manaCurveSeries = Object.values(manaCostsByFaction).map(f => ({ ...f, data: Object.values(f.data) })); return manaCurveSeries; }; export const getRarityCounts = cards => { const rarityCounts = { COMMON: { count: 0, link: RARITY_IMAGES.common }, UNCOMMON: { count: 0, link: RARITY_IMAGES.uncommon }, RARE: { count: 0, link: RARITY_IMAGES.rare }, MYTHIC: { count: 0, link: RARITY_IMAGES.mythic } }; try { Object.values(cards).forEach(c => { const { quantity, card } = c; if (card.rarity) { rarityCounts[card.rarity].count += quantity; } }); } catch (e) { console.error(e); } return Object.values(rarityCounts); }; export const getTypeCounts = cards => { const typeCounts = { MINION: { count: 0, link: SUPERTYPE_IMAGES.minion }, SPELL: { count: 0, link: SUPERTYPE_IMAGES.spell }, ENCHANTMENT: { count: 0, link: SUPERTYPE_IMAGES.enchantment }, ARTIFACT: { count: 0, link: SUPERTYPE_IMAGES.artifact } }; try { Object.values(cards).forEach(c => { const { quantity, card } = c; if (card.supertype && card.supertype.length) { const supertype = card.supertype[0]; typeCounts[supertype].count += quantity; } }); } catch (e) { console.error(e); } return Object.values(typeCounts); };
var request = require('request'); var ratingTemplate = require('./rating.json'); var costsInsurance = require('./apl_costsInsurance.json') var costsInsuranceData = require('./apl_costsInsuranceData.json') var coverInsurance = require('./apl_coverInsurance.json') var coverInsuranceData = require('./apl_coverInsuranceData.json') var deductibleInsurance = require('./apl_deductibleInsurance.json') var deductibleInsuranceData = require('./apl_deductibleInsuranceData.json') var requiredInsurance = require('./apl_requiredInsurance.json') var requiredInsuranceData = require('./apl_requiredInsuranceData.json') var typesInsurance = require('./apl_typesInsurance.json') var typesInsuranceData = require('./apl_typesInsuranceData.json') // touch events for display cards app.displayElementSelected(function (request, response) { // The request object selectedElementToken will be populated with the token that was registered // the element in the display directive. To get the token associated with the directive itself, // it is populated on the request.context.Display.token property. // handleRequestForTouchEvent(request.selectedElementToken); request.getRouter().intent("Authenticate"); return false; }); app.intent("Authenticate", function(request, response) { response.card({ type: "Standard", title: "Authenticating", text: "Please wait till while I authenticate you", image: { smallImageUrl: "https://www.identrust.com/sites/default/files/inline-images/secure-authentication%20%281%29_0.png", largeImageUrl: "https://www.identrust.com/sites/default/files/inline-images/secure-authentication%20%281%29_0.png" } }); console.log(request.slot('OTP')); if(request.slot('OTP') == 1234){ request.getRouter().intent("passAuthentication"); } else{ request.getRouter().intent("failAuthentication"); } }); app.intent("searchTerm", function(req, res) { var term = req.slot("term"); const url = `https://dictionaryapi.com/api/v3/references/medical/json/${term}?key=0d14a18b-9926-46b8-ba37-23f03dbb9102`; request.get(url, (error, response, body) => { console.log('error:', error); // Print the error if one occurred console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received console.log('body:', body); response.say(`${body[0].shortDef[0]}`); }) } ); app.intent("passAuthentication", function(req, res) { res.say("Thanks for authentication. Please wait while I redirect you").shouldEndSession(false); }); app.intent("failAuthentication", function(req, res) { res.card({ type: "Simple", title: "Authentication Failed ", text: "Just say \"Alexa, authenticate \" " }); }); app.intent('startSurvey', function(req, res) { res.say("You are now starting a survey") var dialogDirective = { "type": "Dialog.Delegate", "updatedIntent": { "name": "Reason", "confirmationStatus": "NONE", "slots": { "reasoning": { "name": "reasoning", "resolutions": {}, "confirmationStatus": "NONE" }, } } } res.directive(dialogDirective).shouldEndSession(false); }) app.intent('Reason', function(req, res) { var dialogDirective = { "type": "Dialog.Delegate", "updatedIntent": { "name": "additionalInfo", "confirmationStatus": "NONE", "slots": { "info": { "name": "info", "resolutions": {}, "confirmationStatus": "NONE" } } } } res.directive(dialogDirective).shouldEndSession(false); }) app.intent('additionalInfo', function(req, res) { var dialogDirective = { "type": "Dialog.Delegate", "updatedIntent": { "name": "Feeling", "confirmationStatus": "NONE", "slots": { "number": { "name": "number", "resolutions": {}, "confirmationStatus": "NONE" } } } } res.directive(dialogDirective).shouldEndSession(false); }) app.intent("Feeling", function (req, res) { if (req.type !== "Alexa.Presentation.APL.UserEvent") { res.say('On a scale of one to five how did we perform?').shouldEndSession(false); } var customDirective = ratingTemplate; res.directive(customDirective).shouldEndSession(false); return false; }); app.on("AlexaSkillEvent.SkillPermissionAccepted", function(req, res, request_json) { console.log("AWS Permission " + req.context.System.apiAccessToken); var session = req.getSession(); session.set("reminderAcessToken", req.context.System.apiAccessToken); }); app.intent("setReminder", function(req, res){ res.card({ type: "AskForPermissionsConsent", permissions: [ "alexa::alerts:reminders:skill:readwrite" ], // full address text: "permissions card" }); res.say("Grant permission using your alexa app").shouldEndSession(false); const options = { url: 'https://api.amazonalexa.com/v1/alerts/reminders', method: 'POST', headers: { 'Authorization': `Bearer ${req.getSession().get("reminderAcessToken")}`, 'Content-Type': 'application/json' } }; request.post(options, function(error, response, body) { if (!error && response.statusCode == 200) { const info = JSON.parse(body); console.log(info); } }); }); function getTokenOptions(){ // const TokenPostData = getTokenPostData(); return { hostname: 'api.amazon.com', port: 443, path: '/auth/O2/token', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', } } } function getTokenPostData() { return 'grant_type=client_credentials&client_id=amzn1.application-oa2-client.3e8ba61f21ba40099d9b87daa1b9e5b9' + '&client_secret=61d828b87e3e41ba074a8dbcc1a69fa1331cd5c2c705df9ec584c6c4c284fb4b' + '&scope=alexa::proactive_events'; } function getToken() { return new Promise(resolve => { const TokenPostData = getTokenPostData(); const req = https.request(getTokenOptions(), (res) => { res.setEncoding('utf8'); let returnData = ''; res.on('data', (chunk) => { returnData += chunk; }); res.on('end', () => { const tokenRequestId = res.headers['x-amzn-requestid']; // console.log(`Token requestId: ${tokenRequestId}`); resolve(JSON.parse(returnData).access_token); }); }); req.write(TokenPostData); req.end(); }); } function getWeatherEvent() { let timestamp = new Date(); let expiryTime = new Date(); expiryTime.setMinutes(expiryTime.getHours() + 24); let referenceId = "SampleReferenceId" + new Date().getTime(); // cross reference to records in your existing systems const eventJson = { "timestamp": timestamp.toISOString(), "referenceId": referenceId, "expiryTime": expiryTime.toISOString(), "event":{ "name":"AMAZON.WeatherAlert.Activated", "payload":{ "alert":{ "source": "localizedattribute:source", "alertType": "HURRICANE" } } }, "localizedattribute":[ { "locale": "en-US", "source": "Weather Channel" }, { "locale": "en-GB", "source": "Britain Met Office" }, { "locale": "fr-FR", "source": "Canal météo" } ], "relevantAudience":{ "type":"Multicast", "payload":{} } }; return eventJson; } function getProactiveOptions(token, postLength){ return { hostname: 'api.amazonalexa.com', // api.eu.amazonalexa.com (Europe) api.fe.amazonalexa.com (Far East) port: 443, path: '/v1/proactiveEvents/' + (mode && mode === 'prod' ? '' : 'stages/development'), // mode: global var method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token } }; } function sendEvent(token) { return new Promise(resolve => { const ProactivePostData = JSON.stringify(getWeatherEvent()); const ProactiveOptions = getProactiveOptions(token, ProactivePostData.length); const req = https.request(ProactiveOptions, (res) => { res.setEncoding('utf8'); if ([200, 202].includes(res.statusCode)) { console.log('successfully sent event'); } else { console.log(`Error https response: ${res.statusCode}`); console.log(`requestId: ${res.headers['x-amzn-requestid']}`); if ([403].includes(res.statusCode)) { resolve(`error ${res.statusCode}`); } } let returnData; res.on('data', (chunk) => { returnData += chunk; }); res.on('end', () => { const requestId = res.headers['x-amzn-requestid']; resolve("sent event"); }); }); req.write(ProactivePostData); req.end(); }); } app.intent('sendEvent', function(req, res) { var token = getToken(); sendEvent(token); response.say("Sent an event") }) app.intent('insuranceType', function(req, res) { var customLaunchDirective = { "type": "Alexa.Presentation.APL.RenderDocument", "token": "insuranceType", "document": typesInsurance, "datasources": typesInsuranceData }; res.directive(customLaunchDirective).shouldEndSession(false); }); app.intent('insuranceCosts', function(req, res) { var customLaunchDirective = { "type": "Alexa.Presentation.APL.RenderDocument", "token": "insuranceCosts", "document": costsInsurance, "datasources": costsInsuranceData }; res.directive(customLaunchDirective).shouldEndSession(false); }); app.intent('insuranceCover', function(req, res) { var customLaunchDirective = { "type": "Alexa.Presentation.APL.RenderDocument", "token": "insuranceCover", "document": coverInsurance, "datasources": coverInsuranceData }; res.directive(customLaunchDirective).shouldEndSession(false); }); app.intent('insuranceDeductible', function(req, res) { var customLaunchDirective = { "type": "Alexa.Presentation.APL.RenderDocument", "token": "insuranceDeductible", "document": deductibleInsurance, "datasources": deductibleInsuranceData }; res.directive(customLaunchDirective).shouldEndSession(false); }); app.intent('insuranceRequired', function(req, res) { var customLaunchDirective = { "type": "Alexa.Presentation.APL.RenderDocument", "token": "insuranceRequired", "document": requiredInsurance, "datasources": requiredInsuranceData }; res.directive(customLaunchDirective).shouldEndSession(false); }); function getPhreesiaOptions(method) { return { hostname: 'api.amazonalexa.com', // api.eu.amazonalexa.com (Europe) api.fe.amazonalexa.com (Far East) port: 443, path: '/v1/proactiveEvents/', // mode: global var method: method, headers: { 'Content-Type': 'application/json', } }; } function sendPhreesiaEvent(method) { return new Promise(resolve => { const PhreesiaOptions = getPhreesiaOptions(method); const req = https.request(PhreesiaOptions, (res) => { res.setEncoding('utf8'); if ([200, 202].includes(res.statusCode)) { console.log('successfully sent event'); } else { console.log(`Error https response: ${res.statusCode}`); if ([403].includes(res.statusCode)) { resolve(`error ${res.statusCode}`); } } let returnData; res.on('data', (chunk) => { returnData += chunk; }); res.on('end', () => { resolve("sent event"); }); }); req.write(ProactivePostData); req.end(); }); } function postSurvey(symptom, duration, notes, concernLevel) { return request_promise({ "method":"POST", "uri": `https://coreservicetemplate120190507093532.azurewebsites.net/api/assistant/survey`, "json": true, "body": { "symptom": sympton, "duration": duration, "notes": notes, "concernLevel": concernLevel } }); } app.intent('getAppointment', function(req, res) { var obj = await getAppointment(req.slot("getID")).then(function(result){ return JSON.stringify(result) }); console.log(obj); if(obj.AppointmentStatus !== "INCOMPLETE") res.say((obj.AppointmentStatus)).shouldEndSession(false); else res.say(obj).shouldEndSession(false); res.card("Appointment", obj); })
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("./module_part"), exports); __exportStar(require("./subplayer_manager"), exports); //# sourceMappingURL=index.js.map
"use strict"; window.addEventListener('load', function() { console.log(disabledButton) changeInCheckoutForm(); }); var disabledButton = document.getElementById('js-disabled-button') var errMsg var fillFlag; var emailFlag; var paymentFlag; var termsFlag; function changeInCheckoutForm() { resetMessageFlags() console.log('change detected') let checkoutForm = document.getElementById('js-checkout-form'); let buttonDiv = document.getElementById('js-checkout-button-div'); let paymentMethod = getRadiosValue() console.log(paymentMethod) let emailok = false; // checkCartPrice(); emailok = validateemail(); console.log(emailok); buttonDiv.innerHTML = ""; buttonDiv.appendChild(disabledButton); let customer_email = document.getElementById('id_email').value if (isRequiredFilled(checkoutForm) && emailok) { loadPaymentButton(checkoutForm, buttonDiv, paymentMethod, customer_email); } errorMessage(); }; function loadPaymentButton(checkoutForm, buttonDiv, paymentMethod, email) { let request; let params = "payment=" + paymentMethod + "&customer_email=" + email request = new XMLHttpRequest(); request.open("POST", checkoutForm.dataset.url, true) request.responseType = "document"; request.send(JSON.stringify( { "payment": paymentMethod, "email": email, } )); request.onreadystatechange = function(self) { if(request.readyState == 4) { let childrenToAdd = this.response.body.children console.log(childrenToAdd) buttonDiv.innerHTML = ""; for (let i = 0; i < childrenToAdd.length; i++) { console.log(childrenToAdd[i]) buttonDiv.appendChild(childrenToAdd[i]) } } } }; function validateemail() { var x=document.getElementById('id_email').value; var atposition=x.indexOf("@"); var dotposition=x.lastIndexOf("."); if (atposition<1 || dotposition<atposition+2 || dotposition+2>=x.length){ emailFlag = true; return false; } else { return true; } } ; function isRequiredFilled(form) { let requiredFields = form.querySelectorAll("[required]"); let allAreFilled = true; let radioCheck = false; requiredFields.forEach( function(i) { if (i.type === "radio") { console.log('radiocheck') if (i.checked) { radioCheck = true; paymentFlag = false; } } if (i.type === "checkbox") { if (!i.checked) { allAreFilled = false; termsFlag = true; } } if (!i.value) { console.log('not all filled') allAreFilled = false; fillFlag = true; } } ) if (allAreFilled && radioCheck) { return true; } else { return false; } }; function getRadiosValue() { let radios = document.getElementsByName('payment') for (let i = 0; i < radios.length; i++) { if (radios[i].checked) { return radios[i].value } } }; function errorMessage() { console.log('errorMessages') errMsg = disabledButton.dataset.msgfill; disabledButton.innerText = errMsg; if (fillFlag) { errMsg = disabledButton.dataset.msgfill; } else if (emailFlag) { errMsg = disabledButton.dataset.msgemail; } else if (paymentFlag) { errMsg = disabledButton.dataset.msgpayment; } else if (termsFlag) { errMsg = disabledButton.dataset.msgterms; } else { errMsg = disabledButton.dataset.msgwait; } disabledButton.innerText = errMsg; }; function resetMessageFlags() { fillFlag = false; emailFlag = false; paymentFlag = true; termsFlag = false; }; // function checkCartPrice() { // let priceElement = document.getElementById('js-price'); // let checkoutForm = document.getElementById('js-checkout-form'); // price = priceElement.dataset.price; // if (price >= 0){ // } // return price; // }
import "./button.css"; import buttonText from "./button-text.html"; import buttonLogo from "./button-logo.html"; import centered from "@storybook/addon-centered/html"; export default { title: "Components/Button", decorators: [centered] }; export const withText = () => buttonText; export const withLogo = () => buttonLogo;
import React from 'react' const SearchBar = ({ keyName, placeholder, onSearch }) => { return ( <div key={keyName} style={{ display: 'inline-flex', flexFlow: 'column-reverse', marginBottom: '1em' }}> <input id={keyName} name={keyName} placeholder={placeholder} style={{ width: 300 }} className="animated-input" onChange={onSearch} /> <label htmlFor={keyName}>Search</label> </div> ) } export default SearchBar
import Component from 'ember-component' import layout from '../../templates/components/gh-event/fork-event' export default Component.extend({ layout, classNames: [ 'simple' ] })
!function(){function e(e,t){var r=new RegExp("\\b"+t+".*?\\b","g");return e.className=e.className.replace(r,""),e}function t(e){var t=document.documentElement,r=e.getBoundingClientRect(),n=r.top+window.pageYOffset-t.clientTop,o=r.left+window.pageXOffset-t.clientLeft;return{top:n,left:o}}function r(){if(void 0!=window.pageYOffset)return pageYOffset;var e,t=document,r=t.documentElement,n=t.body;return e=r.scrollTop||n.scrollTop||0,[sx,e]}function n(e){function t(e,t,r,n){return e/=n/2,1>e?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)}var r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,n=e-r,o=Math.min(4*Math.abs(n),1e3),i=0,a=20;if(Math.abs(n)>10){var l=function(){i+=a;var e=t(i,r,n,o);window.scrollTo(0,e),o>i&&setTimeout(l,a)};l()}}var o=angular.module("angular-joyride",["ngAnimate"]);o.run(["$templateCache",function(e){e.put("ngJoyrideDefault.html",'<div class="jr_container" id="jr_{{joyride.current}}"><div class="jr_step"><h4 ng-if="joyride.config.steps[joyride.current].title" class="jr_title">{{joyride.config.steps[joyride.current].title}}</h4><div ng-if="joyride.config.steps[joyride.current].content" class="jr_content" ng-bind-html="joyride.config.steps[joyride.current].content | jr_trust"></div></div><div class="jr_buttons"><div class="jr_left_buttons"><a class="jr_button jr_skip" ng-click="joyride.start = false">Skip</a></div><div class="jr_right_buttons"><a class="jr_button jr_prev" ng-click="joyride.prev()" ng-class="{\'disabled\' : joyride.current === 0}">Prev</a><a class="jr_button jr_next" ng-click="joyride.next()" ng-bind="(joyride.current == joyride.config.steps.length-1) ? \'Finish\' : \'Next\'"></a></div></div></div>')}]);var i=function(o,i,a,l,s,c){return{restrict:"E",scope:{},template:'<div class="jr_overlay"></div>',link:function(d,u,f){function y(){var e=a(_)(d),t=d.joyride.config.steps[d.joyride.current],r=angular.element(document.querySelector("body"));if("element"===t.type&&!t.appendToBody)var r=angular.element(document.querySelector(t.selector));r.append(e),v=document.querySelector(".jr_container"),"element"!==t.type||t.appendToBody||angular.element(v).on("click",function(e){e.preventDefault(),e.stopPropagation()}),angular.element(v).append("<div class='triangle'></div>"),d.joyride.start&&(d.joyride.transitionStep||angular.element(v).addClass("jr_start").addClass("jr_transition"))}function p(){angular.element(v).remove()}function j(){"function"==typeof d.joyride.config.steps[d.joyride.current].afterStep?d.joyride.config.steps[d.joyride.current].afterStep(g):g()}function g(){"next"==d.joyride.transitionStep?d.joyride.current++:d.joyride.current--,"function"==typeof d.joyride.config.steps[d.joyride.current].beforeStep?d.joyride.config.steps[d.joyride.current].beforeStep(d.joyride.resumeJoyride):d.joyride.resumeJoyride()}function m(){var o=d.joyride.config.steps[d.joyride.current];s(function(){e(v,"jr_pos_");var i=d.joyride.config.steps[d.joyride.current];if("element"==i.type){v.removeAttribute("style"),angular.element(v).addClass("jr_element"),document.querySelector(".jr_target")&&angular.element(document.querySelector(".jr_target")).removeClass("jr_target");var a=angular.element(document.querySelector(i.selector)),l=t(a[0]),s=window.innerWidth;a.addClass("jr_target");var c=i.placement||"bottom";if(i.responsive&&s<i.responsive.breakpoint&&(c=i.responsive.placement||"bottom"),angular.element(v).addClass("jr_pos_"+c),o.appendToBody){if("top"===c||"bottom"===c){if("top"===c){var u=v.clientHeight;l.top-=u+20}else{var u=a[0].clientHeight;l.top+=u+20}var f=v.clientWidth,y=a[0].clientWidth;if(l.left=l.left+y/2-f/2,l.left<0){var p=document.querySelector(".jr_container .triangle");p.style.left=l.left+Math.abs((f-y+p.offsetWidth)/2)+"px",p.style.right="auto",l.left=0}else if(l.left+f>s){var j=l.left+f/2,p=document.querySelector(".jr_container .triangle");p.style.right="auto",l.left=s-f,p.style.left=j-l.left-p.offsetWidth/2+"px"}else{var p=document.querySelector(".jr_container .triangle");p.style.left=0,p.style.right=0}}else{var g=v.clientHeight,m=a[0].clientHeight;if(l.top=l.top+m/2-g/2,"left"===c){var _=v.clientWidth;l.left-=_+20}else{var _=a[0].clientWidth;l.left+=_+20}}v.style.left=l.left+"px",v.style.top=l.top+"px",v.style.right="auto",v.style.bottom="auto",v.style.transform="none"}i.scroll!==!1&&("bottom"===c?scroll_pos=l.top-a[0].clientHeight:"top"===c?scroll_pos=l.top-v.clientHeight:a[0].clientHeight<v.clientHeight&&(scroll_pos=l.top-(v.clientHeight-a[0].clientHeight)/2),n(scroll_pos))}else angular.element(v).removeClass("jr_element"),document.querySelector(".jr_target")&&angular.element(document.querySelector(".jr_target")).removeClass("jr_target"),v.style.left="",v.style.top=r(c,v)+100+"px"})}d.joyride=i;var v,_;angular.element(c).bind("resize",function(){d.joyride.start&&m()}),d.$watch("joyride.start",function(e,t){function r(){y(),o.addClass(v,"jr_start").then(d.joyride.config.onStart),m()}e===t&&e!==!0||(e&&(_=d.joyride.config.template||"ngJoyrideDefault.html",l(_,!1).then(function(e){_=e,angular.element(document.querySelector("body")).addClass("jr_active"),d.joyride.config.overlay!==!1&&angular.element(document.querySelector("body")).addClass("jr_overlay_show"),"function"==typeof d.joyride.config.steps[d.joyride.current].beforeStep?d.joyride.config.steps[d.joyride.current].beforeStep(r):r()})),e||o.removeClass(v,"jr_start").then(h))}),d.$watch("joyride.transitionStep",function(e,t){if(e!==t&&d.joyride.start){if(e)if("next"==e&&d.joyride.current==d.joyride.config.steps.length-1)d.joyride.start=!1;else{if("prev"==e&&0==d.joyride.current)return;o.addClass(v,"jr_transition").then(j)}e||o.removeClass(v,"jr_transition")}}),d.joyride.resumeJoyride=function(){d.joyride.start&&(d.joyride.transitionStep=!1,"function"==typeof d.joyride.config.onStepChange&&d.joyride.config.onStepChange(),p(),y(),s(function(){m()}))};var h=function(){angular.element(document.querySelector("body")).removeClass("jr_active jr_overlay_show"),p(),d.joyride.current=0,d.joyride.transitionStep=!0,"function"==typeof d.joyride.config.onFinish&&d.joyride.config.onFinish(),document.querySelector(".jr_target")&&angular.element(document.querySelector(".jr_target")).removeClass("jr_target")}}}},a=function(){return{current:0,transitionStep:!0,resumeJoyride:function(){},start:!1,config:{overlay:!0,template:!1,steps:[],onStepChange:function(){},onFinish:function(){},onStart:function(){}},next:function(){this.transitionStep="next"},prev:function(){this.transitionStep="prev"},goTo:function(e){this.start=!0,e&&(this.current=e)}}};o.filter("jr_trust",["$sce",function(e){return function(t,r){return e.trustAsHtml(t)}}]),o.factory("joyrideService",[a]),o.directive("joyride",["$animate","joyrideService","$compile","$templateRequest","$timeout","$window",i])}();
const router = require("express").Router(); const { internalServerError } = require("../utils/response"); const ProductControllers = require("../controllers/product"); router.get( "/all", async (req, res) => { try { await ProductControllers.getAllProducts(req, res); } catch (error) { internalServerError(res, error); } } ); router.get( "/:productName", async (req, res) => { try { await ProductControllers.getProduct(req, res); } catch (error) { internalServerError(res, error); } } ); router.put("/", async (req, res) => { try { await ProductControllers.createProduct(req, res); } catch (error) { internalServerError(res, error); } } ); router.delete("/:productName", async (req, res) => { try { await ProductControllers.deleteProduct(req, res); } catch (error) { internalServerError(res, error); } } ); module.exports = router;
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.25/esri/copyright.txt for details. //>>built define("esri/dijit/geoenrichment/ReportPlayer/core/infographics/utils/InfographicJsonUtil",["esri/dijit/geoenrichment/config","esri/dijit/geoenrichment/utils/ArrayUtil"],function(e,f){var c={getDefaultLevels:function(){var a=e.levels.slice();a.push(e.highestLevel);return a},getLevels:function(a){a=a.levels&&a.levels.length?a.levels:c.getDefaultLevels();return f.removeDuplicates(a)},getSubLevels:function(a){a=c.getLevels(a);a.pop();return a},getHighestLevel:function(a){a=c.getLevels(a);return a[a.length- 1]},setLevels:function(a,b){b=f.removeDuplicates(b||[]);a.levels=b.length?b:c.getDefaultLevels()},getDataDrilling:function(a,b){"string"!==typeof b&&(b=(b=a.variableTables&&a.variableTables[b])&&b.variable.fieldInfo&&b.variable.fieldInfo.templateName);return a.dataDrilling&&a.dataDrilling[b]},setDataDrilling:function(a,b,d){b&&(a.dataDrilling=a.dataDrilling||{},d?a.dataDrilling[b]=d:delete a.dataDrilling[b])},validateDataDrilling:function(a){var b=a.dataDrilling;if(b){var d={};a.variableTables.forEach(function(a){a.variable&& a.variable.fieldInfo&&a.variable.fieldInfo.templateName&&(d[a.variable.fieldInfo.templateName]=!0)});Object.keys(b).forEach(function(a){d[a]||delete b[a]})}},analyzeVariables:function(a){a=a.fieldInfos?a.fieldInfos.map(function(a){return a.fullName}):a.variables;if(1===a.length&&-1!==a[0].indexOf(".*"))return{dataCollectionID:a[0].substr(0,a[0].indexOf("."))};var b={},d,c;a.forEach(function(a,e){b[a.substr(0,a.indexOf("."))]=1;d=a.substr(a.indexOf(".")+1);c=a});return{dataCollectionID:1===Object.keys(b).length? Object.keys(b)[0]:null,variableID:1===a.length?d:null,fullName:1===a.length?c:null}}};return c});
module.exports = { name: 'Add Embed Field', section: 'Embed Message', subtitle (data) { return `${data.name} - ${data.message}` }, fields: ['storage', 'varName', 'fieldName', 'message', 'inline'], html (isEvent, data) { return ` <div><p>This action has been modified by DBM Mods. Use [Title](Link) to mask links here.</p></div><br> <div> <div style="float: left; width: 35%;"> Source Embed Object:<br> <select id="storage" class="round" onchange="glob.refreshVariableList(this)"> ${data.variables[1]} </select> </div> <div id="varNameContainer" style="float: right; width: 60%;"> Variable Name:<br> <input id="varName" class="round varSearcher" type="text" list="variableList"><br> </div> </div><br><br><br> <div style="padding-top: 8px;"> <div style="float: left; width: 50%;"> Field Name:<br> <input id="fieldName" placeholder="Optional" class="round" type="text"> </div> <div style="float: left; width: 50%;"> Display Inline:<br> <select id="inline" class="round"> <option value="0">Yes</option> <option value="1" selected>No</option> </select> </div> </div><br><br><br> <div style="padding-top: 8px;"> Field Description:<br> <textarea id="message" rows="7.5" placeholder="Insert message here... (Optional)" style="width: 99%; font-family: monospace; white-space: nowrap; resize: none;"></textarea> </div>` }, init () {}, action (cache) { const data = cache.actions[cache.index] const storage = parseInt(data.storage) const varName = this.evalMessage(data.varName, cache) const embed = this.getVariable(storage, varName, cache) const name = this.evalMessage(data.fieldName, cache) const message = this.evalMessage(data.message, cache) const inline = Boolean(data.inline === '0') if (embed && embed.addField) { embed.addField(name || '\u200B', message || '\u200B', inline) } this.callNextAction(cache) }, mod () {} }
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Params = exports.ValidatorSigningInfo = exports.protobufPackage = void 0; /* eslint-disable */ const long_1 = __importDefault(require("long")); const minimal_1 = __importDefault(require("protobufjs/minimal")); const duration_1 = require("../../../google/protobuf/duration"); const timestamp_1 = require("../../../google/protobuf/timestamp"); exports.protobufPackage = "cosmos.slashing.v1beta1"; const baseValidatorSigningInfo = { address: "", startHeight: long_1.default.ZERO, indexOffset: long_1.default.ZERO, tombstoned: false, missedBlocksCounter: long_1.default.ZERO, }; exports.ValidatorSigningInfo = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.address !== "") { writer.uint32(10).string(message.address); } if (!message.startHeight.isZero()) { writer.uint32(16).int64(message.startHeight); } if (!message.indexOffset.isZero()) { writer.uint32(24).int64(message.indexOffset); } if (message.jailedUntil !== undefined) { timestamp_1.Timestamp.encode(toTimestamp(message.jailedUntil), writer.uint32(34).fork()).ldelim(); } if (message.tombstoned === true) { writer.uint32(40).bool(message.tombstoned); } if (!message.missedBlocksCounter.isZero()) { writer.uint32(48).int64(message.missedBlocksCounter); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = Object.assign({}, baseValidatorSigningInfo); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.address = reader.string(); break; case 2: message.startHeight = reader.int64(); break; case 3: message.indexOffset = reader.int64(); break; case 4: message.jailedUntil = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32())); break; case 5: message.tombstoned = reader.bool(); break; case 6: message.missedBlocksCounter = reader.int64(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { const message = Object.assign({}, baseValidatorSigningInfo); if (object.address !== undefined && object.address !== null) { message.address = String(object.address); } else { message.address = ""; } if (object.startHeight !== undefined && object.startHeight !== null) { message.startHeight = long_1.default.fromString(object.startHeight); } else { message.startHeight = long_1.default.ZERO; } if (object.indexOffset !== undefined && object.indexOffset !== null) { message.indexOffset = long_1.default.fromString(object.indexOffset); } else { message.indexOffset = long_1.default.ZERO; } if (object.jailedUntil !== undefined && object.jailedUntil !== null) { message.jailedUntil = fromJsonTimestamp(object.jailedUntil); } else { message.jailedUntil = undefined; } if (object.tombstoned !== undefined && object.tombstoned !== null) { message.tombstoned = Boolean(object.tombstoned); } else { message.tombstoned = false; } if (object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null) { message.missedBlocksCounter = long_1.default.fromString(object.missedBlocksCounter); } else { message.missedBlocksCounter = long_1.default.ZERO; } return message; }, toJSON(message) { const obj = {}; message.address !== undefined && (obj.address = message.address); message.startHeight !== undefined && (obj.startHeight = (message.startHeight || long_1.default.ZERO).toString()); message.indexOffset !== undefined && (obj.indexOffset = (message.indexOffset || long_1.default.ZERO).toString()); message.jailedUntil !== undefined && (obj.jailedUntil = message.jailedUntil.toISOString()); message.tombstoned !== undefined && (obj.tombstoned = message.tombstoned); message.missedBlocksCounter !== undefined && (obj.missedBlocksCounter = (message.missedBlocksCounter || long_1.default.ZERO).toString()); return obj; }, fromPartial(object) { const message = Object.assign({}, baseValidatorSigningInfo); if (object.address !== undefined && object.address !== null) { message.address = object.address; } else { message.address = ""; } if (object.startHeight !== undefined && object.startHeight !== null) { message.startHeight = object.startHeight; } else { message.startHeight = long_1.default.ZERO; } if (object.indexOffset !== undefined && object.indexOffset !== null) { message.indexOffset = object.indexOffset; } else { message.indexOffset = long_1.default.ZERO; } if (object.jailedUntil !== undefined && object.jailedUntil !== null) { message.jailedUntil = object.jailedUntil; } else { message.jailedUntil = undefined; } if (object.tombstoned !== undefined && object.tombstoned !== null) { message.tombstoned = object.tombstoned; } else { message.tombstoned = false; } if (object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null) { message.missedBlocksCounter = object.missedBlocksCounter; } else { message.missedBlocksCounter = long_1.default.ZERO; } return message; }, }; const baseParams = { signedBlocksWindow: long_1.default.ZERO }; exports.Params = { encode(message, writer = minimal_1.default.Writer.create()) { if (!message.signedBlocksWindow.isZero()) { writer.uint32(8).int64(message.signedBlocksWindow); } if (message.minSignedPerWindow.length !== 0) { writer.uint32(18).bytes(message.minSignedPerWindow); } if (message.downtimeJailDuration !== undefined) { duration_1.Duration.encode(message.downtimeJailDuration, writer.uint32(26).fork()).ldelim(); } if (message.slashFractionDoubleSign.length !== 0) { writer.uint32(34).bytes(message.slashFractionDoubleSign); } if (message.slashFractionDowntime.length !== 0) { writer.uint32(42).bytes(message.slashFractionDowntime); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = Object.assign({}, baseParams); message.minSignedPerWindow = new Uint8Array(); message.slashFractionDoubleSign = new Uint8Array(); message.slashFractionDowntime = new Uint8Array(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.signedBlocksWindow = reader.int64(); break; case 2: message.minSignedPerWindow = reader.bytes(); break; case 3: message.downtimeJailDuration = duration_1.Duration.decode(reader, reader.uint32()); break; case 4: message.slashFractionDoubleSign = reader.bytes(); break; case 5: message.slashFractionDowntime = reader.bytes(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { const message = Object.assign({}, baseParams); message.minSignedPerWindow = new Uint8Array(); message.slashFractionDoubleSign = new Uint8Array(); message.slashFractionDowntime = new Uint8Array(); if (object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null) { message.signedBlocksWindow = long_1.default.fromString(object.signedBlocksWindow); } else { message.signedBlocksWindow = long_1.default.ZERO; } if (object.minSignedPerWindow !== undefined && object.minSignedPerWindow !== null) { message.minSignedPerWindow = bytesFromBase64(object.minSignedPerWindow); } if (object.downtimeJailDuration !== undefined && object.downtimeJailDuration !== null) { message.downtimeJailDuration = duration_1.Duration.fromJSON(object.downtimeJailDuration); } else { message.downtimeJailDuration = undefined; } if (object.slashFractionDoubleSign !== undefined && object.slashFractionDoubleSign !== null) { message.slashFractionDoubleSign = bytesFromBase64(object.slashFractionDoubleSign); } if (object.slashFractionDowntime !== undefined && object.slashFractionDowntime !== null) { message.slashFractionDowntime = bytesFromBase64(object.slashFractionDowntime); } return message; }, toJSON(message) { const obj = {}; message.signedBlocksWindow !== undefined && (obj.signedBlocksWindow = (message.signedBlocksWindow || long_1.default.ZERO).toString()); message.minSignedPerWindow !== undefined && (obj.minSignedPerWindow = base64FromBytes(message.minSignedPerWindow !== undefined ? message.minSignedPerWindow : new Uint8Array())); message.downtimeJailDuration !== undefined && (obj.downtimeJailDuration = message.downtimeJailDuration ? duration_1.Duration.toJSON(message.downtimeJailDuration) : undefined); message.slashFractionDoubleSign !== undefined && (obj.slashFractionDoubleSign = base64FromBytes(message.slashFractionDoubleSign !== undefined ? message.slashFractionDoubleSign : new Uint8Array())); message.slashFractionDowntime !== undefined && (obj.slashFractionDowntime = base64FromBytes(message.slashFractionDowntime !== undefined ? message.slashFractionDowntime : new Uint8Array())); return obj; }, fromPartial(object) { const message = Object.assign({}, baseParams); if (object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null) { message.signedBlocksWindow = object.signedBlocksWindow; } else { message.signedBlocksWindow = long_1.default.ZERO; } if (object.minSignedPerWindow !== undefined && object.minSignedPerWindow !== null) { message.minSignedPerWindow = object.minSignedPerWindow; } else { message.minSignedPerWindow = new Uint8Array(); } if (object.downtimeJailDuration !== undefined && object.downtimeJailDuration !== null) { message.downtimeJailDuration = duration_1.Duration.fromPartial(object.downtimeJailDuration); } else { message.downtimeJailDuration = undefined; } if (object.slashFractionDoubleSign !== undefined && object.slashFractionDoubleSign !== null) { message.slashFractionDoubleSign = object.slashFractionDoubleSign; } else { message.slashFractionDoubleSign = new Uint8Array(); } if (object.slashFractionDowntime !== undefined && object.slashFractionDowntime !== null) { message.slashFractionDowntime = object.slashFractionDowntime; } else { message.slashFractionDowntime = new Uint8Array(); } return message; }, }; var globalThis = (() => { if (typeof globalThis !== "undefined") return globalThis; if (typeof self !== "undefined") return self; if (typeof window !== "undefined") return window; if (typeof global !== "undefined") return global; throw "Unable to locate global object"; })(); const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); function bytesFromBase64(b64) { const bin = atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); function base64FromBytes(arr) { const bin = []; for (const byte of arr) { bin.push(String.fromCharCode(byte)); } return btoa(bin.join("")); } function toTimestamp(date) { const seconds = numberToLong(date.getTime() / 1000); const nanos = (date.getTime() % 1000) * 1000000; return { seconds, nanos }; } function fromTimestamp(t) { let millis = t.seconds.toNumber() * 1000; millis += t.nanos / 1000000; return new Date(millis); } function fromJsonTimestamp(o) { if (o instanceof Date) { return o; } else if (typeof o === "string") { return new Date(o); } else { return fromTimestamp(timestamp_1.Timestamp.fromJSON(o)); } } function numberToLong(number) { return long_1.default.fromNumber(number); } if (minimal_1.default.util.Long !== long_1.default) { minimal_1.default.util.Long = long_1.default; minimal_1.default.configure(); } //# sourceMappingURL=slashing.js.map
import React from 'react'; import './Choice.css'; function Choice(props) { return ( <button className={"Choice " + props.className} onClick={props.handleVote.bind(null, props.name)} > {props.answer} </button> ); } export default Choice;
export default (context, html) => html` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M11 9h2v2h-2zm4 0h2v2h-2zm5 6.5c-1.25 0-2.45-.2-3.57-.57-.1-.03-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM5.03 5h1.5c.07.88.22 1.75.46 2.59L5.79 8.8c-.41-1.21-.67-2.48-.76-3.8zM19 18.97c-1.32-.09-2.6-.35-3.8-.76l1.2-1.2c.85.24 1.72.39 2.6.45v1.51zM19 9h2v2h-2z"/></svg> `;
export * from './dom'; export * from './env'; export * from './fastdom'; export * from './lang'; export * from './mouse'; export * from './options'; export * from './player'; export * from './position'; export * from './touch';
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@ag-grid-community/core"); var horizontalResizeComp_1 = require("./horizontalResizeComp"); var ToolPanelWrapper = /** @class */ (function (_super) { __extends(ToolPanelWrapper, _super); function ToolPanelWrapper() { return _super.call(this, ToolPanelWrapper.TEMPLATE) || this; } ToolPanelWrapper.prototype.getToolPanelId = function () { return this.toolPanelId; }; ToolPanelWrapper.prototype.setToolPanelDef = function (toolPanelDef) { this.toolPanelId = toolPanelDef.id; var params = { api: this.gridOptionsWrapper.getApi(), columnApi: this.gridOptionsWrapper.getColumnApi() }; var componentPromise = this.userComponentFactory.newToolPanelComponent(toolPanelDef, params); if (componentPromise == null) { console.warn("ag-grid: error processing tool panel component " + toolPanelDef.id + ". You need to specify either 'toolPanel' or 'toolPanelFramework'"); return; } componentPromise.then(this.setToolPanelComponent.bind(this)); }; ToolPanelWrapper.prototype.setupResize = function () { var resizeBar = this.resizeBar = new horizontalResizeComp_1.HorizontalResizeComp(); this.getContext().wireBean(resizeBar); resizeBar.setElementToResize(this.getGui()); this.appendChild(resizeBar); }; ToolPanelWrapper.prototype.setToolPanelComponent = function (compInstance) { this.toolPanelCompInstance = compInstance; this.appendChild(compInstance); }; ToolPanelWrapper.prototype.getToolPanelInstance = function () { return this.toolPanelCompInstance; }; ToolPanelWrapper.prototype.setResizerSizerSide = function (side) { var isRtl = this.gridOptionsWrapper.isEnableRtl(); var isLeft = side === 'left'; var inverted = isRtl ? isLeft : !isLeft; this.resizeBar.setInverted(inverted); }; ToolPanelWrapper.prototype.refresh = function () { this.toolPanelCompInstance.refresh(); }; ToolPanelWrapper.TEMPLATE = "<div class=\"ag-tool-panel-wrapper\"/>"; __decorate([ core_1.Autowired("userComponentFactory") ], ToolPanelWrapper.prototype, "userComponentFactory", void 0); __decorate([ core_1.Autowired("gridOptionsWrapper") ], ToolPanelWrapper.prototype, "gridOptionsWrapper", void 0); __decorate([ core_1.PostConstruct ], ToolPanelWrapper.prototype, "setupResize", null); return ToolPanelWrapper; }(core_1.Component)); exports.ToolPanelWrapper = ToolPanelWrapper; //# sourceMappingURL=toolPanelWrapper.js.map
function Moon( scene, terrainSize ) { const moonGeometry = new THREE.IcosahedronGeometry( 1000, 3 ); const moonMaterial = new THREE.MeshBasicMaterial( { color: "#fff" } ); const moon = new THREE.Mesh( moonGeometry, moonMaterial ); scene.add( moon ); moon.position.z = - terrainSize / 1.8; var light = new THREE.PointLight( "#2222ff", .2 ); light.position.z = moon.position.z; scene.add( light ); this.update = function ( time ) { const angle = time * 0.01 - Math.PI / 2; moon.position.x = terrainSize * Math.sin( angle ); moon.position.y = terrainSize / 2 * Math.cos( angle ); light.position.x = moon.position.x; light.position.y = moon.position.y; }; }
"use strict"; /** * You are given a text, which contains different english letters and punctuation symbols. * You should find the most frequent letter in the text. * The letter returned must be in lower case. * * While checking for the most wanted letter, casing does not matter, * so for the purpose of your search, "A" == "a". * Make sure you do not count punctuation symbols, digits and whitespaces, only letters. * * If you have two or more letters with the same frequency, * then return the letter which comes first in the latin alphabet. * For example -- "one" contains "o", "n", "e" only once for each, thus we choose "e". * * Input: A text for analysis as a string. * Output: The most frequent letter in lower case as a string. * * Example: * mostWanted("Hello World!") == "l" * mostWanted("How do you do?") == "o" * mostWanted("One") == "e" * mostWanted("Oops!") == "o" * mostWanted("AAaooo!!!!") == "a" * mostWanted("abe") == "a" */ const mostWanted = (data) => { let countMap = {}; for (let i = 0, length = data.length; i < length; i++) { const word = data[i].toLowerCase(); if (word.match(/^([a-z]+)$/)) { if (countMap[word]) { countMap[word] = countMap[word] + 1; } else { countMap[word] = 1; } } } return getBiggestKey(countMap); } const getBiggestKey = (targetMap) => { let biggestKeys = []; let biggestValue = 0; for (let key in targetMap) { const value = targetMap[key]; if (value >= biggestValue) { if (value === biggestValue) { biggestKeys.push(key); } else { biggestKeys = [key]; } biggestValue = value; } } if (biggestKeys.length > 1) { return biggestKeys.sort()[0]; } return biggestKeys[0]; } var assert = require('assert'); if (!global.is_checking) { assert.equal(mostWanted("Hello World!"), "l", "1st example"); assert.equal(mostWanted("How do you do?"), "o", "2nd example"); assert.equal(mostWanted("One"), "e", "3rd example"); assert.equal(mostWanted("Oops!"), "o", "4th example"); assert.equal(mostWanted("AAaooo!!!!"), "a", "Letters"); console.log("Coding complete? Click 'Check' to review your tests and earn cool rewards!"); }
/** * Copyright (c) 2018, KETI * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * @file * @copyright KETI Korea 2018, KETI * @author Il Yeup Ahn [iyahn@keti.re.kr] */ var url = require('url'); var xml2js = require('xml2js'); var xmlbuilder = require('xmlbuilder'); var util = require('util'); var merge = require('merge'); var js2xmlparser = require("js2xmlparser"); var cbor = require("cbor"); var coap = require('coap'); var db_sql = require('./sql_action'); var _this = this; var attrLname = { "acpi": "accessControlPolicyIDs", "aa": "announcedAttribute", "at": "announceTo", "ct": "creationTime", "et": "expirationTime", "lbl": "labels", "lt": "lastModifiedTime", "pi": "parentID", "ri": "resourceID", "ty": "resourceType", "st": "stateTag", "rn": "resourceName", "pv": "privileges", "pvs": "selfPrivileges", "api": "App-ID", "aei": "AE-ID", "apn": "appName", "poa": "pointOfAccess", "or": "ontologyRef", "nl": "nodeLink", "cr": "creator", "mni": "maxNrOfInstances", "mbs": "maxByteSize", "mia": "maxInstanceAge", "cni": "currentNrOfInstances", "cbs": "currentByteSize", "li": "locationID", "cnf": "contentInfo", "cs": "contentSize", "pc": "primitiveContent ", "con": "content", "cst": "cseType", "csi": "CSE-ID", "srt": "supportedResourceType", "ncp": "notificationCongestionPolicy", "sr": "source", "tg": "target", "ls": "lifespan", "ec": "eventCat", "dmd": "deliveryMetaData", "arq": "aggregatedRequest", "evi": "eventID", "evs": "evenStart", "eve": "eventEnd", "opt": "operationType", "ds": "dataSize", "exs": "execStatus", "exr": "execResult", "exd": "execDisable", "ext": "execTarget", "exm": "execMode", "exf": "execFrequency", "exy": "execDelay", "exn": "execNumber", "exra": "execReqArgs", "exe": "execEnable", "mt": "memberType", "cnm": "currentNrOfMembers", "mnm": "maxNrOfMembers", "mid": "memberIDs", "macp": "membersAccessControlPolicyIDs", "mtv": "memberTypeValidated", "csy": "consistencyStrategy", "gn": "groupName", "los": "locationSource", "lou": "locationUpdatePeriod", "lot": "locationTargetId", "lor": "locationServer", "loi": "locationContainerID", "lon": "locationContainerName", "lost": "locationStatus", "svr": "serviceRoles", "dc": "description", "cmt": "cmdType", "mgd": "mgmtDefinition", "obis": "objectIDs", "obps": "objectPaths", "ni": "nodeID", "hcl": "hostedCSELink", "cb": "CSEBase", "mei": "M2M-Ext-ID", "tri": "Trigger-Recipient-ID", "rr": "requestReachability", "og": "originator", "mi": "metaInformation", "rs": "requestStatus", "ol": "operationResult", "opn": "operation", "rid": "requestID", "se": "scheduleElement", "di": "deviceIdentifier", "rlk": "ruleLinks", "sci": "statsCollectID", "cei": "collectingEntityID", "cdi": "collectedEntityID", "ss": "devStatus", "srs": "statsRuleStatus", "sm": "statModel", "cp": "collectPeriod", "enc": "eventNotificationCriteria", "exc": "expirationCounter", "nu": "notificationURI", "gpi": "groupID", "bn": "batchNotify", "rl": "rateLimit", "psn": "preSubscriptionNotify", "pn": "pendingNotification", "nsp": "notificationStoragePriority", "ln": "latestNotify", "nct": "notificationContentType", "nec": "notificationEventCat", "su": "subscriberURI", "vr": "version", "url": "URL", "ud": "update", "uds": "updateStatus", "in": "install", "un": "uninstall", "ins": "installStatus", "act": "activate", "dea": "deactivate", "acts": "activeStatus", "mma": "memAvailable", "mmt": "memTotal", "ant": "areaNwkType", "ldv": "listOfDevices", "dvd": "devId", "dvt": "devType", "awi": "areaNwkId", "sli": "sleepInterval", "sld": "sleepDuration", "lnh": "listOfNeighbors", "btl": "batteryLevel", "bts": "batteryStatus", "dlb": "deviceLabel", "man": "manufacturer", "mod": "model", "dty": "deviceType", "fwv": "fwVersion", "swv": "swVersion", "hwv": "hwVersion", "can": "capabilityName", "att": "attached", "cas": "capabilityActionStatus", "ena": "enable", "dis": "disable", "cus": "currentState", "rbo": "reboot", "far": "factoryReset", "lgt": "logTypeId", "lgd": "logData", "lgs": "logActionStatus", "lgst": "logStatus", "lga": "logStart", "lgo": "logStop", "fwnnam":"firmwareNames", "swn": "softwareName", "cpn": "cmdhPolicyName", "cmlk": "mgmtLink", "acmlk":"activeCmdhPolicyLink", "od": "order", "dev": "defEcValue", "ror": "requestOrigin", "rct": "requestContext", "rctn": "requestContextNotification", "rch": "requestCharacteristics", "aecs": "applicableEventCategories", "aec": "applicableEventCategory", "dqet": "defaultRequestExpTime", "dset": "defaultResultExpTime", "doet": "defaultOpExecTime", "drp": "defaultRespPersistence", "dda": "defaultDelAggregation", "lec": "limitsEventCategory", "lqet": "limitsRequestExpTime", "lset": "limitsResultExpTime", "loet": "limitsOpExecTime", "lrp": "limitsRespPersistence", "lda": "limitsDelAggregation", "ttn": "targetNetwork", "mrv": "minReqVolume", "bop": "backOffParameters", "ohc": "otherConditions", "mbfs": "maxBufferSize", "sgp": "storagePriority", "apci": "applicableCredIDs", "aai": "allowedApp-IDs", "aae": "allowedAEs", "rsp": "responsePrimitive", "dsp": "descriptor", "dcrp": "descriptorRepresenation", "soe": "semanticOpExec", "rels": "relatedSemantics", "pei":"periodicInterval", "mdd":"missingDataDetect", "mdn":"missingDataMaxNr", "mdlt":"missingDataList", "mdc":"missingDataCurrentNr", "mdt":"missingDataDetectTimer", "dgt":"dataGenerationTime", "sqn":"sequenceNr", "sid":"sessionID", "soid":"sessionOriginatorID", "stid":"SessionTargetID", "asd":"acceptedSessionDescription", "osd":"offeredSessionDescriptions", "sst":"sessionState", "crb" :"createdBefore", "cra" :"createdAfter", "ms" :"modifiedSince", "us" :"unmodifiedSince", "sts" :"stateTagSmaller", "stb" :"stateTagBigger", "exb" :"expireBefore", "exa" :"expireAfter", "sza" :"sizeAbove", "szb" :"sizeBelow", "cty" :"contentType", "lim" :"limit", "ofst":"offset", "lvl" :"level", "atr" :"attribute", "net" :"notificationEventType", "om" :"operationMonitor", "rep" :"representation", "fu" :"filterUsage", "ect" :"eventCatType", "ecn" :"eventCatNo", "num" :"number", "dur" :"duration", "sgn" :"notification", "nev" :"notificationEvent", "vrq" :"verificationRequest", "sud" :"subscriptionDeletion", "sur" :"subscriptionReference", "nfu" :"notificationForwardingURI", "op" :"operation", "aci" :"accessId", "msd" :"MSISDN", "acn" :"action", "sus" :"status", "ch" :"childResource", "acr" :"accessControlRule", "acor":"accessControlOriginators", "acop":"accessControlOperations", "acco":"accessControlContexts", "actw":"accessControlWindow", "acip":"accessControlIpAddresses", "ipv4":"ipv4Addresses", "ipv6":"ipv6Addresses", "aclr":"accessControlLocationRegion", "accc":"countryCode", "accr":"circRegion", "nm" :"name", "val" :"value", "typ" :"type", "mnn" :"maxNrOfNotify", "tww" :"timeWindow", "sce" :"scheduleEntry", "agn" :"aggregatedNotification", "atrl":"attributeList", "agr" :"aggregatedResponse", "uril":"URIList", "any":"anyArg", "ftyp":"fileType", "unm":"username", "pwd":"password", "fsi":"filesize", "tgf":"targetFile", "dss":"delaySeconds", "surl":"successURL", "stt":"startTime", "cpt":"completeTime", "uuid":"UUID", "eer":"executionEnvRef", "vr*":"version", "rst":"reset", "uld":"upload", "dld":"download", "swin":"softwareInstall", "swup":"softwareUpdate", "swun":"softwareUninstall", "tcop":"tracingOption", "tcin":"tracingInfo", "rtv":"responseTypeValue" }; var attrSname = { "accessControlPolicyIDs" :"acpi", "announcedAttribute" :"aa", "announceTo" :"at", "creationTime" :"ct", "expirationTime" :"et", "labels" :"lbl", "lastModifiedTime" :"lt", "parentID" :"pi", "resourceID" :"ri", "resourceType" :"ty*", "stateTag" :"st", "resourceName" :"rn", "privileges" :"pv", "selfPrivileges" :"pvs", "App-ID" :"api", "AE-ID" :"aei", "appName" :"apn", "pointOfAccess" :"poa", "ontologyRef" :"or", "nodeLink" :"nl", "creator" :"cr", "maxNrOfInstances" :"mni", "maxByteSize" :"mbs", "maxInstanceAge" :"mia", "currentNrOfInstances" :"cni", "currentByteSize" :"cbs", "locationID" :"li", "contentInfo" :"cnf", "contentSize" :"cs", "primitiveContent " :"pc*", "content" :"con", "cseType" :"cst", "CSE-ID" :"csi", "supportedResourceType" :"srt", "notificationCongestionPolicy" :"ncp", "source" :"sr", "target" :"tg", "lifespan" :"ls", "eventCat" :"ec*", "deliveryMetaData" :"dmd", "aggregatedRequest" :"arq", "aggregatedResponse" :"agr", "eventID" :"evi", "notificationEventType" :"net", "evenStart" :"evs", "eventEnd" :"eve", "operationType" :"opt", "dataSize" :"ds", "execStatus" :"exs", "execResult" :"exr", "execDisable" :"exd", "execTarget" :"ext", "execMode" :"exm", "execFrequency" :"exf", "execDelay" :"exy", "execNumber" :"exn", "execReqArgs" :"exra", "execEnable" :"exe", "memberType" :"mt", "currentNrOfMembers" :"cnm", "maxNrOfMembers" :"mnm", "memberIDs" :"mid", "membersAccessControlPolicyIDs":"macp", "memberTypeValidated" :"mtv", "consistencyStrategy" :"csy", "groupName" :"gn", "locationSource" :"los", "locationUpdatePeriod" :"lou", "locationTargetId" :"lot", "locationServer" :"lor", "locationContainerID" :"loi", "locationContainerName" :"lon", "locationStatus" :"lost", "serviceRoles" :"svr", "description" :"dc", "cmdType" :"cmt", "mgmtDefinition" :"mgd", "objectIDs" :"obis", "objectPaths" :"obps", "nodeID" :"ni", "hostedCSELink" :"hcl", "CSEBase" :"cb", "M2M-Ext-ID" :"mei", "Trigger-Recipient-ID" :"tri", "requestReachability" :"rr", "originator" :"og", "metaInformation" :"mi", "requestStatus" :"rs", "operationResult" :"ol", "operation" :"opn", "requestID" :"rid", "scheduleElement" :"se", "deviceIdentifier" :"di", "ruleLinks" :"rlk", "statsCollectID" :"sci", "collectingEntityID" :"cei", "collectedEntityID" :"cdi", "devStatus" :"ss", "statsRuleStatus" :"srs", "statModel" :"sm", "collectPeriod" :"cp", "eventNotificationCriteria" :"enc", "expirationCounter" :"exc", "notificationURI" :"nu", "groupID" :"gpi", "notificationForwardingURI" :"nfu", "batchNotify" :"bn", "rateLimit" :"rl", "preSubscriptionNotify" :"psn", "pendingNotification" :"pn", "notificationStoragePriority" :"nsp", "latestNotify" :"ln", "notificationContentType" :"nct", "notificationEventCat" :"nec", "subscriberURI" :"su", "version" :"vr", "URL" :"url", "update" :"ud", "updateStatus" :"uds", "install" :"in", "uninstall" :"un", "installStatus" :"ins", "activate" :"act", "deactivate" :"dea", "activeStatus" :"acts", "memAvailable" :"mma", "memTotal" :"mmt", "areaNwkType" :"ant", "listOfDevices" :"ldv", "devId" :"dvd", "devType" :"dvt", "areaNwkId" :"awi", "sleepInterval" :"sli", "sleepDuration" :"sld", "listOfNeighbors" :"lnh", "batteryLevel" :"btl", "batteryStatus" :"bts", "deviceLabel" :"dlb", "manufacturer" :"man", "model" :"mod", "deviceType" :"dty", "fwVersion" :"fwv", "swVersion" :"swv", "hwVersion" :"hwv", "capabilityName" :"can", "attached" :"att", "capabilityActionStatus" :"cas", "enable" :"ena", "disable" :"dis", "currentState" :"cus", "reboot" :"rbo", "factoryReset" :"far", "logTypeId" :"lgt", "logData" :"lgd", "logActionStatus" :"lgs", "logStatus" :"lgst", "logStart" :"lga", "logStop" :"lgo", "firmwareNames" :"fwnnam", "softwareName" :"swn", "cmdhPolicyName" :"cpn", "mgmtLink" :"cmlk", "activeCmdhPolicyLink" :"acmlk", "order" :"od", "defEcValue" :"dev", "requestOrigin" :"ror", "requestContext" :"rct", "requestContextNotification" :"rctn", "requestCharacteristics" :"rch", "applicableEventCategories" :"aecs", "applicableEventCategory" :"aec", "defaultRequestExpTime" :"dqet", "defaultResultExpTime" :"dset", "defaultOpExecTime" :"doet", "defaultRespPersistence" :"drp", "defaultDelAggregation" :"dda", "limitsEventCategory" :"lec", "limitsRequestExpTime" :"lqet", "limitsResultExpTime" :"lset", "limitsOpExecTime" :"loet", "limitsRespPersistence" :"lrp", "limitsDelAggregation" :"lda", "targetNetwork" :"ttn", "minReqVolume" :"mrv", "backOffParameters" :"bop", "otherConditions" :"ohc", "maxBufferSize" :"mbfs", "storagePriority" :"sgp", "applicableCredIDs" :"apci", "allowedApp-IDs" :"aai", "allowedAEs" :"aae", "singleNotification": "sgn", "responsePrimitive":"rsp", "descriptor":"dsp", "descriptorRepresenation": "dcrp", "semanticOpExec": "soe", "relatedSemantics": "rels", "periodicInterval":"pei", "missingDataDetect":"mdd", "missingDataMaxNr":"mdn", "missingDataList":"mdlt", "missingDataCurrentNr":"mdc", "missingDataDetectTimer":"mdt", "dataGenerationTime":"dgt", "sequenceNr":"sqn", "sessionID":"sid", "sessionOriginatorID":"soid", "SessionTargetID":"stid", "acceptedSessionDescription":"asd", "offeredSessionDescriptions":"osd", "sessionState":"sst", "accessControWindow":"actw", "createdBefore":"crb", "createdAfter":"cra", "modifiedSince":"ms", "unmodifiedSince":"us", "stateTagSmaller":"sts", "stateTagBigger":"stb", "expireBefore":"exb", "expireAfter":"exa", "sizeAbove":"sza", "sizeBelow":"szb", "contentType":"cty", "limit":"lim", "offset":"ofst", "level":"lvl", "attribute":"atr", "operationMonitor":"om", "representation":"rep", "filterUsage":"fu", "eventCatType":"ect", "eventCatNo":"ecn", "number":"num", "duration":"dur", "notification":"sgn", "notificationEvent":"nev", "verificationRequest":"vrq", "subscriptionDeletion":"sud", "subscriptionReference":"sur", "accessId":"aci", "MSISDN":"msd", "action":"acn", "status":"sus", "childResource":"ch", "accessControlRule":"acr", "accessControlOriginators":"acor", "accessControlOperations":"acop", "accessControlContexts":"acco", "accessControlWindow":"actw", "accessControlIpAddresses":"acip", "ipv4Addresses":"ipv4", "ipv6Addresses":"ipv6", "accessControlLocationRegion":"aclr", "countryCode":"accc", "circRegion":"accr", "name":"nm*", "value":"val", "type":"typ", "maxNrOfNotify":"mnn", "timeWindow":"tww", "scheduleEntry":"sce", "aggregatedNotification":"agn", "attributeList":"atrl", "URIList":"uril", "anyArg":"any", "fileType":"ftyp", "username":"unm", "password":"pwd", "filesize":"fsi", "targetFile":"tgf", "delaySeconds":"dss", "successURL":"surl", "startTime":"stt", "completeTime":"cpt", "UUID":"uuid", "executionEnvRef":"eer", "reset":"rst", "upload":"uld", "download":"dld", "softwareInstall":"swin", "softwareUpdate":"swup", "softwareUninstall":"swun", "tracingOption":"tcop", "tracingInfo":"tcin", "responseTypeValue":"rtv", "firmwarename":"fwnnam" }; var rceLname = { "cb" : "CSEBase", "ae" : "AE", "csr": "remoteCSE", "cnt": "container", "cin": "contentInstance", "sub": "subscription", "ts" : "timeSeries", "tsi": "timeSeriesInstance", "uril" :"URIList", "smd":"semanticDescriptor", "rsp": "responsePrimitive", "acp":"accessControlPolicy", "acpA":"accessControlPolicyAnnc", "aeA":"AEAnnc", "cntA":"containerAnnc", "la":"latest", "ol":"oldest", "cinA":"contentInstanceAnnc", "dlv":"delivery", "evcg":"eventConfig", "exin":"execInstance", "fopt":"fanOutPoint", "grp":"group", "grpA":"groupAnnc", "lcp":"locationPolicy", "lcpA":"locationPolicyAnnc", "mssp":"m2mServiceSubscriptionProfile", "mgc":"mgmtCmd", "mgo":"mgmtObj", "mgoA":"mgmtObjAnnc", "nod":"node", "nodA":"nodeAnnc", "pch":"pollingChannel", "pcu":"pollingChannelURI", "csrA":"remoteCSEAnnc", "req":"request", "sch":"schedule", "schA":"scheduleAnnc", "asar":"serviceSubscribedAppRule", "svsn":"serviceSubscribedNode", "stcl":"statsCollect", "stcg":"statsConfig", "fwr":"firmware", "fwrA":"firmwareAnnc", "swr":"software", "swrA":"softwareAnnc", "mem":"memory", "memA":"memoryAnnc", "ani":"areaNwkInfo", "aniA":"areaNwkInfoAnnc", "andi":"areaNwkDeviceInfo", "andiA":"areaNwkDeviceInfoAnnc", "bat":"battery", "batA":"batteryAnnc", "dvi":"deviceInfo", "dviA":"deviceInfoAnnc", "dvc":"deviceCapability", "dvcA":"deviceCapabilityAnnc", "rbo":"reboot", "rboA":"rebootAnnc", "evl":"eventLog", "evlA":"eventLogAnnc", "cmp":"cmdhPolicy", "acmp":"activeCmdhPolicy", "cmdf":"cmdhDefaults", "cmdv":"cmdhDefEcValue", "cmpv":"cmdhEcDefParamValues", "cml":"cmdhLimits", "cmnr":"cmdhNetworkAccessRules", "cmwr":"cmdhNwAccessRule", "cmbf":"cmdhBuffer", "mms": "multimediaSession", "rce":"resource", "uri":"URI", "fwnnam":"firmwareName" }; var rceSname = { "CSEBase" : "cb", "AE" : "ae", "remoteCSE" : "csr", "container" : "cnt", "contentInstance" : "cin", "subscription" : "sub", "timeSeries" : "ts", "timeSeriesInstance": "tsi", "URIList" :"uril", "semanticDescriptor":"smd", "responsePrimitive":"rsp", "accessControlPolicy":"acp", "accessControlPolicyAnnc":"acpA", "AEAnnc":"aeA", "containerAnnc":"cntA", "latest":"la", "oldest":"ol", "contentInstanceAnnc":"cinA", "delivery":"dlv", "eventConfig":"evcg", "execInstance":"exin", "fanOutPoint":"fopt", "group":"grp", "groupAnnc":"grpA", "locationPolicy":"lcp", "locationPolicyAnnc":"lcpA", "m2mServiceSubscriptionProfile":"mssp", "mgmtCmd":"mgc", "mgmtObj":"mgo", "mgmtObjAnnc":"mgoA", "node":"nod", "nodeAnnc":"nodA", "pollingChannel":"pch", "pollingChannelURI":"pcu", "remoteCSEAnnc":"csrA", "request":"req", "schedule":"sch", "scheduleAnnc":"schA", "serviceSubscribedAppRule":"asar", "serviceSubscribedNode":"svsn", "statsCollect":"stcl", "statsConfig":"stcg", "firmware":"fwr", "firmwareAnnc":"fwrA", "software":"swr", "softwareAnnc":"swrA", "memory":"mem", "memoryAnnc":"memA", "areaNwkInfo":"ani", "areaNwkInfoAnnc":"aniA", "areaNwkDeviceInfo":"andi", "areaNwkDeviceInfoAnnc":"andiA", "battery":"bat", "batteryAnnc":"batA", "deviceInfo":"dvi", "deviceInfoAnnc":"dviA", "deviceCapability":"dvc", "deviceCapabilityAnnc":"dvcA", "reboot":"rbo", "rebootAnnc":"rboA", "eventLog":"evl", "eventLogAnnc":"evlA", "cmdhPolicy":"cmp", "activeCmdhPolicy":"acmp", "cmdhDefaults":"cmdf", "cmdhDefEcValue":"cmdv", "cmdhEcDefParamValues":"cmpv", "cmdhLimits":"cml", "cmdhNetworkAccessRules":"cmnr", "cmdhNwAccessRule":"cmwr", "cmdhBuffer":"cmbf", "multimediaSession": "mms", "resource":"rce", "URI":"uri" }; var typeRsrc = { "1": "acp", "2": "ae", "3": "cnt", "4": "cin", "5": "cb", "9": "grp", "10": "lcp", "13": "mgo", "14": "nod", "16": "csr", "17": "req", "23": "sub", "24": "smd", "27": "mms", "29": "ts", "30": "tsi", "38": "tm", "39": "tr", "99": "rsp" }; var mgoType = { "1001": "fwr", "1006": "bat", "1007": "dvi", "1008": "dvc", "1009": "rbo" }; exports.typeRsrc = typeRsrc; exports.mgoType = mgoType; exports.rsrcSname = rceSname; exports.rsrcLname = rceLname; exports.attrLname = attrLname; exports.attrSname = attrSname; function typeCheckAction(index1, body_Obj) { for (var index2 in body_Obj) { if(body_Obj.hasOwnProperty(index2)) { if (body_Obj[index2] == null || body_Obj[index2] == '' || body_Obj[index2] == 'undefined' || body_Obj[index2] == '[]' || body_Obj[index2] == '\"\"') { //delete body_Obj[index2]; if(index2 != 'pi') { delete body_Obj[index2]; } } else if (index2 == 'et') { if (index1 == 'm2m:cb') { delete body_Obj[index2]; } } else if (index2 == 'cr') { if (index1 == 'm2m:ae' || index1 == 'm2m:csr') { delete body_Obj[index2]; } } else if (index2 == 'acp' || index2 == 'cst' || index2 == 'los' || index2 == 'mt' || index2 == 'csy' || index2 == 'nct' || index2 == 'cs' || index2 == 'st' || index2 == 'ty' || index2 == 'cbs' || index2 == 'cni' || index2 == 'mni' || index2 == 'cnm' || index2 == 'mia' || index2 == 'mbs' || index2 == 'mgd' || index2 == 'btl' || index2 == 'bts' || index2 == 'mdn' || index2 == 'mdc' || index2 == 'mdt' || index2 == 'pei' || index2 == 'mnm' || index2 == 'exc') { if ((index1 == 'm2m:cb' || index1 == 'm2m:cin' || index1 == 'm2m:nod' || index1 == 'm2m:ae' || index1 == 'm2m:sub' || index1 == 'm2m:acp' || index1 == 'm2m:csr' || index1 == 'm2m:grp' || index1 == 'm2m:fwr' || index1 == 'm2m:bat' || index1 == 'm2m:dvi' || index1 == 'm2m:dvc' || index1 == 'm2m:rbo' || index1 == 'm2m:smd' || index1 == 'm2m:tr' || index1 == 'm2m:tm') && index2 == 'mni') { delete body_Obj[index2]; } else if ((index1 == 'm2m:cb' || index1 == 'm2m:csr' || index1 == 'm2m:ae' || index1 == 'm2m:acp' || index1 == 'm2m:grp' || index1 == 'm2m:sub' || index1 == 'm2m:nod' || index1 == 'm2m:fwr' || index1 == 'm2m:bat' || index1 == 'm2m:dvi' || index1 == 'm2m:dvc' || index1 == 'm2m:rbo' || index1 == 'm2m:tr' || index1 == 'm2m:tm') && index2 == 'st') { delete body_Obj[index2]; } else if ((index1 == 'm2m:acp') && index2 == 'acpi') { delete body_Obj[index2]; } else { body_Obj[index2] = parseInt(body_Obj[index2]); } } else if (index2 == 'aa' || index2 == 'at' || index2 == 'poa' || index2 == 'lbl' || index2 == 'acpi' || index2 == 'srt' || index2 == 'nu' || index2 == 'mid' || index2 == 'macp') { if (!Array.isArray(body_Obj[index2])) { body_Obj[index2] = JSON.parse(body_Obj[index2]); } if (index2 == 'srt') { for (index3 in body_Obj[index2]) { if (body_Obj[index2].hasOwnProperty(index3)) { body_Obj[index2][index3] = parseInt(body_Obj[index2][index3]); } } } } else if (index2 == 'enc') { if (Object.keys(body_Obj[index2])[0] != 'net') { body_Obj[index2] = JSON.parse(body_Obj[index2]); } for (var index3 in body_Obj[index2]) { if (body_Obj[index2].hasOwnProperty(index3)) { if(index3 == 'net') { for (var index4 in body_Obj[index2][index3]) { if (body_Obj[index2][index3].hasOwnProperty(index4)) { body_Obj[index2][index3][index4] = parseInt(body_Obj[index2][index3][index4]); } } } } } } else if (index2 == 'bn') { if(Object.keys(body_Obj[index2]).length == 0) { delete body_Obj[index2]; } else { for (var index3 in body_Obj[index2]) { if (body_Obj[index2].hasOwnProperty(index3)) { if(index3 == 'num') { body_Obj[index2][index3] = parseInt(body_Obj[index2][index3]); } } } } } else if (index2 == 'cas' || index2 == 'uds') { for (var index3 in body_Obj[index2]) { if (body_Obj[index2].hasOwnProperty(index3)) { if(index3 == 'sus') { body_Obj[index2][index3] = parseInt(body_Obj[index2][index3]); } } } } else if (index2 == 'rr' || index2 == 'mtv' || index2 == 'ud' || index2 == 'att' || index2 == 'cus' || index2 == 'ena' || index2 == 'dis' || index2 == 'rbo' || index2 == 'far' || index2 == 'mdd' || index2 == 'disr') { body_Obj[index2] = ((body_Obj[index2] == 'true') || ((body_Obj[index2] == true))); } else if (index2 == 'sri') { body_Obj.ri = body_Obj[index2]; delete body_Obj[index2]; } else if (index2 == 'spi') { body_Obj.pi = body_Obj[index2]; delete body_Obj[index2]; } else if (index2 == 'pv' || index2 == 'pvs') { if(getType(body_Obj[index2]) === 'string') { body_Obj[index2] = JSON.parse(body_Obj[index2]); } } } } } function xmlInsert(xml, body_Obj, attr_name) { for (var attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr === attr_name) { var con_type = getType(body_Obj[attr]); if(con_type === 'object') { var xml2 = xml.ele(attr); for(var attr2 in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(attr2)) { xmlInsert(xml2, body_Obj[attr], attr2) } } } else if(con_type === 'array') { for(var idx in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(idx)) { var attr_type = getType(body_Obj[attr][idx]); if(attr_type === 'object') { xml2 = xml.ele(attr); for(attr2 in body_Obj[attr][idx]) { if (body_Obj[attr][idx].hasOwnProperty(attr2)) { xmlInsert(xml2, body_Obj[attr][idx], attr2) } } } else { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); delete body_Obj[attr]; break; } } } } else { xml.ele(attr, body_Obj[attr]); } delete body_Obj[attr]; break; } } } } function xmlInsertAfter(xml, body_Obj, attr_name, attr_name_after) { for (var attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == attr_name) { xml.ele(attr, body_Obj[attr]).insertAfter(attr_name_after); delete body_Obj[attr]; break; } } } } function xmlInsertList(xml, body_Obj, attr_name) { for (var attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == attr_name) { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); delete body_Obj[attr]; break; } } } } function xmlAction(xml, body_Obj) { xmlInsert(xml, body_Obj, 'ty'); xmlInsert(xml, body_Obj, 'ri'); xmlInsert(xml, body_Obj, 'pi'); xmlInsert(xml, body_Obj, 'ct'); xmlInsert(xml, body_Obj, 'lt'); xmlInsertList(xml, body_Obj, 'lbl'); xmlInsertList(xml, body_Obj, 'acpi'); if(xml.name === 'm2m:cb') { xmlInsert(xml, body_Obj, 'cst'); xmlInsert(xml, body_Obj, 'csi'); xmlInsertList(xml, body_Obj, 'srt'); xmlInsertList(xml, body_Obj, 'poa'); xmlInsert(xml, body_Obj, 'nl'); xmlInsert(xml, body_Obj, 'dac'); xmlInsert(xml, body_Obj, 'esi'); xmlInsert(xml, body_Obj, 'ch'); } else { xmlInsert(xml, body_Obj, 'et'); xmlInsert(xml, body_Obj, 'at'); xmlInsert(xml, body_Obj, 'aa'); if (xml.name === 'm2m:csr') { xmlInsertAfter(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'cst'); xmlInsertList(xml, body_Obj, 'poa'); xmlInsert(xml, body_Obj, 'cb'); xmlInsert(xml, body_Obj, 'csi'); xmlInsert(xml, body_Obj, 'mei'); xmlInsert(xml, body_Obj, 'tri'); xmlInsert(xml, body_Obj, 'rr'); xmlInsert(xml, body_Obj, 'nl'); xmlInsert(xml, body_Obj, 'trn'); xmlInsert(xml, body_Obj, 'esi'); } else if (xml.name === 'm2m:ae') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'apn'); xmlInsert(xml, body_Obj, 'api'); xmlInsert(xml, body_Obj, 'aei'); xmlInsertList(xml, body_Obj, 'poa'); xmlInsert(xml, body_Obj, 'or'); xmlInsert(xml, body_Obj, 'nl'); xmlInsert(xml, body_Obj, 'rr'); xmlInsert(xml, body_Obj, 'csz'); xmlInsert(xml, body_Obj, 'esi'); } else if (xml.name === 'm2m:cnt') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'st'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'mni'); xmlInsert(xml, body_Obj, 'mbs'); xmlInsert(xml, body_Obj, 'mia'); xmlInsert(xml, body_Obj, 'cni'); xmlInsert(xml, body_Obj, 'cbs'); xmlInsert(xml, body_Obj, 'li'); xmlInsert(xml, body_Obj, 'or'); xmlInsert(xml, body_Obj, 'disr'); } else if (xml.name === 'm2m:cin') { xmlInsert(xml, body_Obj, 'st'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'cnf'); xmlInsert(xml, body_Obj, 'cs'); xmlInsert(xml, body_Obj, 'conr'); xmlInsert(xml, body_Obj, 'or'); xmlInsert(xml, body_Obj, 'con'); } else if (xml.name === 'm2m:smd') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'dcrp'); xmlInsert(xml, body_Obj, 'soe'); xmlInsert(xml, body_Obj, 'dsp'); xmlInsert(xml, body_Obj, 'or'); xmlInsert(xml, body_Obj, 'rels'); } else if (xml.name === 'm2m:sub') { xmlInsert(xml, body_Obj, 'daci', 'et'); for (attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == 'enc') { var xml2 = xml.ele(attr, ''); for (var sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { xml2.ele(sub_attr, body_Obj[attr][sub_attr].toString().replace(/,/g, ' ')); } } delete body_Obj[attr]; break; } } } xmlInsert(xml, body_Obj, 'exc'); xmlInsertList(xml, body_Obj, 'nu'); xmlInsert(xml, body_Obj, 'gpi'); xmlInsert(xml, body_Obj, 'nfu'); for (attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == 'bn') { xml2 = xml.ele(attr, ''); for (sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { xml2.ele(sub_attr, body_Obj[attr][sub_attr].toString()); } } delete body_Obj[attr]; break; } } } xmlInsert(xml, body_Obj, 'rl'); xmlInsert(xml, body_Obj, 'psn'); xmlInsert(xml, body_Obj, 'pn'); xmlInsert(xml, body_Obj, 'nsp'); xmlInsert(xml, body_Obj, 'ln'); xmlInsert(xml, body_Obj, 'nct'); xmlInsert(xml, body_Obj, 'nec'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'su'); } else if (xml.name === 'm2m:grp') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'mt'); xmlInsert(xml, body_Obj, 'cnm'); xmlInsert(xml, body_Obj, 'mnm'); xmlInsertList(xml, body_Obj, 'mid'); xmlInsertList(xml, body_Obj, 'macp'); xmlInsert(xml, body_Obj, 'mtv'); xmlInsert(xml, body_Obj, 'csy'); xmlInsert(xml, body_Obj, 'gn'); xmlInsert(xml, body_Obj, 'csi'); } else if (xml.name === 'm2m:ts') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'st'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'mni'); xmlInsert(xml, body_Obj, 'mbs'); xmlInsert(xml, body_Obj, 'mia'); xmlInsert(xml, body_Obj, 'cni'); xmlInsert(xml, body_Obj, 'cbs'); xmlInsert(xml, body_Obj, 'pei'); xmlInsert(xml, body_Obj, 'mdd'); xmlInsert(xml, body_Obj, 'mdn'); xmlInsertList(xml, body_Obj, 'mdlt'); xmlInsert(xml, body_Obj, 'mdc'); xmlInsert(xml, body_Obj, 'mdt'); xmlInsert(xml, body_Obj, 'or'); } else if (xml.name === 'm2m:tsi') { xmlInsert(xml, body_Obj, 'dgt'); xmlInsert(xml, body_Obj, 'con'); xmlInsert(xml, body_Obj, 'snr'); xmlInsert(xml, body_Obj, 'cs'); } else if (xml.name === 'm2m:acp') { for (attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == 'pv' || attr == 'pvs') { xml2 = xml.ele(attr, ''); for (sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { for (sub_attr2 in body_Obj[attr][sub_attr]) { if (body_Obj[attr][sub_attr].hasOwnProperty(sub_attr2)) { var xml3 = xml2.ele(sub_attr, ''); for (var sub_attr3 in body_Obj[attr][sub_attr][sub_attr2]) { if (body_Obj[attr][sub_attr][sub_attr2].hasOwnProperty(sub_attr3)) { if(sub_attr3 == 'acco') { for (var sub_attr4 in body_Obj[attr][sub_attr][sub_attr2][sub_attr3]) { if (body_Obj[attr][sub_attr][sub_attr2][sub_attr3].hasOwnProperty(sub_attr4)) { var xml4 = xml3.ele(sub_attr3, ''); for (var sub_attr5 in body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4]) { if (body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4].hasOwnProperty(sub_attr5)) { if(sub_attr5 == 'acip') { var xml5 = xml4.ele(sub_attr5, ''); for (var sub_attr6 in body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4][sub_attr5]) { if (body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4][sub_attr5].hasOwnProperty(sub_attr6)) { var xml6 = xml5.ele(sub_attr6, ''); xml6.txt(body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4][sub_attr5][sub_attr6]); } } } if(sub_attr5 == 'actw') { xml5 = xml4.ele(sub_attr5, ''); xml5.txt(body_Obj[attr][sub_attr][sub_attr2][sub_attr3][sub_attr4][sub_attr5]); } } } } } } else { xml3.ele(sub_attr3, body_Obj[attr][sub_attr][sub_attr2][sub_attr3].toString().replace(/,/g, ' ')); } } } } } } } delete body_Obj[attr]; } } } xmlInsert(xml, body_Obj, 'cr'); } else if (xml.name === 'm2m:tm') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'tltm'); xmlInsert(xml, body_Obj, 'text'); xmlInsert(xml, body_Obj, 'tct'); xmlInsert(xml, body_Obj, 'tept'); xmlInsert(xml, body_Obj, 'tmd'); xmlInsert(xml, body_Obj, 'tltp'); xmlInsert(xml, body_Obj, 'tctl'); xmlInsert(xml, body_Obj, 'tst'); xmlInsert(xml, body_Obj, 'tmr'); xmlInsert(xml, body_Obj, 'tmh'); xmlInsert(xml, body_Obj, 'rqps'); xmlInsert(xml, body_Obj, 'rsps'); } else if (xml.name === 'm2m:tr') { xmlInsert(xml, body_Obj, 'daci', 'et'); xmlInsert(xml, body_Obj, 'cr'); xmlInsert(xml, body_Obj, 'tid'); xmlInsert(xml, body_Obj, 'tctl'); xmlInsert(xml, body_Obj, 'tst'); xmlInsert(xml, body_Obj, 'tltm'); xmlInsert(xml, body_Obj, 'text'); xmlInsert(xml, body_Obj, 'tct'); xmlInsert(xml, body_Obj, 'tltp'); xmlInsert(xml, body_Obj, 'trqp'); xmlInsert(xml, body_Obj, 'trsp'); } } for (var attr in body_Obj) { if (body_Obj.hasOwnProperty(attr)) { if (attr == 'resourceName' || attr == 'rn') { xml.att(attr, body_Obj[attr]); } else if (attr == 'eventNotificationCriteria' || attr == 'enc') { xml2 = xml.ele(attr, ''); for (sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { xml2.ele(sub_attr, body_Obj[attr][sub_attr].toString().replace(/,/g, ' ')); } } } else if (attr == 'bn' || attr == 'uds' || attr == 'cas') { xml2 = xml.ele(attr, ''); for (sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { xml2.ele(sub_attr, body_Obj[attr][sub_attr].toString()); } } } else if (attr == 'privileges' || attr == 'pv' || attr == 'selfPrivileges' || attr == 'pvs') { xml2 = xml.ele(attr, ''); for (sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { for (var sub_attr2 in body_Obj[attr][sub_attr]) { if (body_Obj[attr][sub_attr].hasOwnProperty(sub_attr2)) { xml3 = xml2.ele(sub_attr, ''); for (sub_attr3 in body_Obj[attr][sub_attr][sub_attr2]) { if (body_Obj[attr][sub_attr][sub_attr2].hasOwnProperty(sub_attr3)) { xml3.ele(sub_attr3, body_Obj[attr][sub_attr][sub_attr2][sub_attr3].toString().replace(/,/g, ' ')); } } } } } } } else if (attr == 'accessControlPolicyIDs' || attr == 'acpi') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'labels' || attr == 'lbl') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'supportedResourceType' || attr == 'srt') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'pointOfAccess' || attr == 'poa') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'notificationURI' || attr == 'nu') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'memberIDs' || attr == 'mid') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'membersAccessControlPolicyIDs' || attr == 'macp') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'mdlt') { xml.ele(attr, body_Obj[attr].toString().replace(/,/g, ' ')); } else if (attr == 'pc') { xml2 = xml.ele(attr, ''); for (var sub_attr in body_Obj[attr]) { if (body_Obj[attr].hasOwnProperty(sub_attr)) { xml2.ele(sub_attr, body_Obj[attr][sub_attr]); } } } else { xml.ele(attr, body_Obj[attr]); } } } } exports.convertXml = function(rootnm, body_Obj) { var xml = xmlbuilder.create('m2m:' + rootnm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); for (var index in body_Obj) { if (body_Obj.hasOwnProperty(index)) { if (index == 'uri' || index == 'm2m:uri') { xml.txt(body_Obj[index]); } else if (index == 'm2m:dbg') { xml.txt(body_Obj[index]); } else { xmlAction(xml, body_Obj[index]); } } } return xml.end({pretty: false, indent: ' ', newline: '\n'}).toString(); }; exports.convertXml2 = function(rootnm, body_Obj) { var xml = xmlbuilder.create('m2m:' + rootnm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); for (var index in body_Obj) { if (body_Obj.hasOwnProperty(index)) { for (var prop in body_Obj[index]) { if (body_Obj[index].hasOwnProperty(prop)) { if (body_Obj[index][prop].pc) { // aggregated response for fanout var xml_0 = xml.ele(index); for (var agr_attr in body_Obj[index][prop]) { if (body_Obj[index][prop].hasOwnProperty(agr_attr)) { if (agr_attr == 'pc') { var xml_01 = xml_0.ele(agr_attr); for (var pc_attr in body_Obj[index][prop][agr_attr]) { if (body_Obj[index][prop][agr_attr].hasOwnProperty(pc_attr)) { var xml_1 = xml_01.ele(pc_attr); xmlAction(xml_1, body_Obj[index][prop][agr_attr][pc_attr]); } } } else { xml_1 = xml_0.ele(agr_attr, body_Obj[index][prop][agr_attr]); } } } } else { for (var attr in body_Obj[index][prop]) { if (body_Obj[index][prop].hasOwnProperty(attr)) { xml_1 = xml.ele(prop); xmlAction(xml_1, body_Obj[index][prop][attr]); } } } } } } } return xml.end({pretty: false, indent: ' ', newline: '\n'}).toString(); }; exports.convertXmlMqtt = function(rootnm, body_Obj) { var xml = xmlbuilder.create('m2m:' + rootnm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); xmlInsert(xml, body_Obj, 'rsc'); xmlInsert(xml, body_Obj, 'rqi'); var xml2 = xml.ele('pc'); for (var index in body_Obj) { if (body_Obj.hasOwnProperty(index)) { if(index == 'pc') { for (var attr in body_Obj[index]) { if (body_Obj[index].hasOwnProperty(attr)) { if(attr == 'm2m:dbg') { xmlAction(xml2, body_Obj[index]); break; } else { var xml3 = xml2.ele(attr); xmlAction(xml3, body_Obj[index][attr]); break; } } } } } } return xml.end({pretty: false, indent: ' ', newline: '\n'}).toString(); }; exports.convertXmlSgn = function(rootnm, body_Obj) { var sgn = xmlbuilder.create(rootnm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); var sequence1 = ['nev', 'vrq', 'sud', 'sur', 'cr']; var sequence2 = ['rep', 'net']; for(var seq1 in sequence1) { if(sequence1.hasOwnProperty(seq1)) { for (var prop in body_Obj) { if (body_Obj.hasOwnProperty(prop)) { if (prop === sequence1[seq1]) { if (prop === 'nev') { var xml_0 = sgn.ele(prop); for(var seq2 in sequence2) { if (sequence2.hasOwnProperty(seq2)) { for (var agr_attr in body_Obj[prop]) { if (body_Obj[prop].hasOwnProperty(agr_attr)) { if (agr_attr === sequence2[seq2]) { if (agr_attr === 'rep') { var xml_01 = xml_0.ele(agr_attr); for (var pc_attr in body_Obj[prop][agr_attr]) { if (body_Obj[prop][agr_attr].hasOwnProperty(pc_attr)) { var xml_1 = xml_01.ele(pc_attr); xmlAction(xml_1, body_Obj[prop][agr_attr][pc_attr]); } } break; } else if (agr_attr === 'net') { xml_0.ele(agr_attr, body_Obj[prop][agr_attr]); break; } } } } } } break; } else { sgn.ele(prop, body_Obj[prop]); break; } } } } } } return sgn.end({pretty: false, indent: ' ', newline: '\n'}).toString(); }; exports.typeCheckforJson = function(body_Obj) { for (var index1 in body_Obj) { if(body_Obj.hasOwnProperty(index1)) { typeCheckAction(index1, body_Obj[index1]); } } }; function typeCheckforJson2(body_Obj) { for (var index1 in body_Obj) { if(body_Obj.hasOwnProperty(index1)) { for (var index2 in body_Obj[index1]) { if (body_Obj[index1].hasOwnProperty(index2)) { typeCheckAction(index1, body_Obj[index1][index2]); } } } } } function store_to_req_resource(request, bodyString, rsc, cap) { db_sql.update_req('/' + request.headers.tg, bodyString, rsc, function () { var rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + ri + "-" + JSON.stringify(request.query); rspObj = cap; console.log(JSON.stringify(rspObj)); if (request.headers['x-m2m-rtu'] != null && request.headers['x-m2m-rtu'] != '') { var nu = request.headers['x-m2m-rtu']; var sub_nu = url.parse(nu); var xm2mri = require('shortid').generate(); if (sub_nu.protocol == 'http:') { request_noti_http(nu, bodyString, request.headers.usebodytype, xm2mri); } else if (sub_nu.protocol == 'coap:') { request_noti_coap(nu, bodyString, request.headers.usebodytype, xm2mri); } else if (sub_nu.protocol == 'ws:') { request_noti_ws(nu, bodyString, request.headers.usebodytype, xm2mri); } else { // mqtt: request_noti_mqtt(nu, bodyString, request.headers.usebodytype, xm2mri); } } }); } exports.response_result = function(request, response, status, body_Obj, rsc, ri, cap) { if (request.query.rt == 3) { if (request.headers['x-m2m-ri'] != null) { response.setHeader('X-M2M-RI', request.headers['x-m2m-ri']); } if (request.headers.locale != null) { response.setHeader('locale', request.headers.locale); } response.setHeader('X-M2M-RSC', rsc); if (request.headers.accept) { try { if ((request.headers.accept.split('/')[1] == 'xml') || (request.headers.accept.split('+')[1] == 'xml')) { request.headers.usebodytype = 'xml'; } } catch (e) { } } if (request.headers.usebodytype == 'json') { response.setHeader('Content-Type', 'application/json'); } else if (request.headers.usebodytype == 'cbor') { response.setHeader('Content-Type', 'application/cbor'); } else { response.setHeader('Content-Type', 'application/xml'); } } if (request.query.rcn == 0 && Object.keys(body_Obj)[0] != 'dbg') { if (request.query.rt == 3) { response.status(status).end(''); var rspObj = { rsc: rsc, ri: ri, dbg: cap }; console.log(JSON.stringify(rspObj)); } else if (request.query.rt == 1) { db_sql.update_req('/'+request.headers.tg, '', rsc, function () { var rspObj = { rsc: rsc, ri: ri, dbg: cap }; console.log(JSON.stringify(rspObj)); }); } } else { var rootnm = Object.keys(body_Obj)[0]; if(rootnm == 'mgo') { body_Obj['m2m:' + mgoType[body_Obj[rootnm].mgd]] = body_Obj[rootnm]; delete body_Obj[rootnm]; } else { body_Obj['m2m:' + rootnm] = body_Obj[rootnm]; delete body_Obj[rootnm]; } _this.typeCheckforJson(body_Obj); if(rootnm === 'req') { body_Obj['m2m:' + rootnm].pc = JSON.parse(body_Obj['m2m:' + rootnm].pc); if(Object.keys(body_Obj['m2m:' + rootnm].pc)[0] === 'm2m:uril') { body_Obj['m2m:' + rootnm].pc['m2m:uril'] = body_Obj['m2m:' + rootnm].pc['m2m:uril'].split(' '); } } var bodyString = JSON.stringify(body_Obj); console.log(bodyString); if (request.query.rt == 3 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] == null && request.headers['x-m2m-rtu'] == '')) { if (request.headers.usebodytype == 'json') { } else if (request.headers.usebodytype == 'cbor') { bodyString = cbor.encode(body_Obj).toString('hex'); } else { bodyString = _this.convertXml(rootnm, body_Obj); } response.status(status).end(bodyString); rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + ri + "-" + JSON.stringify(request.query); rspObj = cap; console.log(JSON.stringify(rspObj)); // for test of measuring elapsed time of processing in mobius // var hrend = process.hrtime(elapsed_hrstart[elapsed_tid]); // var elapsed_hr_str = util.format(require('moment')().utc().format('YYYYMMDDTHHmmss') + "(hr): %ds %dms\r\n", hrend[0], hrend[1]/1000000); // console.info(elapsed_hr_str); // console.timeEnd(elapsed_tid); // var fs = require('fs'); // fs.appendFileSync('get_elapsed_time.log', elapsed_hr_str, 'utf-8'); // delete elapsed_hrstart[elapsed_tid]; } else if (request.query.rt == 1 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] != null && request.headers['x-m2m-rtu'] != '')) { store_to_req_resource(request, bodyString, rsc, cap); } } }; exports.response_rcn3_result = function(request, response, status, body_Obj, rsc, ri, cap) { if (request.query.rt == 3) { if (request.headers['x-m2m-ri'] != null) { response.setHeader('X-M2M-RI', request.headers['x-m2m-ri']); } if (request.headers.locale != null) { response.setHeader('locale', request.headers.locale); } response.setHeader('X-M2M-RSC', rsc); if (request.headers.accept) { try { if ((request.headers.accept.split('/')[1] == 'xml') || (request.headers.accept.split('+')[1] == 'xml')) { request.headers.usebodytype = 'xml'; } } catch (e) { } } if (request.headers.usebodytype == 'json') { response.setHeader('Content-Type', 'application/json'); } else if (request.headers.usebodytype == 'cbor') { response.setHeader('Content-Type', 'application/cbor'); } else { response.setHeader('Content-Type', 'application/xml'); } } var rootnm = request.headers.rootnm; body_Obj[rootnm] = {}; body_Obj[rootnm] = body_Obj['rce'][rootnm]; body_Obj['rce']['m2m:' + rootnm] = body_Obj[rootnm]; //body_Obj['rce']['uri'] = body_Obj.rce.uri; body_Obj['m2m:rce'] = body_Obj.rce; delete body_Obj[rootnm]; delete body_Obj['rce'][rootnm]; //delete body_Obj.rce.uri; delete body_Obj.rce; var rce_nm = 'rce'; _this.typeCheckforJson(body_Obj['m2m:rce']); var bodyString = JSON.stringify(body_Obj); if (request.query.rt == 3 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] == null && request.headers['x-m2m-rtu'] == '')) { if (request.headers.usebodytype == 'json') { } else if (request.headers.usebodytype == 'cbor') { bodyString = cbor.encode(body_Obj).toString('hex'); } else { var xml_root = xmlbuilder.create('m2m:' + rce_nm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); for (var rce in body_Obj) { if (body_Obj.hasOwnProperty(rce)) { for (var index in body_Obj[rce]) { if (body_Obj[rce].hasOwnProperty(index)) { if (index == 'uri') { var xml = xml_root.ele(index, body_Obj[rce][index]); } else { xml = xml_root.ele(index, ''); xmlAction(xml, body_Obj[rce][index]); } } } } } bodyString = xml.end({pretty: false, indent: ' ', newline: '\n'}).toString(); } response.status(status).end(bodyString); var rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + ri + "-" + JSON.stringify(request.query); rspObj = cap; console.log(JSON.stringify(rspObj)); } else if (request.query.rt == 1 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] != null && request.headers['x-m2m-rtu'] != '')) { store_to_req_resource(request, bodyString, rsc, cap); } }; exports.search_result = function(request, response, status, body_Obj, rsc, ri, cap) { if (request.query.rt == 3) { if (request.headers['x-m2m-ri'] != null) { response.setHeader('X-M2M-RI', request.headers['x-m2m-ri']); } if (request.headers.locale != null) { response.setHeader('locale', request.headers.locale); } response.setHeader('X-M2M-RSC', rsc); if (request.headers.accept) { try { if ((request.headers.accept.split('/')[1] == 'xml') || (request.headers.accept.split('+')[1] == 'xml')) { request.headers.usebodytype = 'xml'; } } catch (e) { } } if (request.headers.usebodytype == 'json') { response.setHeader('Content-Type', 'application/json'); } else if (request.headers.usebodytype == 'cbor') { response.setHeader('Content-Type', 'application/cbor'); } else { response.setHeader('Content-Type', 'application/xml'); } } if (Object.keys(body_Obj)[0] == 'rsp') { rootnm = 'rsp'; } if (request.headers.rootnm == 'uril') { var rootnm = request.headers.rootnm; if (request.query.rt == 3) { body_Obj['m2m:' + rootnm] = body_Obj[rootnm]; delete body_Obj[rootnm]; var bodyString = JSON.stringify(body_Obj); if (request.headers.usebodytype == 'json') { } else if (request.headers.usebodytype == 'cbor') { bodyString = cbor.encode(body_Obj).toString('hex'); } else { body_Obj['m2m:' + rootnm] = body_Obj['m2m:' + rootnm].toString().replace(/,/g, ' '); var xml = xmlbuilder.create('m2m:' + rootnm, {version: '1.0', encoding: 'UTF-8', standalone: true}, {pubID: null, sysID: null}, { allowSurrogateChars: false, skipNullAttributes: false, headless: false, ignoreDecorators: false, stringify: {} } ).att('xmlns:m2m', 'http://www.onem2m.org/xml/protocols').att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); xml.txt(body_Obj['m2m:' + rootnm]); bodyString = xml.end({pretty: false, indent: ' ', newline: '\n'}).toString(); } response.status(status).end(bodyString); var rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + request.url; rspObj = cap; console.log(JSON.stringify(rspObj)); } else if (request.query.rt == 1) { body_Obj[rootnm] = body_Obj[rootnm].toString().replace(/,/g, ' '); body_Obj['m2m:' + rootnm] = body_Obj[rootnm]; delete body_Obj[rootnm]; bodyString = JSON.stringify(body_Obj); db_sql.update_req('/'+request.headers.tg, bodyString, rsc, function () { rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + ri + "-" + JSON.stringify(request.query); rspObj = cap; console.log(JSON.stringify(rspObj)); }); } } else { rootnm = request.headers.rootnm; var res_Obj = {}; for (var prop in body_Obj) { if (body_Obj.hasOwnProperty(prop)) { if (body_Obj[prop].ty == null) { var ty = '99'; } else { ty = body_Obj[prop].ty; } if(typeRsrc[ty] == 'mgo') { if (res_Obj['m2m:' + mgoType[body_Obj[prop].mgd]] == null) { res_Obj['m2m:' + mgoType[body_Obj[prop].mgd]] = []; } var tmp_Obj = {}; tmp_Obj['m2m:' + mgoType[body_Obj[prop].mgd]] = body_Obj[prop]; res_Obj['m2m:' + mgoType[body_Obj[prop].mgd]].push(tmp_Obj['m2m:' + mgoType[body_Obj[prop].mgd]]); delete body_Obj[prop]; } else { if (res_Obj['m2m:' + typeRsrc[ty]] == null) { res_Obj['m2m:' + typeRsrc[ty]] = []; } var tmp_Obj = {}; tmp_Obj['m2m:' + typeRsrc[ty]] = body_Obj[prop]; res_Obj['m2m:' + typeRsrc[ty]].push(tmp_Obj['m2m:' + typeRsrc[ty]]); delete body_Obj[prop]; } } } body_Obj['m2m:' + rootnm] = res_Obj; typeCheckforJson2(body_Obj['m2m:' + rootnm]); bodyString = JSON.stringify(body_Obj); if (request.query.rt == 3 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] == null && request.headers['x-m2m-rtu'] == '')) { if (request.headers.usebodytype == 'json') { } else if (request.headers.usebodytype == 'cbor') { bodyString = cbor.encode(body_Obj['m2m:' + rootnm]).toString('hex'); } else { if(rootnm == 'agr') { bodyString = _this.convertXml2(rootnm, body_Obj['m2m:' + rootnm]); } else { bodyString = _this.convertXml2(rootnm, body_Obj); } } response.status(status).end(bodyString); var rspObj = {}; rspObj.rsc = rsc; rspObj.ri = request.method + "-" + request.url; rspObj = cap; console.log(JSON.stringify(rspObj)); } else if (request.query.rt == 1 || (request.query.rt == 2 && request.headers['x-m2m-rtu'] != null && request.headers['x-m2m-rtu'] != '')) { store_to_req_resource(request, bodyString, rsc, cap); } } }; exports.error_result = function(request, response, status, rsc, dbg_string) { request.query.rt = 3; var body_Obj = {}; body_Obj['dbg'] = dbg_string; _this.response_result(request, response, status, body_Obj, rsc, request.url, body_Obj['dbg']); }; function request_noti_http(nu, bodyString, bodytype, xm2mri) { var options = { hostname: url.parse(nu).hostname, port: url.parse(nu).port, path: url.parse(nu).path, method: 'POST', headers: { 'X-M2M-RI': xm2mri, 'Accept': 'application/'+bodytype, 'X-M2M-Origin': usecseid, 'Content-Type': 'application/'+bodytype } }; var bodyStr = ''; var req = http.request(options, function (res) { //res.setEncoding('utf8'); res.on('data', function (chunk) { bodyStr += chunk; }); res.on('end', function () { console.log('----> [nonblocking-async-http] response for notification through http ' + res.headers['x-m2m-rsc']); }); }); req.on('error', function (e) { if(e.message != 'read ECONNRESET') { console.log('[nonblocking-async-http] problem with request: ' + e.message); } }); req.on('close', function() { console.log('[nonblocking-async-http] close: no response for notification'); }); console.log('<---- [nonblocking-async-http] notification for non-blocking request with ' + bodytype + ' to ' + nu); req.write(bodyString); req.end(); } function request_noti_coap(nu, bodyString, bodytype, xm2mri) { var options = { host: url.parse(nu).hostname, port: url.parse(nu).port, pathname: url.parse(nu).path, method: 'post', confirmable: 'false', options: { 'Accept': 'application/'+bodytype, 'Content-Type': 'application/'+bodytype, 'Content-Length' : bodyString.length } }; var responseBody = ''; var req = coap.request(options); req.setOption("256", new Buffer(usecseid)); // X-M2M-Origin req.setOption("257", new Buffer(xm2mri)); // X-M2M-RI req.on('response', function (res) { res.on('data', function () { responseBody += res.payload.toString(); }); res.on('end', function () { console.log('----> [nonblocking-async-coap] response for notification through coap ' + res.code); }); }); console.log('<---- [nonblocking-async-coap] request for notification through coap with ' + bodytype); req.write(bodyString); req.end(); } function request_noti_ws(nu, bodyString, bodytype, xm2mri) { var bodyStr = ''; var WebSocketClient = require('websocket').client; var ws_client = new WebSocketClient(); if(bodytype == 'xml') { ws_client.connect(nu, 'onem2m.r2.0.xml'); } else if(bodytype == 'cbor') { ws_client.connect(nu, 'onem2m.r2.0.cbor'); } else { ws_client.connect(nu, 'onem2m.r2.0.json'); } ws_client.on('connectFailed', function (error) { console.log('[nonblocking-async-ws] Connect Error: ' + error.toString()); ws_client.removeAllListeners(); }); ws_client.on('connect', function (connection) { console.log('<---- [nonblocking-async-ws] ' + nu); console.log(bodyString); connection.sendUTF(bodyString); connection.on('error', function (error) { console.log("[nonblocking-async-ws] Connection Error: " + error.toString()); }); connection.on('close', function () { console.log('[nonblocking-async-ws] Connection Closed'); }); connection.on('message', function (message) { console.log('----> [nonblocking-async-ws] ' + message.utf8Data.toString()); var protocol_arr = this.protocol.split('.'); if(bodytype === 'xml') { var xml2js = require('xml2js'); var parser = new xml2js.Parser({explicitArray: false}); parser.parseString(message.utf8Data.toString(), function (err, jsonObj) { if (err) { console.log('[nonblocking-async-ws] xml2js parser error'); } else { console.log('----> [nonblocking-async-ws] response for notification through mqtt ' + res.headers['x-m2m-rsc']); connection.close(); } }); } else if(bodytype === 'cbor') { var encoded = message.utf8Data.toString(); cbor.decodeFirst(encoded, function(err, jsonObj) { if (err) { console.log('[nonblocking-async-ws] cbor parser error'); } else { if (jsonObj.rsc == 2001 || jsonObj.rsc == 2000) { console.log('----> [nonblocking-async-ws] response for notification through ws ' + jsonObj.rsc); connection.close(); } } }); } else { // 'json' var jsonObj = JSON.parse(message.utf8Data.toString()); try { if (jsonObj.rsc == 2001 || jsonObj.rsc == 2000) { console.log('----> [nonblocking-async-ws] response for notification through ws ' + jsonObj.rsc + ' - ' + ri); connection.close(); } } catch (e) { console.log('----> [nonblocking-async-ws] response for notification through ws - ' + ri); } } }); }); } function request_noti_mqtt(nu, bodyString, bodytype, xm2mri) { var aeid = url.parse(nu).pathname.replace('/', '').split('?')[0]; console.log('[nonblocking-async-mqtt] - ' + aeid); if (aeid == '') { console.log('[nonblocking-async-mqtt] aeid of notification url is none'); return; } var mqtt = require('mqtt'); var _mqtt_client = mqtt.connect('mqtt://' + url.parse(nu).hostname + ':' + ((url.parse(nu).port != null) ? url.parse(nu).port : '1883')); _mqtt_client.on('connect', function () { var resp_topic = util.format('/oneM2M/resp/%s/#', usecseid.replace('/', '')); _mqtt_client.subscribe(resp_topic); console.log('[nonblocking-async-mqtt] subscribe resp_topic as ' + resp_topic); var noti_topic = util.format('/oneM2M/req/%s/%s/%s', usecseid.replace('/', ''), aeid, bodytype); _mqtt_client.publish(noti_topic, bodyString); console.log('<---- [nonblocking-async-mqtt] ' + noti_topic); _mqtt_client.end(function () { _mqtt_client = null; }); }); _mqtt_client.on('message', function (topic, message) { console.log('----> [nonblocking-async-mqtt] ' + topic + ' - ' + message); _mqtt_client.end(function () { _mqtt_client = null; }); }); _mqtt_client.on('error', function (error) { _mqtt_client.end(true, function () { _mqtt_client = null; }); }); }
module.exports={A:{A:{"2":"K D G E A B gB"},B:{"2":"2 C d J M H I"},C:{"2":"0 1 2 3 4 6 7 9 dB BB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z GB FB AB CB DB XB WB"},D:{"1":"0 1 3 4 7 9 GB FB AB CB DB QB iB KB IB LB MB NB OB","2":"2 6 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z"},E:{"2":"F N K D G E A B C PB HB RB SB TB UB VB p","16":"5 YB"},F:{"2":"0 1 5 6 8 E B C J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z ZB aB bB cB p eB"},G:{"2":"G HB fB EB hB JB jB kB lB mB nB oB pB qB rB sB"},H:{"2":"tB"},I:{"2":"4 BB F uB vB wB xB EB yB zB"},J:{"2":"D A"},K:{"2":"5 8 A B C L p"},L:{"2":"IB"},M:{"2":"3"},N:{"2":"A B"},O:{"2":"0B"},P:{"2":"F 1B 2B 3B 4B"},Q:{"2":"5B"},R:{"2":"6B"}},B:6,C:"Media Session API"};
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { FormItem, FormLabel, FormInput, MessageStrip, } from 'fundamental-react'; import { Checkbox, useGetList, useCreateServiceBindingUsage, } from 'react-shared'; import { SERVICE_BINDINGS_PANEL } from '../constants'; const checkBoxInputProps = { style: { marginRight: '6px', }, }; const ResourceKindOptgroup = ({ kindResource, kindResourceName, namespace, }) => { const { data } = useGetList()( `/apis/${kindResource.group}/${kindResource.version}/namespaces/${namespace}/${kindResource.kind}s`, {}, ); return data && data.length ? ( <optgroup label={kindResourceName}> {data.map(res => ( <option value={JSON.stringify({ kind: kindResourceName, name: res.metadata.name, })} key={res.metadata.uid} > {res.metadata.name} </option> ))} </optgroup> ) : null; }; export default function CreateServiceBindingForm({ serviceInstance, usageKinds = [], serviceBindings = [], setPopupModalMessage = () => void 0, onChange, formElementRef, setCustomValid = () => void 0, }) { const createServiceBindingUsageSet = useCreateServiceBindingUsage(); const [selectedApplication, setSelectedApplication] = useState(null); const [envPrefix, setEnvPrefix] = useState(''); const [createBinding, setCreateBinding] = useState(true); const [existingBindings, setExistingBindings] = useState(''); useEffect(() => { setCustomValid(false); }, [setCustomValid]); useEffect(() => { if (!selectedApplication) { setEnvPrefix(''); setCreateBinding(true); return; } // eslint-disable-next-line react-hooks/exhaustive-deps }, [selectedApplication]); useEffect(() => { if (!selectedApplication) { setPopupModalMessage( SERVICE_BINDINGS_PANEL.CREATE_MODAL.CONFIRM_BUTTON.POPUP_MESSAGES .NO_APP_SELECTED, ); setCustomValid(false); return; } if (!createBinding && !existingBindings) { setPopupModalMessage( SERVICE_BINDINGS_PANEL.CREATE_MODAL.CONFIRM_BUTTON.POPUP_MESSAGES .NO_BINDING_SELECTED, ); setCustomValid(false); return; } setCustomValid(true); }, [ selectedApplication, createBinding, existingBindings, setCustomValid, setPopupModalMessage, ]); useEffect(() => setExistingBindings(''), [ selectedApplication, createBinding, ]); function handleApplicationChange(e) { let value = null; try { value = JSON.parse(e.target.value); } catch (e) {} setSelectedApplication(value); } async function handleFormSubmit(e) { e.preventDefault(); const parameters = { namespace: serviceInstance.metadata.namespace, serviceInstanceName: serviceInstance.metadata.name, serviceBindingUsageParameters: envPrefix ? { envPrefix: { name: envPrefix, }, } : undefined, usedBy: { name: selectedApplication.name, kind: selectedApplication.kind, }, existingCredentials: existingBindings || undefined, }; await createServiceBindingUsageSet(parameters); } const applicationsDropdown = ( <select id="applicationName" value={JSON.stringify(selectedApplication)} onChange={handleApplicationChange} required > <option value="" /> {usageKinds.map(u => ( <ResourceKindOptgroup key={u.metadata.uid} kindResource={u.spec.resource} kindResourceName={u.metadata.name} namespace={serviceInstance.metadata.namespace} /> ))} </select> ); const noServiceBindingsFound = ( <MessageStrip dismissible={false} type="information"> {SERVICE_BINDINGS_PANEL.FORM.NO_BINDINGS_FOUND} </MessageStrip> ); return ( <form ref={formElementRef} style={{ width: '30em' }} onChange={onChange} onSubmit={handleFormSubmit} > <FormItem key="applicationName"> <FormLabel htmlFor="applicationName">Application</FormLabel> {applicationsDropdown} </FormItem> <FormItem key="envPrefix"> <FormLabel htmlFor="envPrefix">Prefix for injected variables</FormLabel> <FormInput id="envPrefix" placeholder="Set a prefix for variables (optional)" type="text" value={envPrefix} onChange={e => setEnvPrefix(e.target.value)} /> </FormItem> {selectedApplication && ( <> <FormItem key="createBinding"> <Checkbox name="createBinding" value="Create new Service Binding" inputProps={checkBoxInputProps} initialChecked={true} onChange={(_, value) => setCreateBinding(value)} > Create new Service Binding </Checkbox> </FormItem> {!createBinding && serviceBindings.length ? ( <FormItem key="existingBindings"> <FormLabel htmlFor="existingBindings">Service Bindings</FormLabel> <select id="existingBindings" value={existingBindings} onChange={e => setExistingBindings(e.target.value)} required > <option value=""></option> {serviceBindings.map(b => ( <option value={b.metadata.name} key={b.metadata.uid}> {b.metadata.name} </option> ))} </select> </FormItem> ) : null} {!createBinding && !serviceBindings.length ? noServiceBindingsFound : null} </> )} </form> ); } CreateServiceBindingForm.propTypes = { onChange: PropTypes.func, onCompleted: PropTypes.func, onError: PropTypes.func, setCustomValid: PropTypes.func, formElementRef: PropTypes.shape({ current: PropTypes.any }).isRequired, };
var convert = require("./convert"), func = convert("size", require("../size"), require("./_falseOptions")); func.placeholder = require("./placeholder"); module.exports = func;
module.exports = function(doc, fixtures) { var box = doc.box({ borderWidth: 20, borderColor: 0xdddddd, backgroundColor: 0xeeeeee, width: '50%', padding: 10 }) var content = box.text({ textAlign: 'justify' }) for (var i = 0; i < 4; ++i) { content.add(fixtures.lorem.long) } }
const swiper = new Swiper('.swiper-container', { direction: 'vertical', mousewheel: {}, effect: 'cube', keyboard: { enabled: true, onlyInViewport: false } }); // About // view all // Responsive nav item /** code by webdevtrick ( https://webdevtrick.com ) **/ (function($) { // Begin jQuery $(function() { // DOM ready // If a link has a dropdown, add sub menu toggle. $('nav ul li a:not(:only-child)').click(function(e) { $(this).siblings('.nav-dropdown').toggle(); // Close one dropdown when selecting another $('.nav-dropdown').not($(this).siblings()).hide(); e.stopPropagation(); }); // Clicking away from dropdown will remove the dropdown class $('html').click(function() { $('.nav-dropdown').hide(); }); // Toggle open and close nav styles on click $('#nav-toggle').click(function() { $('nav ul').slideToggle(); }); // Hamburger to X toggle $('#nav-toggle').on('click', function() { this.classList.toggle('active'); }); }); // end DOM ready })(jQuery); // end jQuery
import React from 'react' import PropTypes from 'prop-types' class Cities extends React.Component { constructor (props) { super(props) } render () { const { cities, increment } = this.props return ( <div style={{ margin: '0 auto' }}> <h2>Counter: { cities.counter }</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> </div> ) } } Cities.propTypes = { increment: PropTypes.func.isRequired, cities: PropTypes.object.isRequired } export default Cities
function initializetempSegHdr1() { boxRefSegHdr1 = new kony.ui.Box({ "focusSkin": "hBoxSegHdr", "id": "boxRefSegHdr1", "isVisible": true, "orientation": constants.BOX_LAYOUT_HORIZONTAL, "position": constants.BOX_POSITION_AS_NORMAL, "skin": "hBoxSegHdr1" }, { "containerWeight": 100, "layoutAlignment": constants.BOX_LAYOUT_ALIGN_FROM_LEFT, "layoutType": constants.CONTAINER_LAYOUT_BOX, "margin": [0, 0, 0, 0], "marginInPixel": true, "padding": [0, 0, 0, 0], "paddingInPixel": true, "percent": true, "vExpand": false, "widgetAlignment": constants.WIDGET_ALIGN_TOP_LEFT }, {}); var vbox120944992024383 = new kony.ui.Box({ "id": "vbox120944992024383", "isVisible": true, "orientation": constants.BOX_LAYOUT_VERTICAL, "position": constants.BOX_POSITION_AS_NORMAL, "skin": "vBoxTrans" }, { "containerWeight": 100, "layoutType": constants.CONTAINER_LAYOUT_BOX, "margin": [0, 0, 0, 0], "marginInPixel": true, "padding": [0, 0, 0, 0], "paddingInPixel": true, "vExpand": false, "widgetAlignment": constants.WIDGET_ALIGN_TOP_LEFT }, {}); var lblSecHdr1 = new kony.ui.Label({ "id": "lblSecHdr1", "isVisible": true, "skin": "lblSegScHdrBlkBG", "text": "Label" }, { "containerWeight": 100, "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT, "hExpand": true, "margin": [0, 0, 0, 0], "marginInPixel": true, "padding": [1, 0, 1, 0], "paddingInPixel": false, "vExpand": false, "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT }, { "textCopyable": false, "wrapping": constants.WIDGET_TEXT_WORD_WRAP }); var lblSecHdr2 = new kony.ui.Label({ "id": "lblSecHdr2", "isVisible": true, "skin": "lblSegScHdrBlkBG", "text": "Label" }, { "containerWeight": 100, "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT, "hExpand": true, "margin": [0, 0, 0, 0], "marginInPixel": true, "padding": [0, 0, 2, 0], "paddingInPixel": false, "vExpand": false, "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT }, { "textCopyable": false, "wrapping": constants.WIDGET_TEXT_WORD_WRAP }); vbox120944992024383.add(lblSecHdr1, lblSecHdr2); boxRefSegHdr1.add(vbox120944992024383); }
import * as monaco from 'monaco-editor'; import PropTypes from 'prop-types'; import React from 'react'; function noop() {} class MonacoEditor extends React.Component { constructor(props) { super(props); this.containerElement = undefined; this.__current_value = props.value; } componentDidMount() { this.initMonaco(); } componentDidUpdate(prevProps) { if (this.props.value !== this.__current_value) { // Always refer to the latest value this.__current_value = this.props.value; // Consider the situation of rendering 1+ times before the editor mounted if (this.editor) { this.__prevent_trigger_change_event = true; this.editor.setValue(this.__current_value); this.__prevent_trigger_change_event = false; } } if (prevProps.language !== this.props.language) { monaco.editor.setModelLanguage(this.editor.getModel(), this.props.language); } if (prevProps.theme !== this.props.theme) { monaco.editor.setTheme(this.props.theme); } if ( this.editor && (this.props.width !== prevProps.width || this.props.height !== prevProps.height) ) { this.editor.layout(); } } componentWillUnmount() { this.destroyMonaco(); } editorWillMount() { const { editorWillMount } = this.props; editorWillMount(monaco); } editorDidMount(editor) { this.props.editorDidMount(editor, monaco); editor.onDidChangeModelContent((event) => { const value = editor.getValue(); // Always refer to the latest value this.__current_value = value; // Only invoking when user input changed if (!this.__prevent_trigger_change_event) { this.props.onChange(value, event); } }); } initMonaco() { const value = this.props.value !== null ? this.props.value : this.props.defaultValue; const { language, theme, options, services } = this.props; if (this.containerElement) { // Before initializing monaco editor this.editorWillMount(); this.editor = monaco.editor.create(this.containerElement, { value, language, ...options }, services); if (theme) { monaco.editor.setTheme(theme); } // After initializing monaco editor this.editorDidMount(this.editor); } } destroyMonaco() { if (typeof this.editor !== 'undefined') { this.editor.dispose(); } } assignRef = (component) => { this.containerElement = component; }; render() { const { width, height } = this.props; const fixedWidth = width.toString().indexOf('%') !== -1 ? width : `${width}px`; const fixedHeight = height.toString().indexOf('%') !== -1 ? height : `${height}px`; const style = { width: fixedWidth, height: fixedHeight }; return <div ref={this.assignRef} style={style} className="react-monaco-editor-container" />; } } MonacoEditor.propTypes = { width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), value: PropTypes.string, defaultValue: PropTypes.string, language: PropTypes.string, theme: PropTypes.string, options: PropTypes.object, editorDidMount: PropTypes.func, editorWillMount: PropTypes.func, onChange: PropTypes.func }; MonacoEditor.defaultProps = { width: '100%', height: '100%', value: null, defaultValue: '', language: 'javascript', theme: null, options: {}, editorDidMount: noop, editorWillMount: noop, onChange: noop }; export default MonacoEditor;
(function () { 'use strict'; // Configuring the Articles Admin module angular .module('testes.admin') .run(menuConfig); menuConfig.$inject = ['menuService']; function menuConfig(Menus) { Menus.addSubMenuItem('topbar', 'admin', { title: 'Gerenciar Testes', state: 'admin.testes.list' }); } }());
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; // MODULES // var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); var gcusumors = require( './gcusumors.js' ); var ndarray = require( './ndarray.js' ); // MAIN // setReadOnly( gcusumors, 'ndarray', ndarray ); // EXPORTS // module.exports = gcusumors;
import { Map, List, OrderedMap } from 'immutable'; import moment from 'moment'; import uuidv4 from 'uuid'; const plaza = (state = {}, action) => { const plazaName = state.get('plazaName'); const speechId = state.getIn([plazaName, 'speechId']); switch (action.type) { case 'PLAZA_CHOOSE_PLACE': { state = state.set('plazaName', action.plazaName); const title = { tiananmen: '天安门', freedom: '时代广场', france: '协和广场', russia: '红场', flyArea: '飞地微斯人', }; state = state.set('title', title[action.plazaName]); return state.setIn([action.plazaName, 'viewMode'], 'main'); } case 'SPEECH_DISCUSS': state = state.setIn([plazaName, 'viewMode'], 'discuss'); state = state.set('title', state.getIn([plazaName, 'content', action.speechId, 'title'])); return state.setIn([plazaName, 'speechId'], action.speechId); case 'CREATE_SPEECH': state = state.set('title', '创建演讲'); return state.setIn([plazaName, 'viewMode'], 'createSpeech'); case 'PLAZA_CHANGE_DISCUSS_VISIBILITY': return state.setIn([plazaName, 'content', speechId, 'discuss', 'visibility'], action.visibility); case 'PLAZA_DISCUSS_CHANGE_TEXT': return state.setIn([plazaName, 'content', speechId, 'discuss', 'location', 'text'], action.text); case 'PLAZA_DICUSS_COMFIRM': { const location = state.getIn([plazaName, 'content', speechId, 'discuss', 'location']); const to = location.get('discussId') === '' ? state.getIn([plazaName, 'content', speechId, 'userName']) : state.getIn([plazaName, 'content', speechId, 'discuss', 'content', location.get('time'), location.get('discussId'), 'userName']); const lastTime = List(state.getIn([plazaName, 'content', speechId, 'discuss', 'content']).keySeq()).last(); const lastTimeArray = lastTime.split('-'); if (Number(moment().format('YYYYMMDD')) > (Number(lastTimeArray[0]) * 10000) + (Number(lastTimeArray[1]) * 100) + Number(lastTimeArray[2])) { state = state.updateIn([plazaName, 'content', speechId, 'discuss', 'content'], content => content.concat(OrderedMap({ [moment().format('YYYY-MM-DD')]: OrderedMap({ [uuidv4()]: Map({ userName: action.userInfo.get('userName'), gender: action.userInfo.get('gender'), to, text: location.get('text'), time: moment().format('YYYY-MM-DD hh:mm'), }), }), }))); } else { state = state.updateIn([plazaName, 'content', speechId, 'discuss', 'content', lastTime], content => content.concat(OrderedMap({ [uuidv4()]: Map({ userName: action.userInfo.get('userName'), gender: action.userInfo.get('gender'), to, text: location.get('text'), time: moment().format('YYYY-MM-DD hh:mm'), }), }))); } return state.setIn([plazaName, 'content', speechId, 'discuss', 'location'], Map({ text: '', time: '', discussId: '', })); } case 'PLAZA_DISCUSS_PRESS_DIALOG': if (state.getIn([plazaName, 'content', speechId, 'discuss', 'location', 'discussId']) === action.discussId) { state = state.setIn([plazaName, 'content', speechId, 'discuss', 'location', 'discussId'], ''); } else { state = state.setIn([plazaName, 'content', speechId, 'discuss', 'location', 'discussId'], action.discussId); } return state.setIn([plazaName, 'content', speechId, 'discuss', 'location', 'time'], action.time); case 'PLAZA_CREATESPEECH_PROTOCOL': state = state.set('title', '广场演讲发言公约'); return state.setIn([plazaName, 'createSpeech', 'viewMode'], 'protocol'); case 'PLAZA_CREATESPEECH_CHANGE_TEXT': return state.setIn([plazaName, 'createSpeech', 'text'], action.value); case 'PLAZA_CREATESPEECH_CHANGE_TITLE': return state.setIn([plazaName, 'createSpeech', 'title'], action.value); case 'PLAZA_CREATESPEECH_COMFIRM': { const createSpeechId = uuidv4(); state = state.setIn([plazaName, 'content', createSpeechId], Map({ userName: '我就是扯淡', gender: 'female', title: state.getIn([plazaName, 'createSpeech', 'title']), text: state.getIn([plazaName, 'createSpeech', 'text']), share: Map({ number: 0, }), collect: Map({ number: 0, }), discuss: Map({ visibility: false, location: ({ time: '', discussId: '', }), content: OrderedMap({}), }), })); state = state.setIn([plazaName, 'createSpeech', 'speechId'], createSpeechId); return state.setIn([plazaName, 'viewMode'], 'main'); } case 'PLAZA_CREATESPEECH_CANCEL': state = state.setIn([plazaName, 'viewMode'], 'main'); state = state.setIn([plazaName, 'createSpeech', 'title'], ''); return state.setIn([plazaName, 'createSpeech', 'text'], ''); case 'PLAZA_SPEECH_DELETE': return state.deleteIn([plazaName, 'content', action.speechId]); case 'PLAZA_SHARE_PRESS': return state.setIn([plazaName, 'viewMode'], 'share'); case 'PLAZA_MOST': { const content = state.getIn([plazaName, 'content']); let mostSpeechId; switch (action.viewMode) { case '回复最多': mostSpeechId = List(content.keySeq()).maxBy(speechContentId => content.getIn([speechContentId, 'discuss', 'content']).reduce((sum, review) => (sum + review.size), 0)); break; case '转发最多': mostSpeechId = List(content.keySeq()).maxBy(speechContentId => content.getIn([speechContentId, 'share', 'number'])); break; case '收藏最多': mostSpeechId = List(content.keySeq()).maxBy(speechContentId => content.getIn([speechContentId, 'collect', 'number'])); break; default: break; } state = state.setIn([plazaName, 'viewMode'], 'discuss'); return state.setIn([plazaName, 'speechId'], mostSpeechId); } default: return state; } }; export default plaza;
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},settingShowTranslation:a,settingShowTafsir:a,settingShowMuqaddimah:d,surahFavorite:[]},serverRendered:d,routePath:"\u002Famp\u002F2\u002F7",config:{_app:{basePath:e,assetsPath:e,cdnURL:"https:\u002F\u002Fwww.baca-quran.id\u002F"}}}}(false,null,"",true,"\u002F"));